Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-17 Thread Timothy Stone
This issue is archived at: http://marc.theaimsgroup.com/?l=tomcat-userm=105578975520239w=2 Timothy Stone wrote: I have to say, the behavior seems almost identical to the described behavior of RequestDispatcher#include since control is given back to the forwarding servlet. The subtle differences

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-17 Thread Shapira, Yoav
Howdy, One: as noted, return explicitly from the executing method OR I like this one, as it's clear and simple. If you forward somewhere you shouldn't be doing anything in the method afterwards. Two: explictly use out.close() in the called resource. (not useful when the called resource is

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Tim Funk
It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim Timothy Stone wrote: List, I'm having some trouble with using a RequestDispatcher, it works and doesn't work. #doPost( req, res ) ... 50 Customer customer = 51 Customer.findCustomer( emailAddress, custData); 52

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Tim Funk wrote: It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim I know it's null :) That's the idea of checking to see if the customer or the password on the request is null, or if the password is incorrect. Forward the user to the /move/accounts.jsp. The forward is

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Shapira, Yoav
Howdy, The return; that Tim added is just as important as the null check... Yoav Shapira Millennium ChemInformatics -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 3:09 PM To: Tomcat Users List Subject: Re: RequestDispatcher anomolies

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Shapira, Yoav wrote: Howdy, The return; that Tim added is just as important as the null check... Yoav Shapira Millennium ChemInformatics Tim Funk wrote: It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim I guess that the way I understood forward( req, res) was that

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Shapira, Yoav
Shapira Millennium ChemInformatics -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 3:36 PM To: Tomcat Users List Subject: Re: RequestDispatcher anomolies (Tomcat v4.1.24) Shapira, Yoav wrote: Howdy, The return; that Tim added is just as important

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Shapira, Yoav wrote: Howdy, I'm attaching a .zip file containing a .war that should help you convince yourself. I'd attach the .war or the source files directly but the listserv doesn't like that. Note the Servlet Specification, v2.3, does not mention whether/when method the method should return