tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: what if response.sendRedirect(null)
Date Fri, 02 Jan 2004 12:14:38 GMT
The spec doesn't dictate that the parameter to sendRedirect must be non-null. 
So the behavior probably varies by container. Other containers might throw NPE.

-Tim

Antony Paul wrote:
> Hi,
>     What will happend if response.sendRedirect(null) is called. It is giving
> a directory listing. No error is thrown. Is this as per the spec ? I am
> using Tomcat 4.1.27 with JDK 1.3.1
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message