Hi, you must add a servlet-mapping...
that the request is directed to the servlet...
<web-app>
<servlet>
<!-- Servlet alias -->
<servlet-name> Registration</servlet-name>
<!-- Fully qualified servlet class -->
<servlet-class>GreetingServlet</servlet-class>
</servlet>
<servlet-mapping>
<url-pattern>/registration/*</url-pattern>
<servlet-name>Registration</servlet-name>
</servlet-mapping>
</web-app>
i hope that helps
greets Otto
-----Ursprüngliche Nachricht-----
Von: B_randy [mailto:mohan_ay@y...]
Gesendet: Donnerstag, 13. Februar 2003 06:32
An: Servlets
Betreff: [servlets] RE: Running servlets example with J2EE 1.4 beta
version
Hello Wiley,
First of all, thankx for taking time to reply.
Well, my web.xml file is as following.
----------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<!-- Servlet alias -->
<servlet-name> Registration</servlet-name>
<!-- Fully qualified servlet class -->
<servlet-class>GreetingServlet</servlet-class>
</servlet>
</web-app
----------------------------------------------------
It lies in the WEB-INF folder as
%TOMCAT_HOME%\webapps\greeting\WEB-INF\web.xml
Please suggest how to add my servlet to web.xml
Thank you in advance.
Regards,
Mohan !
> I don=92t know about the java tutorials but I know when I try to run a
servlet and get that error it usually means the servlet was not added to
the web.xml file in the WEB-INF directory in the application. Maybe that
helps, I don'nt know.
-wiley