Results 1 to 2 of 2

Thread: Status Code 404

  1. #1
    tommy is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default Status Code 404

    I'm calling that servlet using an html code. The html page comes up but it fails to call the servlet and I get a Status Code 404.

    I have this in my post method in the html code:
    Java Code:
    <form action="http://localhost:8080/servlets-exmples/servlet/Servlr" method="post"> to call the servlet.
    My html is saved in:
    Java Code:
    Servlet is saved:
    Java Code:
    Can somebody tell me where am I going wrong?


  2. #2
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Rep Power


    Try this in your html form:
    Java Code:
    <form action="http://localhost:8080/servlets-exmples/GreetingServlet" method="post">
    If this doesn't work, write <servlet> and <servlet-mapping> entries in your servlets-examples\WEB-INF\web.xml file. Then, restart the server. And please tell the result.

Similar Threads

  1. I need help fixing my code.. or non code?
    By MrHuggykins in forum New To Java
    Replies: 1
    Last Post: 03-19-2008, 11:12 PM
  2. Applet with scrolling status line
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-10-2008, 03:53 PM
  3. HTTP Status 404 - Servlet action is not available
    By onceuponatime in forum Java Servlet
    Replies: 1
    Last Post: 12-11-2007, 05:29 PM
  4. Hide hyperlink address on status bar
    By simon in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-24-2007, 10:34 AM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts