tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacky <jackych...@gmail.com>
Subject Re: servlet url pattern problem!
Date Thu, 05 Apr 2007 05:00:47 GMT
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 <delbd+jakarta@oma.be> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
  Best Regards.
      jacky
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message