java脚本不能在jsp文件中使用spring mvc

当我运行我的jsp文件java脚本不工作,我不明白为什么我使用jstl标记,我把我的jsp文件放在ressource下。任何人都可以告诉我什么是错的谢谢

web.xml中

<!-- Processes application requests -->
<servlet>
    <servlet-name>appServlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>appServlet</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>

调度员的servlet

<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
<resources mapping="/resources/**" location="/resources/" />

<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <beans:property name="prefix" value="/WEB-INF/views/" />
    <beans:property name="suffix" value=".jsp" />
</beans:bean>

JSP文件“>

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

    <script type="text/javascript" src="<c:url value="/resources/bower_components/datatables/media/js/jquery.dataTables.min.js"/>"></script>

不要使用JSTL标签。

<script type="text/javascript" src="/resources/bower_components/metisMenu/dist/metisMenu.min.js"></script>

<script type="text/javascript" src="/resources/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
链接地址: http://www.djcxy.com/p/76587.html

上一篇: java script is not working in jsp file spring mvc

下一篇: Jstl not adding correct to Dynamic Web Project in Eclipse (Juno)