Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP Status 404 - Servlet as is not available
12-13-2011, 02:45 AM (This post was last modified: 12-19-2011 03:18 AM by rajasri.)
Post: #1
Big Grin HTTP Status 404 - Servlet as is not available
Today we are going to learn about solving the error "HTTP Status 404 - Servlet as is not available"

The first thing here to check is web.xml file where you have to specify the servlet-name and servlet-mapping attributes like below ex:servletname:colorservlet

Quote:<servlet>
<servlet-name>colorservlet</servlet-name> <servlet-class>colorservlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>colorservlet</servlet-name> <url-pattern>/colorservlet</url-pattern>
</servlet-mapping>

Finally check the form attribute action as action="colorservlet"
now you can run your program.

Happy coding
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
Rainbow Simple Servlet Program mukesh1234 0 57 01-30-2012 12:32 AM
Last Post: mukesh1234
Exclamation captcha project in jsp/servlet rajasri 0 193 12-19-2011 10:14 PM
Last Post: rajasri
Heart How to authenticate in a webapplication using jsp and servlet rajasri 0 274 12-13-2011 05:02 AM
Last Post: rajasri
Tongue How to run servlet in tomcat 5.5 rajasri 0 430 12-13-2011 02:31 AM
Last Post: rajasri
Tongue Servlet example for printing random values rajasri 0 120 12-12-2011 11:18 PM
Last Post: rajasri
  Servlet example for printing random values admin 0 238 11-28-2011 11:00 PM
Last Post: admin

Forum Jump:


User(s) browsing this thread: 1 Guest(s)


WE will share important jobs and updates on facebook so like us to get updates