Found the answer at the Java Forum:
http://forum.java.sun.com/thread.jsp?forum=33&thread=482125
I think it's a case of RTFM here. I should have
understood that difference between ServletConfig and
ServletContext. Now I do. - MOD
__
Do you Yahoo!?
Yahoo! Hotjobs
> It appears that the init params of the servlet and its
> context are different. Can someone clear up this
> misunderstanding for me?
Yes you are right.
>
> There's also a getInitParameter() method in the
> javax.servlet.ServletContext class. I thought it,
> too, gave access to the values.
>
T
Init parameters for a servlet are specified in
web.xml, using the child of the
tag.
These can be accessed using the
javax.servlet.GenericServlet.getInitParameter(). So
far, so good.
There's also a getInitParameter() method in the
javax.servlet.ServletContext class. I thought it,
too, gave ac
Hi,
I'm experience something completely mysterious and I'm sure I'm doing
something wrong -- the question is "what?".
I've set some init parameters in server.xml as follows:
... and in my JSP page, I have the following code:
String store_id =
(String)applic
Hi there,
I'm facing a strange problem sometimes when I'm doing an ant
undeploy/deploy:
Sometimes, the Context InitParameters don't get initialized, they simply
resume to "null".
Does anybody have any idea what might cause this? It is reproducible but
happens
).getInitParameter("param-name")
> will get
> you back "param-value".
>
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: Luminous Heart
> [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, Ju
tParameter("param-name") will get
you back "param-value".
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Luminous Heart [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 18, 2002 2:03 PM
>To: Tomcat Users List
>Subject: How to get InitP
I can access my parameters if I put them in this
format.
But if I use this format, which what I really want, I
can not access them using getInitParameter(name)
testbed
Mail/testbed.jsp
protocol
imap
mbox
Inbox
host
lo
2002 11:52:54 +
> From: Karl Leipzig <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: InitParameters missing in ServletConfig when Servlet-loading
> triggerd through Re
>
> Hello,
> using Tomcat
Hello,
using Tomcat 4.0.3 (and 4.0.2 also) I encounter the following problem:
Problem setup:
My servlet has no set.
I start Tomcat.
I trigger the loading of servlet A through a RequestDispatchers forward as
quoted below.
I trace my servlet A's ServletConfig init-parameters in the init() method
stems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca
> -Original Message-
> From: Philipp von Hartrott [mailto:[EMAIL PROTECTED]]
> Sent: May 16, 2002 09:40
> To: Tomcat Users List
> Subject: InitParameters miss
Hello,
using Tomcat 4.0.3 (and 4.0.2 also) I encounter the following problem:
Problem setup:
My servlet has no set.
I start Tomcat.
I trigger the loading of servlet A through a RequestDispatchers forward as quoted
below.
I trace my servlet A's ServletConfig init-parameters in the init() method
I suggest you need to use your "" to invoke your Servlet if you
want
to use your "", it will force your "" to be included,
for example:
http://xxx.xxx.xxx.xxx:8080/myapp/servlet/remoteServlet
if you use your "Servlet class name" to invoke your Servlet, for example:
http://xxx.xxx.xxx.xxx:8080/m
Hello!
I have some problems to read the init-parameters for my servlet.
I'm usign tomcat 3.2.3, mod-jk. But tested with tomcat standalone on
port 8080.
Here's my web.xml, located on TOMCAT_HOME/webapps/test/WEB-INF/
remoteServlet
ch.hephaistos.web.RemoteServlet
In web.xml:
open-port
7180
Port for regular HTTP via Apache
secure-port
7143
Port for HTTPS via Apache
and in the jsp page:
parameters are:
open-port=<%= application.getInitParameter("open-port") %>
secure-port=<%= application.getInitParameter("secure-port") %>
or in the se
PROTECTED]]
Sent: Tuesday, August 14, 2001 4:38 PM
To: [EMAIL PROTECTED]
Subject: Multiple servlets using same initParameters
I have multiple servlets in the same directory and they all get the same
init-params from web.xml.
Currently, I have 5 servlets and am required to repeat all the init
tiple servlets using same initParameters
>
>
> How about this:
>
> Set up your init params for one of your servlets.
> Make sure that this servlet get's pre-loaded first before the other
> servlets.
> Have the init() method of that servlet store all the parameters as
> S
How about this:
Set up your init params for one of your servlets.
Make sure that this servlet get's pre-loaded first before the other
servlets.
Have the init() method of that servlet store all the parameters as
System properties and let the other servlets retrieve the parameters
as System proper
I have multiple servlets in the same directory and they all get the same
init-params from web.xml.
Currently, I have 5 servlets and am required to repeat all the init-params
5 times, one for each servlet. So if one parameter changes, I have to
change it five times in web.xml. I'd like to only ha
19 matches
Mail list logo