aspose file tools*
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
Author

could not understand the concept of jsp_precompile

himani jangid
Greenhorn

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 http://www.coderanch.com/t/615977/Tomcat/jsp-compiled-files-java-files 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: 48

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 www.example.com/index.jsp you would enter in the browser's address bar the following: www.example.com/index.jsp?jsp_precompile. 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 EE Developer (OCPJP/OCPJWCD)
 
wood burning stoves
 
subject: could not understand the concept of jsp_precompile
 
Similar Threads
jsp precompile
Jsp compilation
Complie a JSP Page
How to execute a JSP file from command line?
Compiling jsp