You can have several servlet declarations that use the same file or
class.
servlet
servlet-nameMyJspPage/servlet-name
jsp-file/mywebapp/MyJspPage.jsp/jsp-file
init-param
param-nameconfigFile/param-name
param-valuemy.conf/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet
servlet-nameMyJspPage2/servlet-name
jsp-file/mywebapp/MyJspPage.jsp/jsp-file
init-param
param-nameconfigFile/param-name
param-valuemy2.conf/param-value
/init-param
load-on-startup2/load-on-startup
/servlet
--
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863
-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 4:13 PM
To: Tomcat Developers List
Cc: [EMAIL PROTECTED]
Subject: R: How to run multiple instances of JSP
pages/servlets in Tomcat?
Hello!
And thanks a lot!
Can you tell me also how I can indicate the number of
instances to activate for every servlet or jsp-page?
Thanks in advance!
Luca
-Messaggio originale-
Da: John Trollinger [mailto:[EMAIL PROTECTED]]
Inviato: giovedi 26 settembre 2002 17.01
A: 'Tomcat Developers List'
Oggetto: RE: How to run multiple instances of JSP
pages/servlets in Tomcat?
The servlet spec explains how to do this
servlet
servlet-nameMyJspPage/servlet-name
jsp-file/mywebapp/MyJspPage.jsp/jsp-file
init-param
param-nameconfigFile/param-name
param-valuemy.conf/param-value
/init-param
load-on-startup1/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-nameMyServlet/servlet-name
servlet-classMyServlet/servlet-class
init-param
param-nameconfigFile/param-name
param-valuemy.conf/param-value
/init-param
load-on-startup1/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!
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]