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://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<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
new structure not helped
webapp -resources -js -my.js -css -menu.css -WEB-INF -pages -my.jsp -mvc-dispatcher-servlet.xml -web.xml
What i do wrong?