tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kerotan" <>
Subject Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0
Date Tue, 21 Jun 2011 20:49:43 GMT
Dear Sirs,

> On Thursday, May 26, 2011 1:14 AM
> - From what you have above, "/guess" does not appear to be a valid URL.
> You appear to have lost the context path somewhere.
 This problem has been resolved. In this case, when JSP("guess.jsp") calls 
Servlet(""), the absolute path is inevitable in <FORM>.
In form action, the relative path was described and the context path was 
lost. Here, the abosolute path can be available in this calling case by 
<FORM ACTION="/ex4/req.guess">

In the servlet program, urlPattern is specified as follows:
@WebServlet(name="GuessServlet", urlPatterns={"/req.guess"})

Noriko Etani
Kobe Institute of Computing, Japan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message