[ http://issues.apache.org/struts/browse/STR-1318?page=all ] David Evans closed STR-1318: ----------------------------
Resolution: Duplicate > contextRelative enhancement to <html:rewrite...> tag > ---------------------------------------------------- > > Key: STR-1318 > URL: http://issues.apache.org/struts/browse/STR-1318 > Project: Struts Action 1 > Type: Improvement > Components: Taglibs > Versions: Unknown > Environment: Operating System: other > Platform: Other > Reporter: James CE Johnson > Priority: Minor > Fix For: 1.1.1 > > This is an addition to my enhancement request in STR-1317. The above patch > includes those changes as well. > Similar to my use of <html:img...> in that bug, I have a need for this kind of > thing: > <td background="<html:rewrite contextRelative="true" > page="/images/header/stripes.gif"/>" > ... > Without the new contextRelative attribute, the <html:rewrite...> will insert > the > module's prefix which, of course, breaks the image links. Like the earlier > change to <html:img...> the contextRelative prevents the module prefix being > inserted into the output. > In order to implement this, I had to modify RequestUtils.computeURL() which I > really didn't want to do. However, it is handling all of the URL resolution > for > the RewriteTag and I didn't see a cleaner solution. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]