On Wed, 14 Mar 2001 [EMAIL PROTECTED] wrote:

> hello,
> 
> I have the following lines in my web.xml file
> 
> <servlet>
>     <servlet-name>
>         jsp
>     </servlet-name>
>     <servlet-class>
>         org.apache.jasper.runtime.JspServlet
>     </servlet-class>
>     <init-param>
>         <param-name>jnw</param-name>
>         <param-value>salutjeannoel</param-value>
>     </init-param>
>     <load-on-startup>
>         -2147483646
>     </load-on-startup>
> </servlet>
> 
> I create a jsp file with the following line:
>     out.println(config.getInitParameter("jnw"));
> and this return me 
>     null
> I use Tomcat 3.2 and my before with Tomcat 3.1 it was running fine.

Well, I don't know what it means that it worked with 3.1 and isn't
with 3.2, but we just had a bit of discussion of get init-param's to
work with JSP's.  For one thing, you have to use a jsp-file tag
instead of servlet-class in web.xml.  And you might also have to set
up a servlet-mapping so that you can use a *.jsp style URL.  You can
check the archives for more info.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to