tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geiglein, Gary" <geigle...@peacetech.com>
Subject RE: Load all JSP pages on startup
Date Wed, 06 Jul 2005 17:59:32 GMT
You could write a servlet that hit all your jsp's when initialized, and
set it to load-on-startup.

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Geoffrey
Sent: Wednesday, June 29, 2005 5:46 AM
To: tomcat-user@jakarta.apache.org
Subject: Load all JSP pages on startup

In Tomcat 5.5 (or Jboss 4.0 using Tomcat 5.5),
can I load all JSP pages on deployment?

I don't want to precompile in my build script,
but I do want the server to compile all jsp pages as soon as they are 
deployed.

I can load one jsp page on startup like this:

     <servlet>
         <servlet-name>HomeJsp</servlet-name>
         <jsp-file>/home.jsp</jsp-file>
         <load-on-startup>1</load-on-startup>
     </servlet>

But I want to do something like

         <jsp-property-group>
             <display-name>allJsp</display-name>
             <url-pattern>*.jsp</url-pattern>
             <load-on-startup>1</load-on-startup>
         </jsp-property-group>
(this isn't allowed in the web.xml)

Thanks for any and all help,
Geoffrey


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message