Hi,

This servlet worked for me:

http://www.matcmp.ncc.edu/~steve/servlets/simpleservlet

I used the following inside my web.xml

    <servlet>
      <servlet-name>SimpleServlet</servlet-name>
      <servlet-class>servlets.SimpleServlet</servlet-class>
    </servlet>
    <servlet-mapping>
     <servlet-name>SimpleServlet</servlet-name>
     <url-pattern>/servlets/simpleservlet</url-pattern>
    </servlet-mapping>

(I compiled it as part of package servlets but that doesn't matter)

I think the key part that you are missing is the servlet mapping.

also make sure that your class file is inside a subdir called chapter2

-Steve O.


> Greetings everyone!
> I'm a newbie with Tomcat and i've already been trying out a simple
> server example for about 2 days now and still it wouldnt work. I
> really hope someone would help me out.


�������������������������������������������������������
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us

B17G WWII Bomber "Yankee Lady" Flight
http://www.steveo.us/b17ride




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to