Servlet 3.0 which Tomcat 7 supports includes the ability to package jsps into a jar.
You need to:
- place your jsps in
META-INF/resourcesdirectory of your jar - optionally include a
web-fragment.xmlin theMETA-INFdirectory of your jar - place the jar in
WEB-INF/libdirectory of your war
You should then be able to reference your jsps in your context. For example if you have a jsp META-INF/resources/test.jsp you should be able reference this at the root of your context as test.jsp