Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Server and Client, Need Help... cant Figure Out :(

I'm having problems with servlets. I Know that I have installed successfully my tomcat coz when I run the server it shows that page that I have successfully installed my tomcat. My problem is I have my servlet code I compiled it and I received no errors. But when I tried to run it in the server though the html page works properly and when I pressed the send button I always received a message just like this:

HTTP Status 404 - /GreetingServlet

--------------------------------------------------------------------------------

type Status report

message /GreetingServlet

description The requested resource (/GreetingServlet) is not available.


hope you can help me with this.
Shem
(+63)(919-280-6183)

Comments

  • SOLionSOLion Member Posts: 6
    Where are you putting your class files? By default they should be put in ../WEB-INF/classes.

    You also have to edit the XML file web.xml found in the folder WEB-INF. You add something like this.


    Your Servlet
    YourServlet


    The link to a servlet will be www.localhost.com/servlets/YourServlet

    Notice there is no extension at the end of the servlet name.

    I hope this helps

    ---------------------------------------------
    SOL

Sign In or Register to comment.