-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
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
___
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
MAIL PROTECTED]>cc:
Subject: getInitParameter from within a
bean?
: '[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
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
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 .
>
>
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
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
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
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
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
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
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
>
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
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
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 ... ?)
>
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
--
>>
>> test1
>> here1
>>
>>
>> myservlet
>> MyServlet
>>
>> test2
>> here2
>>
>>
>>
>>
>> I can access the "test1&qu
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
here1
myservlet
MyServlet
test2
here2
I can access the "test1" parameter by calling
getServletConfig().getServletContext().getInitParameter("test1").
But I c
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
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
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
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
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
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
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
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
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
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
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
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
33 matches
Mail list logo