On Thu, 12 Apr 2001, Sukachevin, Stoehr wrote:
> Is it really necessary to have the LinkTag [and RedirectTag] use the
> RequestUtils.absoluteURL() method when the "forward" or "page" attribute is
> specified?
>
There are a couple of issues here:
* For the link tag, the logic is faced with having a context-relative
path (retrieved from struts-config.xml) that it needs to return to
the browser. Browsers have no clue how to understand context-relative
references, so we've only got two choices: (a) translate it to
absolute, or (b) try to figure out a valid relative path to the new
destination. The latter is harder than it looks in the Struts
environment, because the address has to be relative to wherever the
browser submitted the form, not to the page itself.
* For the redirect tag, even if the tag doesn't convert the URL to
absolute, the servlet engine is supposed to -- this is required by
the servlet specification.
Craig McClanahan