You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/09/27 20:36:24 UTC

DO NOT REPLY [Bug 23458] New: - findAncestorWithClass implementation error

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23458

findAncestorWithClass implementation error

           Summary: findAncestorWithClass implementation error
           Product: Tomcat 4
           Version: 4.1.27
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: khartoum1@yahoo.com


The 'javax.servlet.jsp.tagext.TagSupport.findAncestorWithClass' method does not
return the immediate Ancestor. In my case it returned the 'grandfather' rather
than the 'father' tag. The following code illustrates:
-------------CODE--------------
<tags:grandfather att="valONE">
   <tags:father att="valTWO">
      <tags:son/> <!-- 'son' gets valONE not valTWO when it checks the 'att'
value of the parent using 'findAncestorWithClass' method -->
   </tags:father>
</tags:grandfather>
-------------CODE--------------
I found this bug is in 4.1.24 and 4.1.27. 4.0.1 works fine.

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