Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How do you pre-compile a JSP?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Cathy,
U can use some IDE like 'Pramati Studio' from to pre-compile your JSPs.
Atanu
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic