Fawaz, Isn't this the way it is documented in the DTD for the web.xml file?
-Richard At 02:13 PM 10/3/2002 -0500, you wrote: >If anyone else has this problem in the future, i did figure it out. You >have to encapsulate each seperate init param w/in a <init-param> block. > >Fuz > > On Thu, 3 Oct 2002, Duane Morse wrote: > > > Isn't <servlet-class> supposed to be after all of the <init-param> > nodes for > > a servlet? > > > > Duane Morse, Eldorado Computing Inc., Phoenix, Arizona > > > > > > -----Original Message----- > > From: Fawaz Ahmad [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, October 03, 2002 11:22 AM > > To: [EMAIL PROTECTED] > > Subject: web.xml file > > > > > > Hello, > > > > Is there anything special you have to do to get a web.xml file to work? I > > can not get my servlet to read the init-param's of my web.xml file! My > > servlet is located in the folder tomcat/webapps/WebOE/WEB-INF/classes > > and the web.xml file which is in the WEB-INF folder has the following > > code: > > > > <web-app> > > <servlet> > > <servlet-name>WebOE</servlet-name> > > <servlet-class>WebOE</servlet-class> > > > > <init-param> > > <param-name>DBServer</param-name> > > <param-value>spacejam</param-value> > > </init-param> > > > > </servlet> > > > > </web-app> > > > > but when i try to read it from teh servlet using the getInitParameter > > function, it returns a null function. is there anything that i am > > overlooking? > > > > Thanks! > > > > fuz > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html