[ http://issues.apache.org/struts/browse/STR-1301?page=all ]
David Evans reopened STR-1301:
------------------------------
Assign To: (was: Struts Developer Mailing List)
> <nested:iterate> loses index with jsp:include
> ---------------------------------------------
>
> Key: STR-1301
> URL: http://issues.apache.org/struts/browse/STR-1301
> Project: Struts Action 1
> Type: Bug
> Components: Taglibs
> Versions: 1.1 Final
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Chris Butler
> Priority: Minor
> Fix For: 1.2 Family
> Attachments: Names.java, StrutsBaseForm.java, StrutsInnerBean.java,
> requestScope.jsp, testBase.jsp, testInnerJunk.jsp, testInnerOne.jsp,
> testInnerTwo.jsp, testNestedIterate.jsp, testNestedIterateInclude.jsp,
> testNestedIterateInclude.jsp, testNestedIterateInclude2.jsp
>
> POTENTIAL BUG:
> When using nested:interate and placing a jsp:include in the iteration, the
> included jsp cannot retrieve the proper nesting level. Thus any form related
> nested tags are possibly named with duplicate names. ie:
> <input hidden="name[0]" value="name1"/>
> <input hidden="name[0]" value="name2"/>
> COMMENT OF NOTE:
> It appears that tag does *NOT* lose the actual underlying beans,
> it just loses the proper naming of the index.
> SIMPLE EXAMPLE:
> *** testNestedIterate.jsp =
> <nested:root name="narray">
> <nested:iterate property="names">
> BEFORE: <nested:writeNesting /><br />
> <jsp:include page="testNestedIterateInclude.jsp" />
> </nested:iterate>
> </nested:root>
> *** testNestedIterateInclude.jsp =
> <nested:root>
> AFTER: <nested:writeNesting />
> Name in bytes: <nested:write property="bytes"/><p />
> </nested:root>
> I will attach the test class throwaway.test.Names
> in a subsequent comment to help document this problem better.
> I've tried to seriously test this before submitting this as
> bug so if any further information is needed please reach me
> at [EMAIL PROTECTED]
--
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]