You want to use the "precompilation protocol" that is part of the JSP specification to precompile one or more JSP files.
Send a request to the JSP
container that includes a
The JSP 1.2 and 2.0 specifications
require compliant JSP
containers to support the
use of the
request parameter. This
parameter suggests that
the container precompile
the requested JSP. Here
is how it works in
The JSP container is not supposed to execute the JSP page; it just precompiles it. The result of the request, if you were making it in a web browser, is a blank page.
If the JSP file in JSP page syntax has not yet been compiled, or if the JSP file has been changed and has a later modification date than any existing page implementation class, Tomcat creates a new Java source and class file for the JSP in the <Tomcat-install-directory>/work directory. If the JSP file is named url_rewrite.jsp, Tomcat calls the Java source and class files url_rewrite_jsp.java and url_rewrite_jsp.class.
The precompilation protocol in Tomcat will both create the .java file and compile that file into the JSP ...