You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Volker Turau <tu...@informatik.fh-wiesbaden.de> on 2000/07/03 17:03:33 UTC
Bug or feature
The web-application spec allows the assignment of init-params to
JSP-files. I did the following in my web.xml file:
<servlet>
<servlet-name>config</servlet-name>
<jsp-file>/webanw/config.jsp</jsp-file>
<init-param>
<param-name>Init-param</param-name>
<param-value>wert3</param-value>
</init-param>
</servlet>
In the JSP-page config.jsp the call
config.getInitParameter("Init-param")
returns null when I use Tomcat 3.1. The same application works fine using
the Orion server. Now which is the correct behaviour?
volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau
Re: Bug or feature
Posted by Volker Turau <tu...@informatik.fh-wiesbaden.de>.
On Thu, 6 Jul 2000, Steve Weiss wrote:
> Try "<init-param>" instead of "<Init-param>".
>
I use <init-param>, Init-param is just the name of the parameter. read
carefully!
> Volker Turau wrote:
> >
> > The web-application spec allows the assignment of init-params to
> > JSP-files. I did the following in my web.xml file:
> >
> > <servlet>
> > <servlet-name>config</servlet-name>
> > <jsp-file>/webanw/config.jsp</jsp-file>
> > <init-param>
> > <param-name>Init-param</param-name>
> > <param-value>wert3</param-value>
> > </init-param>
> > </servlet>
> >
> > In the JSP-page config.jsp the call
> >
> > config.getInitParameter("Init-param")
> >
> > returns null when I use Tomcat 3.1. The same application works fine using
> > the Orion server. Now which is the correct behaviour?
> >
> > volker turau
> > FH Wiesbaden Fachbereich Informatik
> > Tel.: +49-611-9495-205 FAX +49-611-9495-210
> > http://www.informatik.fh-wiesbaden.de/~turau
> >
>
Re: Bug or feature
Posted by Steve Weiss <sw...@aamc.org>.
Try "<init-param>" instead of "<Init-param>".
-Steve
Volker Turau wrote:
>
> The web-application spec allows the assignment of init-params to
> JSP-files. I did the following in my web.xml file:
>
> <servlet>
> <servlet-name>config</servlet-name>
> <jsp-file>/webanw/config.jsp</jsp-file>
> <init-param>
> <param-name>Init-param</param-name>
> <param-value>wert3</param-value>
> </init-param>
> </servlet>
>
> In the JSP-page config.jsp the call
>
> config.getInitParameter("Init-param")
>
> returns null when I use Tomcat 3.1. The same application works fine using
> the Orion server. Now which is the correct behaviour?
>
> volker turau
> FH Wiesbaden Fachbereich Informatik
> Tel.: +49-611-9495-205 FAX +49-611-9495-210
> http://www.informatik.fh-wiesbaden.de/~turau
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
--
Steve Weiss Association of American Medical Colleges
(202)828-0428 mailto:sweiss@aamc.org http://www.aamc.org