The servlet spec explains how to do this

<servlet>
         <servlet-name>MyJspPage</servlet-name>
         <jsp-file>/<mywebapp>/MyJspPage.jsp</jsp-file>
         <init-param>
                 <param-name>configFile</param-name>
                 <param-value>my.conf</param-value>
         </init-param>
         <load-on-startup>1</load-on-startup>
 </servlet>

> -----Original Message-----
> From: Luca Ventura [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 26, 2002 10:50 AM
> To: tomcat-dev
> Subject: How to run multiple instances of JSP pages/servlets 
> in Tomcat?
> 
> 
> Hello everybody!
> 
> In Tomcat 4.x I don't know how I can call automatically a JSP 
> page when the web application starts. I mean...in Tomcat 4.x 
> there is the web.xml file where I can declare:
> 
> <servlet>
>         <servlet-name>MyServlet</servlet-name>
>         <servlet-class>MyServlet</servlet-class>
>         <init-param>
>                 <param-name>configFile</param-name>
>                 <param-value>my.conf</param-value>
>         </init-param>
>         <load-on-startup>1</load-on-startup>
> </servlet>
> 
> In this way the servlet "MyServlet" is called when the web 
> app. starts...
> 
> Can I do the same thing with a jsp page (the jsp page should 
> be like a servlet, in fact it is translated into a servlet 
> when it is called the first time)? If yes, in which way?
> 
> Another questions: how can I tell the Web Server "Tomcat" to 
> activate more instances of a servlet or a JSP page?
> 
> Thanks a lot to everybody!
> 
>                                             Luca
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-dev-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to