Only a guess try
Context path=/appName ...
Parameter name=paramName value=dummyValue/
/Context
-Tim
Arash Ramin wrote:
In lieu of using web.xml, I'm trying to add an init parameter in our
application's context.xml file:
context path=/appName ...
parameter name=paramName
Subject: Re: Init parameter in context.xml
Only a guess try
Context path=/appName ...
Parameter name=paramName value=dummyValue/
/Context
-Tim
Arash Ramin wrote:
In lieu of using web.xml, I'm trying to add an init
parameter in our
application's context.xml file
Howdy,
Strange... Make sure the context-param and init-param names are
different.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Mailing List Servlet [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: Init Parameter
Where in the code are you calling the method. If it's as an instance
variable or in the servlet constructor then Tomcat hasn't yet inited the
servlet and the getServletConfig() method doesn't behave as you are
expecting. Of course, there's always the init(ServletConfig config)
method. ;)
file, I guess I'll receive an error on
loading the servlet?
Kenny
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 5:14 PM
Subject: RE: Init Parameter
Howdy,
Strange... Make sure the context-param and init
: Mailing List Servlet [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 11:34 AM
To: Tomcat Users List
Subject: Re: Init Parameter
Hello Shapira,
I first tried with only the init-param (no context param) and it
already
didn't work .
And I have the same problem with all my others servlets
Hello Jon,
I'm gonna try this..Look interesting..
Thanks a lot.
- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 5:26 PM
Subject: Re: Init Parameter
Where in the code are you calling the method. If it's
)
throws ServletException, IOException {
...
Kenny
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 5:36 PM
Subject: RE: Init Parameter
Owdy,
If you have an invalid web.xml, tomcat will tell you
try
message = getInitParameter(message);
matt
- Original Message -
From: Leon Vermaak [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 14, 2002 5:00 PM
Subject: init parameter and web.xml cant get it to work?
I have Tomcat 4.0 running as a service on
On 3/14/2002 5:00 PM, Leon Vermaak wrote:
[SNIP]
String repeatString = config.getInitParameter(repeat);
[SNIP]
param-name
repeats
/param-name
[SNIP]
repeat != repeats
Emir.
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
10 matches
Mail list logo