You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/08/03 22:30:58 UTC

DO NOT REPLY [Bug 10859] - Override getScheme with redirects

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10859>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10859

Override getScheme with redirects

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From craig.mcclanahan@sun.com  2002-08-03 20:30 -------
When processing a <forward> declaration, for either a redirect or a forward, the
generated URL is actually a server-relative path like
("/myapp/myContextRelativeURL"), rather than an absolute URL.  It is your
browser that is converting that back into an absolute URL, by resolving it
against the URL to which the request was submitted.  It would be necessary to
modify Struts to generate absolute URLs in all cases to make this change, which
would simply increase the size of the generated page for all users.  Worse, it
would break the appliations of people whose proxy servers already handle the
redirection correctly.  Therefore, it seems like implementing this would not be
a good idea.

In addition, even if this change were done, it would still need to be configured
on a forward-by-forward basis -- in other words, it would be just as much work
as your current approach (using absolute URLs on the "href" attribute).

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>