It is <webapp>/servlet/login indeed. In fact, my jsp structure is as following: in index.jsp: <jsp:include page="/jsp/top.jsp"/>
in top.jsp: <FORM action="<%=request.getContextPath()%>/servlet/login" method="POST" onsubmit="return loginCheck(this);"> .. </FORM> //here, the form will be submit On 4/3/07, David Delbecq <[EMAIL PROTECTED]> wrote:
En l'instant précis du 03/04/07 11:47, jacky s'exprimait en ces termes: > 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. You tried to post to <webapp>/servlet, not <webapp>/servlet/login according to your error message. Check you didn't forget a /login somewhere in your jsp. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Best Regards. jacky