Paul
Paul Hoepfner-Homme wrote:
Paul Hoepfner-Homme wrote:Yes, this is what I am trying to do. Maybe I'll try overriding the init() method of my servlet and try to call it up from there, but as you say, the docs say I should be able to do it from within a service method, 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 <init-param>s inside the <servlet> definition, not <context-param>s as some people have mistakenly tried and then complained on the mailing list that they couldn't access the values using getInitParameter().Please help!
> -----Original Message-----
> From: Paul Hoepfner-Homme [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Frustration with getInitParameter
>
> 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:
> <servlet>
> <servlet-name>...</servlet-name>
> <servlet-class>MyServlet</servlet-class>
> <init-param>
> <param-name>test</param-name>
> <param-value>here</param-value>
> </init-param>
> ...
> </servlet>
>
> From MyServlet I use the servlet's getInitParameter("test") method and it
> returns null. When I try to iterate through the parameter names, there
> are none to iterate through.
>
> What am I doing wrong??
>
> Thanks
> --
> Paul Hoepfner-Homme
> [EMAIL PROTECTED]
>
> OVEN Digital | <http://www.oven.com/>
>-- Paul Hoepfner-Homme [EMAIL PROTECTED] OVEN Digital | http://www.oven.com/-- Paul Hoepfner-Homme [EMAIL PROTECTED] OVEN Digital | http://www.oven.com/
-- Paul Hoepfner-Homme [EMAIL PROTECTED] OVEN Digital | http://www.oven.com/
