Magnus Stenman wrote:
>
> As a webserver developer implementing the 2.1 API a question has arised:
> Yesterday a user claimed a "bug" in our implementation, namely an
> IllegalArgumentException being thrown when attempting to do a sendRedirect()
> with a non-absolute URL. Our reply was that the spec clearly states that an
> IllegalArgumentException should be thrown in that case. He then referred to
> other servlet engines, and more importantly; the reference implementations
> behavior (which allows this). Is it a bug in the reference implementation or
> an error in the spec? Any answers would be appreciated.
Magnus,
I don't know if its a bug in the spec or not but I allow non-absolute
URLs in my implementation for the simple reason that the browser is able
to process it (the location header). Like you I am not sure if its a
bug. It would be great to hear some more thoughts on this subject.
Gabriel Wong
http://www.ezwebtools.com
-------------------------
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html