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-09-25 04:14:45
From:   vikaschablani
Response to: HTTP Status 404 - /onjava/servlet/com.onjava.login

One correction. In url patern there is a forward slash prefixed before the string. So if in jsp string was: action="servlet/com.onjava.login", in xml it will be
<url-pattern>/servlet/com.onjava.login</url-pattern>


web.xml->
-----------------------------------
<web-app>
<servlet>



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


</web-app>
-------------------------------------


1 to 1 of 1
1 to 1 of 1