Question : Why the servlet not shown ?

I created a Tomcat project and inside that I create a servlet (SimpleServlet.java).  I also create a web.xml like below :



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">





SimpleServlet-name>

SimpleServlett-class>





SimpleServlet-name>

/SimpleServlettern>





but when I browse http://localhost:8080/Test/SimpleServlet
the servlet not shown. Why it show this error--> HTTP Status 404 - Servlet SimpleServlet is not available

Answer : Why the servlet not shown ?

Can you browse to   http://localhost:8080/Test/JSPDemo.jsp       ???

I think you should
1)change the name of the folder that is highlighted in your  Test.bmp  image.
change  WEB_INF/src   to    src  

2)Remove the SimpleServlet.java  file that is not in the default package.

Random Solutions  
 
programming4us programming4us