You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Geiglein, Gary" <ge...@peacetech.com> on 2005/07/06 19:59:32 UTC
RE: Load all JSP pages on startup
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