Howdy, Getting init parameters is usually a simple deal. Please post the code you're using to get the parameters, and the results you get. I'm assuming your tomcat environment is set up correctly, no errors on startup, the examples run, etc.?
Typically, getServletConfig().getInitParameter("param-name") will get you back "param-value". Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Luminous Heart [mailto:[EMAIL PROTECTED]] >Sent: Thursday, July 18, 2002 2:03 PM >To: Tomcat Users List >Subject: How to get InitParameters. > >I can access my parameters if I put them in this >format. > ><Context ....> <Parameter ... /></Contect> > >But if I use this format, which what I really want, I >can not access them using getInitParameter(name) > ><servlet> > <servlet-name>testbed</servlet-name> > <jsp-file>Mail/testbed.jsp</jsp-file> > <init-param> > <param-name>protocol</param-name> > <param-value>imap</param-value> > </init-param> > <init-param> > <param-name>mbox</param-name> > <param-value>Inbox</param-value> > </init-param> > <init-param> > <init-param> > <param-name>host</param-name> > <param-value>localhost</param-value> > </init-param> > </servlet> > >What am I doing wrong! I am using tc4. > >__________________________________________________ >Do You Yahoo!? >Yahoo! Autos - Get free new car price quotes >http://autos.yahoo.com > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>