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 2004/04/08 15:52:18 UTC

DO NOT REPLY [Bug 28280] New: - bug in xtags:parse whith using a attribute reader

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28280>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28280

bug in xtags:parse whith using a attribute reader

           Summary: bug in xtags:parse whith using a attribute reader
           Product: Taglibs
           Version: 1.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XTags Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: vasata@sefira.cz


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

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org