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