File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How do you pre-compile a JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How do you pre-compile a JSP?" Watch "How do you pre-compile a JSP?" New topic
Author

How do you pre-compile a JSP?

Cathy Harris
Greenhorn

Joined: May 31, 2001
Posts: 6
I would like to pre-compile my JSP's before I deploy them. We are using a Websphere server - and I am coding with JCreator and TextPad. I do not have the use of Tomcat.
Is there a way to pre-compile the JSP's using the command line?
Atanu Dey
Greenhorn

Joined: Apr 25, 2002
Posts: 8
Hi Cathy,
U can use some IDE like 'Pramati Studio' from to pre-compile your JSPs.
Atanu
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
Remember, you may pre-compile JSPs for a specific servlet container, but the pre-compiled classes will not be portable across vendor implementations. Yes, JSPs are just servlets, but typical JSP implementation servlets (those generated by aJSP processor like Jasper) rely upon vendor-specific super/helper classes. I don't know if that's what you meant, but I just wanted to give you a heads-up just in case.


James Carman, President<br />Carman Consulting, Inc.
Murilo Beriam
Greenhorn

Joined: Jul 16, 2002
Posts: 6
Hi guys!
What version of Websphere are you using? I have been working with the WAS 4.0 Enterprise Edition and there is an Wizard which you deploy your application and during the second step, there is a checkbox with something like "Precompile JSPs". This wizard runs in the server in a different port. You can use any login to use the interface and there is no need to type any password.
Atanu Dey
Greenhorn

Joined: Apr 25, 2002
Posts: 8
Hi James,
Yeah, you are correct. JSP-compiled servlets are container and vendor specific. But in case somebody wants to check a JSP for error before deploying that, I think that can be done thru compiling that in an IDE.
Regards,
Atanu

Originally posted by James Carman:
Remember, you may pre-compile JSPs for a specific servlet container, but the pre-compiled classes will not be portable across vendor implementations. Yes, JSPs are just servlets, but typical JSP implementation servlets (those generated by aJSP processor like Jasper) rely upon vendor-specific super/helper classes. I don't know if that's what you meant, but I just wanted to give you a heads-up just in case.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you pre-compile a JSP?
 
Similar Threads
can i use obfuscator to my web pplication
iPlanet JSP Pre-compilation
compiling jsp
Where do I put pre-compiled JSP's?
Pre-Compiling JSP in JBoss