I hope this is an error in the spec, because the sendRedirect function is not very 
usefull if you have to calculate an absolute Url everytime you're doing a redirect.

And since it works with relative Url's I see no reason why it shouldn't be allowed.


.henric


----- Original Message -----
From: Magnus Stenman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 1999 1:53 PM
Subject: sendRedirect() restriction


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 Stenman
http://orion.evermind.net

___________________________________________________________________________
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

___________________________________________________________________________
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

Reply via email to