File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes could not understand the concept of jsp_precompile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "could not understand the concept of jsp_precompile" Watch "could not understand the concept of jsp_precompile" New topic

could not understand the concept of jsp_precompile

himani jangid

Joined: Jul 04, 2013
Posts: 18
hi all,
as mentioned in books ,when we append ?jsp_precompile to any query it will compile the files n further queries will be accessed faster..
now my question is "how to use this ?jsp_precompile"

1. whether to use in url written in code appended with "?jsp_precompile"
2. or to call this jsp page specially in the browser by appending this.

so. if it the first case then it is not working in mine, as when i do this the jsp page is called but has nothing in it.. the query that appears on browser has jsp_precompile appended to it or this may be related to my this problem. (please try to answer this one also).

or if it is the 2nd case then why is the need of appending this in the end as calling a jsp from a browser will automatically compiles it.. what this jsp_precompile does special..

Alex Theedom
Ranch Hand

Joined: Jan 18, 2012
Posts: 77

To use the ?jsp_precompile you simple append it to the URL of the JSP that you wish to compile. For example, if your JSP is located at you would enter in the browser's address bar the following: It does not take a parameter although you can give it the value true, like so: ?jsp_precompile=true. The JSP will not be executed, but rather compiled.

Alex Theedom - Senior Java Developer (OCPJP/OCPJWCD/Spring Web)
Co-author of Professional Java EE Design Patterns. Blogger at Twitter at @alextheedom
I agree. Here's the link:
subject: could not understand the concept of jsp_precompile
It's not a secret anymore!