Bug 28280 - bug in xtags:parse whith using a attribute reader
Summary: bug in xtags:parse whith using a attribute reader
Status: RESOLVED LATER
Alias: None
Product: Taglibs
Classification: Unclassified
Component: XTags Taglib (show other bugs)
Version: 1.1
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-08 13:52 UTC by Ondrej Vasata
Modified: 2009-11-29 19:47 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.