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=17977>.
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=17977

Nested Taglib nested:iterate loses index with jsp:include

           Summary: Nested Taglib nested:iterate loses index with
                    jsp:include
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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]

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

Reply via email to