Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 8709 invoked from network); 15 Nov 2007 13:56:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2007 13:56:50 -0000 Received: (qmail 22459 invoked by uid 500); 15 Nov 2007 13:56:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22411 invoked by uid 500); 15 Nov 2007 13:56:25 -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 22400 invoked by uid 99); 15 Nov 2007 13:56:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 05:56:25 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of TorIverW@arrive.no designates 138.62.101.73 as permitted sender) Received: from [138.62.101.73] (HELO SRV-IMSS-03.nsb.no) (138.62.101.73) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 13:56:15 +0000 Received: from EXC-VN-01.nsb.no ([138.62.100.56]) by SRV-IMSS-03.nsb.no with InterScan Message Security Suite; Thu, 15 Nov 2007 14:56:04 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Re: FORM login, would like error page same as login page Date: Thu, 15 Nov 2007 14:56:04 +0100 Message-ID: In-Reply-To: <473C4549.1060507@etf.bg.ac.yu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: FORM login, would like error page same as login page thread-index: AcgniQb2qJTAglhFRl20dq8Pxe1q0gAA+BfA From: "Wilhelmsen Tor Iver" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org > I beleive that JavaSrcipt it is okay, because when I try the page alone (/login.html?err=3D1), it works just fine. Thinking more about it, the form-error-page reference is just used server-side via internal include or forward to obtain content returned for a different URL: Since the page reference uses a WEB-INF path, it cannot be part of an URL that is sent to the browser (since Tomcat would never serve content from there directly). Try adding=20 =20 to see what the real URL is when you expect it to use the error page; most likely that will be the URL of the resource that triggered the authentication in the first place. I guess the best solution would be to use .jsp extension instead, and pick up the parameter value from the request in Java code instead of Javascript. --------------------------------------------------------------------- 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