On Fri, 9 Mar 2001, Markus Keller [OrcaSoft] wrote:
> Hello Milt
>
> > > The value of init parameter var1 is:
> > > <%=
> > > getServletConfig().getInitParameter("var1")
> > > %>
> > >
>
> I use this:
>
> <%= getServletContext().getInitParameter("ApplicationName") %>
>
> instead of getSe
Hello Milt
> > The value of init parameter var1 is:
> > <%=
> > getServletConfig().getInitParameter("var1")
> > %>
> >
I use this:
<%= getServletContext().getInitParameter("ApplicationName") %>
instead of getServletConfig() and it works.
Markus
-
On Thu, 8 Mar 2001, Milt Epstein wrote:
[ ... ]
>
>
> Testy
>
>
> <%@ page
> import="java.util.*"
> %>
> <%!
> Enumeration names;
> String name;
> %>
>
> The value of init parameter var1 is:
> <%=
> getServletConfig().getInitParameter("var1")
> %>
>
>
> The init parameters
On Thu, 8 Mar 2001 [EMAIL PROTECTED] wrote:
> OK this is how to get init-params working for JSP
>
> Include this in your web.xml file
>
>
>
>
>foo
>
>
>bar
>
>
>
>
> And then in your JSP page:
>
> String s = application.getInitPa
3/08/01 08:00 AM
Please respond to tomcat-user
To: [EMAIL PROTECTED]
cc:
Subject: Re: config.getInitParameter() still returning null
On Thu, 8 Mar 2001, Bo Xu wrote:
> [EMAIL PROTECTED] wrote:
>
> > The config.getInitParameter() call
done.
Bo Xu <[EMAIL PROTECTED]>
03/08/01 10:09 AM
Please respond to tomcat-user
To: [EMAIL PROTECTED]
cc:
Subject: Re: config.getInitParameter() still returning null
Milt Epstein wrote:
> [ ... ]
>
> I could be wrong, but I do
Milt Epstein wrote:
> [ ... ]
>
> I could be wrong, but I don't believe you have to define
> servlet-mapping's to get init-param's to work, just having defined the
> servlet is sufficient. However, in the URL, you do need to use the
> specific servlet-name you used in the servlet definition. (T
On Thu, 8 Mar 2001, Bo Xu wrote:
> [EMAIL PROTECTED] wrote:
>
> > The config.getInitParameter() called from within a JSP page is
> > returning null. After changing the web.xml file numerous times and
> > trying all the suggestions from java.sun.com and the tomcat archives I
> > still cannot reso
[EMAIL PROTECTED] wrote:
> The config.getInitParameter() called from within a JSP page is
> returning null. After changing the web.xml file numerous times and
> trying all the suggestions from java.sun.com and the tomcat archives I
> still cannot resolve this problem.
> Does anyone know why we ca
Hi,
Murphy
I used
the method config.getInitParameterNames() to get the Enumeration
(pa) of parameters.
then I
printed them out like this:
while
(pa.hasMoreElements()) {
String key = (String)
pa.nextElement();
String value =
config.getInitParameter(key);
The config.getInitParameter() called from within a JSP page is returning null. After changing the web.xml file numerous times and trying all the suggestions from java.sun.com and the tomcat archives I still cannot resolve this problem.
Does anyone know why we can't access the init parameters?
than
11 matches
Mail list logo