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

http://issues.apache.org/bugzilla/show_bug.cgi?id=31377

logic:iterate tag id can destroy attributes of same name

           Summary: logic:iterate tag id can destroy attributes of same name
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


We encountered a situation where we stored a bean in an action with 
request.setAttribute("item", 
theItem), and then in the resulting JSP have an interate tage:

<logic:iterate id="item" name="someList">
do stuff
</logic:iterate>

Then later, the code tries to reference the original "item": <bean:write name="item" 
property="someProp"/>

But instead of the original bean, "item" now contained the last item in the list 
"someList".

logic:iterate should save the value of "item" and restore it upon exiting the loop.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to