File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes jsps precompiled into servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "jsps precompiled into servlets" Watch "jsps precompiled into servlets" New topic
Author

jsps precompiled into servlets

Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 190
Hello All,
If anyone know how to make jsps precompiled .
I mean when a servlet engine starts it automatically compiles jsps into servlet and load the eventual servlet class files .
I have got this tag from web.xml in servlet 2.3 specs but not sure how to use this.

/********************************************/
The servlet element contains the declarative data of a
servlet. If a jsp-file is specified and the load-on-startup element is
present, then the JSP should be precompiled and loaded.
Used in: web-app
-->
<!ELEMENT servlet (icon?, servlet-name, display-name?, description?, (servlet-class | jsp-file), init-param*, load-on-startup?, run-as?, security-role-ref*)>
<!--
/********************************************/
Any help would be greate for me .
Awais Bajwa
Software Engineer
i2c Inc .
www.i2cinc.com
boyet silverio
Ranch Hand

Joined: Aug 28, 2002
Posts: 173
try something similar to the ff
<web-app>
<servlet>
<servlet-name>thePage</servlet-name>
<jsp-file>/thePage.jsp</jsp-file>
<load-on-startup>1</load-on-startup>
</servlet>
...
hope this helps.
[ January 16, 2003: Message edited by: boyet silverio ]
 
 
subject: jsps precompiled into servlets
 
Threads others viewed
How to precompile all JSPs at once in Tomcat
Jsp precompiled into servlets
Intialization Parameters for JSPs
jsps into servlets automatically
implict object of jsp: "config"
IntelliJ Java IDE