tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacky <jackych...@gmail.com>
Subject servlet url pattern problem!
Date Tue, 03 Apr 2007 09:47:28 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message