Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

could not understand the concept of jsp_precompile

 
himani jangid
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Author
Ranch Hand
Posts: 77
5
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic