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?

No.  You can find all this information (i.e. details on the web.xml
file) in the servlet spec.  It's relatively easy reading, as specs go :-).


> -----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
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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

Reply via email to