permaculture playing cards*
The moose likes JSP and the fly likes Precompiling jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Precompiling jsp" Watch "Precompiling jsp" New topic
Author

Precompiling jsp

Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
What does precompiling a jsp page mean ? under what circumstances do we use it?


The biggest bankruptcy is the loss of enthusiasm
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
It means that the jsp is ready to go when the first request for it is made. All JSPs need to be translated into a .java file (usually made into a Servlet), then compiled into a .class file. At this point it is ready to run in your web container. None of this is done until you try to run a JSP unless you pre-compile. The it is translated and compiled before the first request is made
 
jQuery in Action, 2nd edition
 
subject: Precompiling jsp