Bug 6613 - cannot use xtags:style more than one time per page
Summary: cannot use xtags:style more than one time per page
Alias: None
Product: Taglibs
Classification: Unclassified
Component: XTags Taglib (show other bugs)
Version: 1.0
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2002-02-21 16:05 UTC by Alexei Yudichev
Modified: 2009-11-29 19:43 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Yudichev 2002-02-21 16:05:33 UTC
I use the following form:

  <xtags:style xsl="/includes/menuSec.xsl">
    <jsp:include page="/includes/menu.xml.jsp"/>

If I try to use similar construction on the same page I get 
org.xml.sax.SAXParseException: The root element is required in a well-formed 
because field "xml" in StyleTag.java still holds the old StringReader value 
(obtained in doAfterBody() of the first tag call). The fix is to set "xml" 
and "xsl" to null in doEndTag() like it is done in release(). According to 
spec, release() is only guaranteed to be called before the class instance is 
garbage collected.
I use Resin 2.0.5.
Comment 1 Henri Yandell 2009-11-29 19:43:45 UTC
Resolving. Taglib has been retired.