RE: having problem with getInitParameter()

2003-06-07 Thread Thomas . Rimmele
-Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: Samstag, 7. Juni 2003 17:41 To: [EMAIL PROTECTED] Subject: having problem with getInitParameter() Hi, I m having problem with the the get InitParameter method of ServletConfig class, I m adding tags as following in both

having problem with getInitParameter()

2003-06-07 Thread bilal sulehri
Hi, I m having problem with the the get InitParameter method of ServletConfig class, I m adding tags as following in both tomcat_home/conf/web.xml and /tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working ... ... pname pvalue ___

servletContext().getInitParameter() not working as expected

2003-01-03 Thread Erik Price
Hi, It seems that when I call getServletContext().getInitParameter(), it works sometimes but not others. That is to say, I've stored my JDBC connection URL and the string containing the JDBC driver name in entries. But I've created a "test" entry containing nothing mor

Re: getInitParameter from within a bean?

2002-01-17 Thread jeff . guttadauro
MAIL PROTECTED]>cc: Subject: getInitParameter from within a bean?

RE: getInitParameter from within a bean?

2002-01-17 Thread Walter De Wit
: '[EMAIL PROTECTED]' Subject: getInitParameter from within a bean? I've got a Bean that I want to be able to access some of the entries in my web.xml on Tomcat 3.3. >From the documentation, I access these values through String value = getServletContext().getInitParameter("na

getInitParameter from within a bean?

2002-01-17 Thread Fullerton Ross S
I've got a Bean that I want to be able to access some of the entries in my web.xml on Tomcat 3.3. >From the documentation, I access these values through String value = getServletContext().getInitParameter("name"); I can't get this to work from within my bean, t

Re: getInitParameter() throws an exception .....

2001-12-11 Thread Craig R. McClanahan
On Wed, 12 Dec 2001, Etienne Deleflie wrote: > Date: Wed, 12 Dec 2001 15:11:21 +1100 > From: Etienne Deleflie <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: getInitParameter() throws an exception . > >

getInitParameter() throws an exception .....

2001-12-11 Thread Etienne Deleflie
Hello all, I am using tomcat 4.0.1 (and jdk1.3.1) In my servlet, the getInitParameter() throws an NullPointerException ...(stack trace below)... . but where is the null pointer ? code is String path = getInitParameter("properties"); Is there something wro

getinitParameter

2001-07-17 Thread Zsolt Horvath
  Hi ! I have a web.xml file with this lines:   valami  sun.jdbc.odbc.JdbcOdbcDriver      The database driver's type.           getInit   No desc.    getinit.mainServlet      valami    com.mycompany.myactions.ListOrdersAction 

Re: getInitParameter return null

2001-03-14 Thread Milt Epstein
On Wed, 14 Mar 2001 [EMAIL PROTECTED] wrote: > hello, > > I have the following lines in my web.xml file > > > > jsp > > > org.apache.jasper.runtime.JspServlet > > > jnw > salutjeannoel > > > -2147483646 > > > > I

getInitParameter return null

