what if response.sendRedirect(null)

2004-01-02 Thread Antony Paul
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 rgds Antony Paul - To unsubscribe,

Re: what if response.sendRedirect(null)

2004-01-02 Thread Tim Funk
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