Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Precompiling jsp" Watch "Precompiling jsp" New topic

Precompiling jsp

Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 129
What does precompiling a jsp page mean ? under what circumstances do we use it?
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
I agree. Here's the link:
subject: Precompiling jsp
jQuery in Action, 3rd edition