> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com]
> Subject: Null value in response.sendRedirect() causes original url to
> be invoked 20 times
> 
> A null value in bounce_url is causing the original Request url to be
> invoked exactly 20 times, rather than dying with NullPointerException:

"Doctor, doctor, it hurts when I do this!"

Well, stop doing it.

All a redirect does is set the Location header with the value you specify and 
return a 302 status to the client.  Since the Location header has an empty 
value, the client properly interprets that as a relative redirect to the 
current page.  Your client apparently gets tired of waiting for that page to 
change its mind and return something useful after 20 consecutive times, so it 
quits.

The bug is all yours.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to