which directory contains your web.xml ? (it should be in /webapp/WEB-INF/)
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Gommlich Andre
Sent: Friday, May 04, 2001 1:12 PM
To: [EMAIL PROTECTED]
Subject: Tomcat does'nt read the web.xml
Hallo,
I'want to initialise a servlet with parameters. but if i call the servlet,
the
parameter are null
web.xml :
<web-app>
<servlet>
<servlet-name>ShowMsg</servlet-name>
<servlet-class>port.ShowMessage</servlet-class>
<init-param>
<param-name>message</param-name>
<param-value>Shibboleth</param-value>
</init-param>
<init-param>
<param-name>repeats</param-name>
<param-value>5</param-value>
</init-param>
</servlet>
</web-app>
and the init() method
package port;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
...
public void init(ServletConfig config) throws ServletException {
String message;
super.init(config);
message = config.getInitParameter("message");
...
Have anybody a idea
thanks Andr� Gommlich
___________________________________________________________________________
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