This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do you pre-compile a JSP?

 
Cathy Harris
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cathy,
U can use some IDE like 'Pramati Studio' from to pre-compile your JSPs.
Atanu
 
James Carman
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Murilo Beriam
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic