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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to