Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28D98490D for ; Tue, 21 Jun 2011 20:50:21 +0000 (UTC) Received: (qmail 42517 invoked by uid 500); 21 Jun 2011 20:50:17 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 42393 invoked by uid 500); 21 Jun 2011 20:50:17 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 42382 invoked by uid 99); 21 Jun 2011 20:50:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 20:50:17 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=DEAR_SOMETHING,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kerotan@kcn.ne.jp designates 61.86.7.211 as permitted sender) Received: from [61.86.7.211] (HELO mailgw04.kcn.ne.jp) (61.86.7.211) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 20:50:08 +0000 Received: from imp03 (mailgw7.kcn.ne.jp [61.86.15.238]) by mailgw04.kcn.ne.jp (Postfix) with ESMTP id BA4681B5989 for ; Wed, 22 Jun 2011 05:49:45 +0900 (JST) Received: from mail09.kcn.ne.jp ([61.86.6.188]) by imp03 with bizsmtp id ykpl1g00P43QJrh01kplHS; Wed, 22 Jun 2011 05:49:45 +0900 X-Direction: outbound X-OrgRCPT: users@tomcat.apache.org Received: from IBM13D1D54DFB9 (ipbf007-066.kcn.ne.jp [61.86.134.66]) by mail09.kcn.ne.jp (Postfix) with SMTP id B1C511BD0036 for ; Wed, 22 Jun 2011 05:49:45 +0900 (JST) Message-ID: <4543BCBF25674376AE4ACD1D428D7739@IBM13D1D54DFB9> From: "kerotan" To: "Tomcat Users List" References: <4DDBF583.1000803@christopherschultz.net> <4DDD2ACA.8060605@christopherschultz.net> Subject: Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0 Date: Wed, 22 Jun 2011 05:49:43 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Virus-Checked: Checked by ClamAV on apache.org 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
. [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. [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: etani@kic.ac.jp --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org