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("GuessServlet.java"), the absolute path is inevitable in <FORM>.
[guess.jsp]
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 dispacher.
<FORM ACTION="/ex4/req.guess">

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

Regards,
-------------------------------------
Noriko Etani
Kobe Institute of Computing, Japan
Email: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to