Bug 28280

Summary: bug in xtags:parse whith using a attribute reader
Product: Taglibs Reporter: Ondrej Vasata <vasata>
Component: XTags TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED LATER    
Severity: normal    
Priority: P3    
Version: 1.1   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Ondrej Vasata 2004-04-08 13:52:17 UTC
My bug is in binary distibution jakarta-taglibs-20040408.zip. 

I have object oracle.xml.parser.v2.XMLDocument that represent XML file.
I want use this object into tag xtags...

  XMLDocument xmlDoc = rpn.getXMLQueryAndResult(conn, request);
  StringWriter sw = new StringWriter();
  PrintWriter pw = new PrintWriter(sw);
  xmlDoc.print(pw);
  StringReader sr = new StringReader(sw.toString());
<%-- Parsing xml --%>

<xtags:parse reader="<%= sr %>" id="xml"/>

This line throw an exception... But second case is OK

<xtags:parse reader="<%= sr %>" id="xml">
</xtags:parse>

I want use the first posibility and for me is a bug. You have to fill the 
variable reader in method doStartTag (in class 
org.apache.taglibs.xtags.xpath.ParseTag)

Thanx
Comment 1 Henri Yandell 2009-11-29 19:47:40 UTC
Resolving. Taglib has been retired.