Re: InitParameters Question

2004-01-15 Thread Michael Duffy
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

Re: InitParameters Question

2004-01-14 Thread Liem Do
> 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

InitParameters Question

2004-01-14 Thread Michael Duffy
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

application initParameters disappearing (or overwritten)

2003-07-20 Thread Gil Hauer
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

Weird problem using ant undeploy/deploy: InitParameters not inited

2003-04-05 Thread johannes . fiala
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

RE: How to get InitParameters.

2002-07-18 Thread Luminous Heart
).getInitParameter("param-name") > will get > you back "param-value". > > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Luminous Heart > [mailto:[EMAIL PROTECTED]] > >Sent: Thursday, Ju

RE: How to get InitParameters.

2002-07-18 Thread Shapira, Yoav
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

How to get InitParameters.

2002-07-18 Thread Luminous Heart
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

Re: InitParameters missing in ServletConfig when Servlet-loadingtriggerd through Re

2002-05-18 Thread Craig R. McClanahan
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

InitParameters missing in ServletConfig when Servlet-loading triggerd through Re

2002-05-18 Thread Karl Leipzig
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

RE: InitParameters missing in ServletConfig when Servlet-loading triggerd through RequestDispatcher

2002-05-16 Thread Greg Trasuk
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

InitParameters missing in ServletConfig when Servlet-loading triggerd through RequestDispatcher

2002-05-16 Thread Philipp von Hartrott
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

Re: InitParameters

2001-10-01 Thread Bo Xu
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

InitParameters

2001-10-01 Thread Alessandro Di Maria
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

Re: Multiple servlets using same initParameters

2001-08-14 Thread Jan Labanowski
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

RE: Multiple servlets using same initParameters

2001-08-14 Thread Jim Urban
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

RE: Multiple servlets using same initParameters

2001-08-14 Thread Martin van den Bemt
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

Re: Multiple servlets using same initParameters

2001-08-14 Thread Peter Davison
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

Multiple servlets using same initParameters

2001-08-14 Thread JBrawner
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