Re: solved-Re: config.getInitParameter() still returning null

2001-03-08 Thread Milt Epstein
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

Re: solved-Re: config.getInitParameter() still returning null

2001-03-08 Thread Markus Keller [OrcaSoft]
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 -

Re: solved-Re: config.getInitParameter() still returning null

2001-03-08 Thread Milt Epstein
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

Re: solved-Re: config.getInitParameter() still returning null

2001-03-08 Thread Milt Epstein
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

solved-Re: config.getInitParameter() still returning null

2001-03-08 Thread Michael . Murphy
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

Re: config.getInitParameter() still returning null

2001-03-08 Thread Michael . Murphy
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

Re: config.getInitParameter() still returning null

2001-03-08 Thread Bo Xu
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

Re: config.getInitParameter() still returning null

2001-03-08 Thread Milt Epstein
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

Re: config.getInitParameter() still returning null

2001-03-08 Thread Bo Xu
[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

Re: config.getInitParameter() still returning null

2001-03-07 Thread Chen JUn
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);    

config.getInitParameter() still returning null

2001-03-07 Thread Michael . Murphy
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