Why do you want to do this though, there is not, for instance, any speed improvement, as this is what the container does anyway?
Under certain conditions you do not want the user to wait for the first time compile of the JSP. This is when you have a contractual agreement with a client that a page needs to served in x seconds and you need to deliver and deploy the JSPs pre-compiled. This is needed when your application goes into production. ;-) The speed improvement is in terms of response time for the page to be served.
In fact, instead of going through this whole excersize you could try to find the compiled class that the container generates anyway.
I dont really need the compiled file once it has been deployed.
For Tomcat seach under the appropriate project sub-directory withing the "work" directory.
I am aware,. Many thanks Rajesh Thiharie New Delhi, India 91 124 6455511 x 109 Work
You can use the provided jspc (jsp compiler) with the servlet container you use. Jakarta Tomcat and WebLogic have them The others I am not aware of, but they should have them. <Check> You will need to set the CLASSPATH properly to be able to get jspc to compile properly. </Check> When you compile a JSP ( filename.jsp ) file, it gets converted to a .java file, i.e., filename.java. You then need to compile it with the normal java compiler ( javac ) and place the resulting class file in WEB-INF/classes. After that you need to define a mapping for the filename.jsp to filename.class in the web.xml file inside your web application. If you do not do the mapping the servlet container will compile the JSP file in the work directory which will defeat the purpose of pre-compiling. You can automate the whole process with Jakarta Ant too. However that will involve you spending some time learning the way Jakarta Ant works.
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com