did you restart the server after changing the web-xml ?

regards
guru
-----Original Message-----
From: Eric Noriega [mailto:[EMAIL PROTECTED]]
Sent: 18 July 2002 23:41
To: [EMAIL PROTECTED]
Subject: Re: Problem with Tomcat 4.0.1/4.0.4, can't use init-param &


Oops sorry.  Yeah, I tried taking out the hyphen, but it made no
difference either way.

Tomer Cna'an wrote:

>I don't know if this is the problem, or is it just a typo in the e-mail,
but
>in the example below, the name of the parameter "connectuser" is differnet
>from the name in the web.xml file: "connect-user".
>
>
>----- Original Message -----
>From: "Eric Noriega" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, July 18, 2002 10:54 PM
>Subject: Problem with Tomcat 4.0.1/4.0.4, can't use init-param &
>
>
>>    Can't get the params in JSP file, see below.  I know there was a
>>problem at one point, but I thought this had been fixed.  Seems to
>>happen in both 4.0.1 & 4.0.4.  Any info appreciated, thanks.
>>
>>in JSP:
>>. . .
>> final String cu = config.getInitParameter("connectuser");
>>. . .
>>
>>in web.xml descriptor:
>>. . .
>>  <servlet>
>>   <servlet-name>xxxxxxxx</servlet-name>
>>   <display-name>xxxxxxxx</display-name>
>>   <description>xxxxxxxxxxxxxxx</description>
>>   <jsp-file>/infodisp.jsp</jsp-file>
>>   <init-param>
>>      <param-name>connect-user</param-name>
>>      <param-value>userid</param-value>
>>      <description>Userid to initiate database connection
>>under.</description>
>>   </init-param>
>>. . . 2 more init-params
>>  </servlet>
>>. . .
>>
>>
>___________________________________________________________________________
>
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>>
>body
>
>>of the message "signoff SERVLET-INTEREST".
>>
>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to