tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Noël WALLEZ <jn.wal...@wavenet.be>
Subject Re: getInitParametergetInitParameter
Date Thu, 19 Oct 2000 12:45:29 GMT
"application.getInitParameter()" didn't work becaus I was using
oracle.jsp.JspServlet for mapping *.jsp files.
When I use standard "org.apache.jasper.runtime.JspServlet", it works fine.

I guess Oracle JSP file doesn't support this method!
So I use config.getInitParameter() which a parameter set in the servlet
which map jsp files.
Thanks.

----- Original Message -----
From: "Nick Holloway" <Nick.Holloway@pyrites.org.uk>
Newsgroups: list.tomcat-user
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, October 19, 2000 12:43 PM
Subject: Re: getInitParametergetInitParameter


> jn.wallez@wavenet.be (=?iso-8859-1?Q?Jean-No=EBl_WALLEZ?=) writes:
> > I use jsp 1.0 and I can't access <context-param> I wrote in my web.xml
> > file.  In which web.xml file do I have to insert <context-param>? In
> > "conf" directory or "web-inf" under webapps?
>
> I have used it in the "WEB-INF/web.xml" for the application.
>
> > I tried config.getInitParameter("paramname") but it always return me =
> > null !
>
> You should be using "application.getInitParameter()".  Another problem
> you will run into is that you have defined the parameter "Webmaster",
> but are requesting "webmaster" -- the case is different.
>
> --
>  `O O'  | Nick.Holloway@pyrites.org.uk
> // ^ \\ | http://www.pyrites.org.uk/
>
>



Mime
View raw message