MyEclipse: Missing Javascript libraries in generate project hefferan - Feb 05, 2012 - 05:36 PM Post subject: Missing Javascript libraries in generate project
I am using ME4S 10 and scaffolding a full appication using JPA entities as the source. I have selected JSF as the front end to be generated. The following generated file "WebRoot/WEB-INF/sitemesh-decorators/main.jsp" contains the code:
However, the resources directory is not to be found in that location and there are no javascript files put in the project anywhere.
I've searched the ME4S installation directory for these files but cannot find them anywhere.cconway - Feb 05, 2012 - 10:37 PM Post subject:
Those files are found in the spring-js-2.0.7.RELEASE.jar that is added to your project as a dependency. That jar is part of the "Spring MVC 3 Libraries" classpath container.
At runtime the files are actually being located by the Spring Resource Servlet that is configured in your web.xml. Look in web.xml for a servlet-mapping that maps the path "/resources/*" to the spring Resource Servlet. Now exactly how the Resource Servlet finds the files inside the Spring-js jar is a good question!