Hi,
I have precompiled my JSPs using the pre-compile option in the browser.(For
eg
http://localhost:8080/Myapp/addCustomer.jsp?pre-compile) I get the
java and class files for each of the JSPs. These files are placed
in the work folder of
Tomcat(ie
\jakarta-tomcat-5.0.16\work\Catalina\localhost\Myapp\org\apache\jsp).
If I want to deploy the web application as a WAR file (without the JSPs),
where should I place the .class files of the JSPs?
I have made entries in web.xml as shown below for each of the
JSP files .
But , I get a 404 error when I try to access the
JSP(
http://localhost:8080/Myapp/addCustomer.jsp).
<
servlet>
<servlet-name>addCustomer_jsp</servlet-name>
<servlet-class>/Myapp/addCustomer_jsp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>addCustomer_jsp</servlet-name>
<url-pattern>/Myapp/addCustomer.jsp</url-pattern>
</servlet-mapping>
It is not a must that I deploy it as a WAR file. But, where should I place
the precompiled JSPs so that I can access them from a browser? I am working
on Tomcat 5.
Thanks in advance.