https://issues.apache.org/bugzilla/show_bug.cgi?id=46187

           Summary: problem with XTAG:attribute on Tomcat 5.5
           Product: Taglibs
           Version: unspecified
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: P2
         Component: XTags Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Hi,

I am using apache Tomcat 5.5 to run my web application. Following is the code
snippet from a JSP which generates incorrect results on Tomcat:

<LOGIC:iterate id="article" name="articleList">
        <XTAG:element name="Address">
                <XTAG:attribute name="format">Simple</XTAG:attribute>
                < %-- Display article address information --%>
                <ARTICLE :field  field=«articleAddress« />            
        </XTAG :element>
</LOGIC:iterate>

For example, the articleList size is 3 then the XML should be generated as
below:

<Address format=”Simple”>
        Sample Address 1
</Address>
<Address format=”Simple”>
        Sample Address 2
</Address>
<Address format=”Simple”>
        Sample Address 3 
</Address>

This works correctly on WebSphere but the same piece of code generates the
following output on Tomcat:

<Address format=”Simple” format=”Simple” format=”Simple”>
        Sample Address 1
</Address>
<Address format=”Simple” format=”Simple” format=”Simple”>
        Sample Address 2
</Address>
<Address format=”Simple” format=”Simple” format=”Simple”>
        Sample Address 3
</Address>

On Tomcat when an <XTAG:attribute is present inside a loop (Logic:iterate) then
the attribute gets duplicated in the parent node a number of times.
The XML generated on Tomcat becomes invalid because in an XML a node element
can’t have duplicate attributes.

Pls let us know if there is any existing bug for the same issue for which we
can take a patch or is this still an open bug ?

Thanks
-R


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to