2001-03-14 Thread jnw
hello, I have the following lines in my web.xml file jsp org.apache.jasper.runtime.JspServlet jnw salutjeannoel -2147483646 I create a jsp file with the following line: out.println(config.getInitParameter("jnw

Re: getInitParameter Error

2001-02-12 Thread Jeff Lansing
following apis to get the > DriverName. public void init(ServletConfig scon){ > super.init(scon);DriverName = > getServletContext().getInitParameter("DriverName");... When > I compile this code, I get the following error: Method > getInit

getInitParameter Error

2001-02-12 Thread RK
Hi:   I am trying to get the following entries from web.xml.         DriverName  org.gjt.mm.mysql.Driver    I am using the following apis to get the DriverName.   public void init(ServletConfig scon) {     super.init(scon);     DriverName = getServletContext().getInitParameter("Drive

Re: Frustration with getInitParameter

2001-02-12 Thread Bill Brooks
6 as well. > >> [..post elided..] > >> I can access the "test1" parameter by calling > >> getServletConfig().getServletContext().getInitParameter("test1"). > > > What request URI are you trying to use to access this servlet? If you >

Re: and getInitParameter woes

2001-01-28 Thread Luc Vanlerberghe
ess the servlet through that mapping there should be only one instance that is initialised exactly once. Luc Vanlerberghe "Stein M. Eliassen" wrote: > Hi, > > I think there is a problem with the getInitParameter in 3.2.1. > > When a servlet is defined with 1 in > WE

and getInitParameter woes

2001-01-27 Thread Stein M. Eliassen
Hi, I think there is a problem with the getInitParameter in 3.2.1. When a servlet is defined with 1 in WEB-INF/web.xml the init()-method gets called twice. First time, as expected, when the servlet-engine fires-up. Everthing is swell with the getInitParameter-calls, that is, the init-params

Re: getInitParameter

2001-01-12 Thread William Brogden
Luk Smolders wrote: > > Hi, > > I'm using the following command in my servlet : > value = config.getInitParameter("AddressList"); > > Can someone tell me how to configure Tomcat to get the value assigned to > AddressList. > I don't know where I have to put the information (what file ... ?) >

getInitParameter

2001-01-12 Thread Luk Smolders
Hi, I'm using the following command in my servlet : value = config.getInitParameter("AddressList"); Can someone tell me how to configure Tomcat to get the value assigned to AddressList. I don't know where I have to put the information (what file ... ?) Thanks, Luk --

Re: Frustration with getInitParameter

2000-10-27 Thread Craig R. McClanahan
>> >> test1 >> here1 >> >> >> myservlet >> MyServlet >> >> test2 >> here2 >> >> >> >> >> I can access the "test1&qu

Re: Frustration with getInitParameter

2000-10-26 Thread Jason Bowman
Here are the observed behavior which is important for anyone who is trying to work around this bug, and for anyone who is trying to resolve this bug:   getServletConfig().getInitParameter(String name); - Does not work ... always returns null.   getServletConfig().getServletContext

Re: Frustration with getInitParameter

2000-10-26 Thread Jason Bowman
   here1             myservlet     MyServlet         test2     here2         I can access the "test1" parameter by calling getServletConfig().getServletContext().getInitParameter("test1").  But I c

Re: Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
rvlet         test2     here2         I can access the "test1" parameter by calling getServletConfig().getServletContext().getInitParameter("test1").  But I cannot access the "test2" parameter at all.  For example calling getServletConfig().getInitParamete

Re: Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
etServletConfig().getServletContext().getInitParameter("test1").  But I cannot access the "test2" parameter at all.  For example calling getServletConfig().getInitParameter("test2") returns null. Paul Jason Bowman wrote:  Hello, I had used the successfully before. I have

Re: Frustration with getInitParameter

2000-10-26 Thread Jason Bowman
Hello,   I had used the successfully before. I have, however, just downloaded the latest version of Tomcat 3.2b6 and I am having the same problem you are. I personally believe that this is a bug that was introduced to the code and will post another message reporting that. I am curious thou

Re: Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
William Brogden wrote: One common mistake known to cause problems is having an init method that fails to call super.init(). I do call super.init().  Does anyone think it might not be working for me because I am using the ROOT context for this application?  That context is a bit unique in that it

Re: Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
s (212) 965-1999 xt 110 [EMAIL PROTECTED] Interactive Television Guides -Original Message- From: Paul Hoepfner-Homme [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 26, 2000 11:58 AM To: [EMAIL PROTECTED] Subject: Re: Frustration with getInitParameter Just so y'all know, I can use context-p

Re: Frustration with getInitParameter

2000-10-26 Thread William Brogden
Paul Hoepfner-Homme wrote: > > Just so y'all know, I can use context-params fine, but no > init-params for my servlet work at all. It is useless to define > tags in between my tags in web.xml because > Tomcat doesn't register them or make them available to my servlet. > Tomcat only makes ava

RE: Frustration with getInitParameter

2000-10-26 Thread Morahg, Yoav
o do this.No such luck.  Even when I override init() and in there use getInitParameter from my ServletConfig, there are still zero init parameters, yet I have now defined six in web.xml for this servlet context.  And they are s inside the definition, not s as some people

Re: Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
thod, so I shouldn't have to do this. No such luck.  Even when I override init() and in there use getInitParameter from my ServletConfig, there are still zero init parameters, yet I have now defined six in web.xml for this servlet context.  And they are s inside the definition, not s as some peo

Re: Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
uck.  Even when I override init() and in there use getInitParameter from my ServletConfig, there are still zero init parameters, yet I have now defined six in web.xml for this servlet context.  And they are s inside the definition, not s as some people have mistakenly tried and then complained on t

Re: Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
Kitching Simon wrote: Hi Paul, When you say "the servlet's getInitParameter("test")" what *exactly* do you mean? I mean that I called this.getInitParameter("test"), because this is a method inherited from the GenericServlet class.  It is simply a s

RE: Frustration with getInitParameter

2000-10-26 Thread Kitching Simon
Hi Paul, When you say "the servlet's getInitParameter("test")" what *exactly* do you mean? Do you mean that your servlet's init method is like: public void init(ServletConfig config) throws ServletException { super.init(config); Object o = config.getInit

Frustration with getInitParameter

2000-10-26 Thread Paul Hoepfner-Homme
Tomcat 3.2 beta 6.  I have a servlet in the ROOT context.  The web.xml file in webapps/ROOT/WEB-INF has this entry:     ...     MyServlet         test     here         ... From MyServlet I use the servlet's getInitParameter("test") method and it returns null.  When I