tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
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.


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:
For additional commands, e-mail:

View raw message