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 2003/03/18 16:38:02 UTC
DO NOT REPLY [Bug 18107] New: -
contextRelative enhancement to tag
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=18107>.
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=18107
contextRelative enhancement to <html:img...> tag
Summary: contextRelative enhancement to <html:img...> tag
Product: Struts
Version: 1.1 RC1
Platform: PC
URL: http://www.tragus.org/~jcej/ImgTag.patch
OS/Version: Linux
Status: NEW
Severity: Enhancement
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: jcej@tragus.org
The patch at the URL above adds a 'contextRelative' attribute to the
<html:img...> tag. This "anchors" the image src at the application context
rather than the module context when the 'page' attribute is used to specify an
image path.
For instance:
<html:img page="/images/foo.gif"/>
In the admin module will render:
<img src="/MyApplication/admin/images/foo.gif"/>
Using the new attribute:
<html:img page="/images/foo.gif" contextRelative="true"/>
In the admin module will render:
<img src="/MyApplication/images/foo.gif"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org