ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Java Web Applications
Subject:   HTTP Status 404 - /onjava/servlet/com.onjava.login
Date:   2007-07-23 12:42:56
From:   RaviKA
Response to: HTTP Status 404 - /onjava/servlet/com.onjava.login

Add the below servlet mapping to your web.xml. The servlet mapping should be given under the servlet. And the example should work.


<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/servlet/com.onjava.login</url-pattern>
</servlet-mapping>