> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: Null value in response.sendRedirect() causes original url
> tobe invoked 20 times
> 
> I would say that null cannot be converted into a valid URL, and so
> throwing IllegalStateException is a reasonable behavior here.

I have to disagree; an empty relative URL is simply a reference to the current 
page, which may be quite appropriate in some circumstances (but arguably not a 
plain 302).

I strongly disagree with the idea that the container should protect the 
programmer against his/her own errors; there are a myriad of things a webapp 
can do that make no sense, and the container should not be slowed down by 
checking for them, unless they are clear violations of the spec.

 - 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.

Reply via email to