Search code examples
jspspring-mvccytoscape-web

<script>-tag in jsp is restructured


I'm developing a spring-mvc application and i want to include javascript in one jsp. In other posts I found this solution for including js-files:

<script type="text/javascript" src="<c:url value="/resources/js/AC_OETags.min.js" />" />

but when I run the application it is transformed to this:

<script json2.min.js"="" js="" resources="" src="<c:url value=" type="text/javascript"></script>

Can anybody tell me why and how to avoid this?


Solution

  • Try the el-expression

     <script type="text/javascript" src="${c:url('/resources/js/AC_OETags.min.js')}" />
    

    Regards