Hello,
I am implementing a ServletContextListener.
I am wondering if it is possible to get initial parameters into it from web.xml ?
From the javadocs it doesn't seem possible
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/javax/servlet/ServletContextListener.html
In other
Hi,
That's what context-parameters are for. Use context-param.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: Tuesday, November 12, 2002 8:42 AM
To: Tomcat Users List
Subject: ServletContextListener::Initial paramters
What about
ServletContextEvent.getServletContext().getInitParameter() ?
-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: Tuesday, November 12, 2002 2:42 PM
To: Tomcat Users List
Subject: ServletContextListener::Initial paramters
I am implementing
, is it possible ?
Thanx again,
Reynir
-Original Message-
From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
Sent: 12. nóvember 2002 13:55
To: Tomcat Users List
Subject: RE: ServletContextListener::Initial paramters
What about
ServletContextEvent.getServletContext
Subject: RE: ServletContextListener::Initial paramters
Thanx for the replies,
Am I correct when saying I must specify the contex parameters in server.xml
like this :
context-param
param-nameparamName/param-name
param-valueparmam Value string foobar/param-value
/context-param
I could use
You can specify them in your web.xml
Regards
Jim
-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: 12 November 2002 13:59
To: Tomcat Users List
Subject: RE: ServletContextListener::Initial paramters
Thanx for the replies,
Am I correct when saying I
Great, I'll use it then, thanx
-reynir
-Original Message-
From: Collins, Jim [mailto:jim.collins;uk.nomura.com]
Sent: 12. nóvember 2002 14:14
To: 'Tomcat Users List'
Subject: RE: ServletContextListener::Initial paramters
You can specify them in your web.xml
Regards
Jim
If you have any problems look in the servlet spec it contains a dtd for the
web.xml file.
Regards
Jim.
-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: 12 November 2002 14:19
To: Tomcat Users List
Subject: RE: ServletContextListener::Initial paramters
To: 'Tomcat Users List'
Subject: RE: ServletContextListener::Initial paramters
If you have any problems look in the servlet spec it contains
a dtd for the web.xml file.
--
To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail
Op dinsdag 12 november 2002 14:42, schreef Reynir Hübner:
Hello,
I am implementing a ServletContextListener.
I am wondering if it is possible to get initial parameters into it from
web.xml ?
void contextInitialized(ServletContextEvent sce) {
ServletContext sc = sce.getServletContext();
10 matches
Mail list logo