Compiled JSP page
843833Aug 17 2001 — edited Jan 12 2006I am developing a web application using JSP. I don't want to distribute the javac with the application in order to run the JavaServer pages. I read in the JavaServer Pages 1.1 Specifications that you can compile the JSP into a Servlet class and place into a WAR file. I have tried this and can't seem to get it to work. When I try to run /pos/Login.jsp I get a (404) File not found. Does anyone have any suggestions? Thanks in advance!
my pos.war file contains:
/WEB-INF/web.xml
/WEB-INF/classes/Login.class
my web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name> Login </servlet-name>
<servlet-class> Login.class </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> Login </servlet-name>
<url-pattern> /pos/Login.jsp </url-pattern>
</servlet-mapping>
<session-config>
<session-timeout> 1 </session-timeout>
</session-config>
</web-app>