How can I deploy my JSP files within a WAR file?
As for deploying JSPs in a WAR file, you simply place them in the same hierarchy in your WAR as you want them accessed in your application. For example, say your directory structure for your WAR file looks like this:
/index.html /login.jsp /WEB-INF /WEB-INF/web.xml /WEB-INF/lib /WEB-INF/lib/myapp.jar
Assuming that the above files are located within a directory called "staging", you can create the WAR file as:
jar cvf myapp.war -C staging .