Hi,
I have a jsp page which uses custom tags:
<%@ taglib uri="my_tags.jar" prefix="my" %>
<html>
<body>
<my:loop>
<my:from>1</my:from>
<my:to>10</my:to>
<my:do>
<p>Iteration: <my:iterator/>
</my:do>
</my:loop>
</html>
This jsp page cannot be delivered. What is casng the problem is the
<my:iterator/> tag or more precisely, the findAncestorWithClass method.
This method never returns in the doStartTag method of the iterator tag
implemntation class:
class IteratorTag extends TagSupport {
public int doStartTag() {
System.out.println("Gets here");
LoopTag parent = (LoopTag)findAncestorWithClass(this,new
LoopTag().getClass());
System.out.println("Never gets here");
return SKIP_BODY;
}
}
If I replace the call to findAncestorWithClass with appropriate calls to
getParent it works fine.
I am using Orion 0.8.2, JDK 1.3 beta, Windows NT.
/Morten