Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 62581 invoked from network); 14 Nov 2001 15:54:51 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Nov 2001 15:54:51 -0000 Received: (qmail 6107 invoked by uid 97); 14 Nov 2001 15:53:13 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 6061 invoked by uid 97); 14 Nov 2001 15:53:12 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 6040 invoked from network); 14 Nov 2001 15:53:12 -0000 Message-ID: <093601c16d24$f8d0ac80$ec960040@allegro> Reply-To: "Tom Drake" From: "Tom Drake" To: "Tomcat Users List" , References: <001a01c16d21$92b61780$a001a8c0@notivaboudreau> Subject: Re: resp.sendRedirect("./Join2?Email_Address=" + EmailAddress); Date: Wed, 14 Nov 2001 07:56:48 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You're @ is likely the problem. You must url-encoude the redirect address. ----- Original Message ----- From: "Carl Boudreau" To: "'Tomcat Users List'" Sent: Wednesday, November 14, 2001 7:32 AM Subject: resp.sendRedirect("./Join2?Email_Address=" + EmailAddress); | Good Morning Fellow Coders, | | I have a very interesting question for all of you. Below is a small | snippet of code which basically validates a database Insert operation. The | operation writes to the database then turns around and read the email | address and compares it to what was passed to the Servlets. For example | within the 20 params sent, cboudrea@pressenter.com would be sent as an email | address. It would then be written and then it would re-query the database | and compare the results. This snippet makes the comparison between what was | passed and what was read out of the database, in turn uses the Redirect to | either move on to the next Servlets Join2 if successful, or display | joinerror.html if un-successful. But an exception is caught and ends the | Servlets. During debug I have reduce the error to the redirect line | [resp.sendRedirect("./Join2?Email_Address=" + EmailAddress);]. | | Now I have been monitoring the email forum and had seen there was a problem | with the redirect. And in the mean time I had manually started these | Servlets by using IE and entering the | [./Join2?Email_Address=cboudrea@pressenter.com)] and it works fine. I | think, I found out, that if I manually do this first, then run it normally | by hitting it from a index.html page it works. But my results have been | very erratic and I don't trust myself. | | I have tried to use out.flush( ); alone and then followed up by a | out.close( ); by this doesn't seem to change anything. | | DOES ANYONE HAVE ANY SUGGESTIONS, OR A WORK AROUND? | | Source Code Snippet; | | if(TxtCheck1.equals(MemberMail)) | { | // User join1 data has been added to Database | resp.sendRedirect("./Join2?Email_Address=" + | EmailAddress); | } | else { | | resp.sendRedirect("./htmlpage/joinerror.html"); | } | | | System Config; | | Win2000pro. | Tomcat 4.0 standalone. | MySQL 7.0 | | | -- | To unsubscribe: | For additional commands: | Troubles with the list: | | | -- To unsubscribe: For additional commands: Troubles with the list: