in web.xml:
<servlet-mapping>
       <servlet-name>login</servlet-name>
       <url-pattern>/servlet/login</url-pattern>
</servlet-mapping>
in jsp:
<FORM action="<%=request.getContextPath()%>/servlet/login" method="POST" >
There is an error when the jsp is submit (URL:
http://localhost:8080/test/servlet/login):

type Status report
message /test/servlet/
description The requested resource (/test/servlet/) is not available.

If i remove servlet/,the url http://localhost:8080/test/login can be
accessed correctly.
in web.xml:
<servlet-mapping>
       <servlet-name>login</servlet-name>
       <url-pattern>/login</url-pattern>
</servlet-mapping>
in jsp:
<FORM action="<%=request.getContextPath()%>/login" method="POST" >

Your help is appreciated!
--
 Best Regards.
     jacky

Reply via email to