I can not include javaScript and css fiels to my JSP page. I tried this and this but not helped.
My JSP:
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="../resources/js/my.js"></script>
<link rel="stylesheet" href="../resources/css/menu.css" />
...
and mapping:
<beans xmlns="http://ift.tt/GArMu6"
xmlns:xsi="http://ift.tt/ra1lAU"
xmlns:context="http://ift.tt/GArMu7"
xmlns:mvc="http://ift.tt/1bHqwjR"
xsi:schemaLocation="http://ift.tt/GArMu6
http://ift.tt/1jdM0fG
http://ift.tt/GArMu7 http://ift.tt/1jdLYo7 http://ift.tt/1bHqwjR http://ift.tt/1fmimld">
<context:component-scan base-package="com.springapp.mvc"/>
<mvc:annotation-driven />
<mvc:resources mapping="/resources/**" location="resources" cache-period="31556926"/>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/pages/"/>
<property name="suffix" value=".jsp"/>
</bean>
</beans>
and ctructure:
WEB-INF
-pages
-my.jsp
-resources
-js
-my.js
-css
-menu.css
-mvc-dispatcher-servlet.xml
-web.xml
from Newest questions tagged java - Stack Overflow http://ift.tt/1MuMoY1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire