You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2008/11/11 16:56:25 UTC

DO NOT REPLY [Bug 46187] New: problem with XTAG:attribute on Tomcat 5.5

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: rgupta18@sapient.com


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: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 46187] problem with XTAG:attribute on Tomcat 5.5

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46187





--- Comment #1 from Henri Yandell <ba...@apache.org>  2008-11-14 17:23:32 PST ---
Not sure if it existed before - it feels familiar but I can't see anything. We
should make a Cactus test for this to see if it exists in the current trunk
code.


-- 
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: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 46187] problem with XTAG:attribute on Tomcat 5.5

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46187





--- Comment #2 from rangan <rg...@sapient.com>  2008-11-23 23:15:17 PST ---
Is there any update on this issue ?


-- 
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: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org