Re: Init parameter in context.xml

2005-07-26 Thread Tim Funk
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

RE: Init parameter in context.xml

2005-07-26 Thread Arash Ramin
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

Init parameter in context.xml

2005-07-25 Thread Arash Ramin
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 value=dummyValue/ /context According to the Tomcat docs, this is equivalent to using the following in web.xml: context-param

tomcat returns null for init parameter

2004-12-26 Thread Raasi Potluri
Dear Friends, I have written a simple servlet which reads a init parameter from the web.xml file and displays on the browser. I'm a beginner and trying to learn simple servlets, I have reached where I can read some init params from the web.xml file and displays on the browser, but all the simple

tomcat returns null for init parameter

2004-12-26 Thread Raasi Potluri
Dear Friends, I have written a simple servlet which reads a init parameter from the web.xml file and displays on the browser. I'm a beginner and trying to learn simple servlets, I have reached where I can read some init params from the web.xml file and displays on the browser, but all the simple

Init Parameter

2003-09-19 Thread Mailing List Servlet
Hello everybody, I started to learn servlets few times ago. Everything was working perfectly until I tried to get my init-param from my web.xml file. I receive all the time a null value when I ask the value of my parameter: String driver = getServletConfig().getInitParameter(driver). If I put

RE: Init Parameter

2003-09-19 Thread Shapira, Yoav
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

Re: Init Parameter

2003-09-19 Thread Jon Wingfield
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. ;)

Re: Init Parameter

2003-09-19 Thread Mailing List Servlet
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

RE: Init Parameter

2003-09-19 Thread Shapira, Yoav
: 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

Re: Init Parameter

2003-09-19 Thread Mailing List Servlet
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

Re: Init Parameter

2003-09-19 Thread Mailing List Servlet
) 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

init parameter and web.xml cant get it to work?

2002-03-14 Thread Leon Vermaak
I have Tomcat 4.0 running as a service on Windows 2000 platform. I am trying to get a servlet to work with init parameters. This is the code: package coreservlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; /** *Example using servlet initialization. **/ public

Re: init parameter and web.xml cant get it to work?

2002-03-14 Thread Matt Egyhazy
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

Re: init parameter and web.xml cant get it to work?

2002-03-14 Thread Emir Alikadic
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]

problem in init parameter .. SAXParseException

2001-09-19 Thread Sibi Joseph
Hi all i have to set the following in my web.xml for my servlet init-param param-nameUrl/param-name param-valuehttp://120.20.203.1/q?s=asad=t/param-value /init-param when i startup tomcat .. i get the following error ERROR reading

Re: problem in init parameter .. SAXParseException

2001-09-19 Thread Dmitri Colebatch
try encoding it as CDATA init-param param-nameUrl/param-name param-value![CDATA[http://120.20.203.1/q?s=asad=t]]/param-value /init-param cheesr dim On Wed, 19 Sep 2001, Sibi Joseph wrote: Hi all i have to set the following in my web.xml for my servlet init-param

Re: How to pass init parameter to a JSP

2001-07-26 Thread Craig R. McClanahan
); ... Thanks in advance skc In order to do this, you will need to declare a servlet definition for your JSP page (including the init parameter) like this: servlet servlet-nameMy Page/servlet-name jsp-file/mypage.jsp/jsp-file init-param param-namecfg/param-name

How to pass init parameter to a JSP

2001-07-17 Thread Simon Chan
Hi, How to pass initial parameters to a JSP? I know how to pass initial parameters to a servlet via web.xml file (init-param). However, I don't know where to put for JSP. This is my JSP file ... % String c = config.getInitParameter(cfg); ... Thanks in advance skc

Re: How to pass init parameter to a JSP

2001-07-17 Thread Zsolt Horvath
... %! String variable = ;% % variable = getServletContext().getInitParameter(variable);% The value is: %=variable% ... - Original Message - From: Simon Chan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 17, 2001 12:24 PM Subject: How to pass init parameter to a JSP Hi

Defining an init parameter for all servlets

2001-01-15 Thread Ariel
I would like to define some initialization parameters to be used by all servlets running on Tomcat. Is there a way to define this in web.xml, besides copying the init-param section of the global parameter to every servlet's section in web.xml? Ariel

RE: Defining an init parameter for all servlets

2001-01-15 Thread Kitching Simon
-Original Message- From: Ariel [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 6:52 PM To: '[EMAIL PROTECTED]' Subject: Defining an init parameter for all servlets I would like to define some initialization parameters to be used by all servlets running on Tomcat

RE: Defining an init parameter for all servlets

2001-01-15 Thread Ariel
on [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 7:52 PM To: '[EMAIL PROTECTED]' Subject: RE: Defining an init parameter for all servlets -Original Message- From: Ariel [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 6:52 PM To: '[EMAIL PROTECTED]' Subject:

RE: Defining an init parameter for all servlets

2001-01-15 Thread G.Nagarajan
populating the hashtable with values from a database. regards -Original Message- From: Ariel [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 8:10 PM To: '[EMAIL PROTECTED]' Subject: RE: Defining an init parameter for all servlets I tried to use the context-param tag in web.xml

largeFile init parameter

2000-11-09 Thread Christian Mallwitz
Hi, I read about the largeFile init parameter and set it to true in my conf/web.xml file. but the static HTML is still in the class file. The FAQ says: "If the file is really large then all the static html is stored is a separate data file if the value of this param is set to true."