hello people
i wrote a nested JSP custom tag file.when I compile the inner tag java file
it shows the compilation error as

C:\tomcat-4.1.29\webapps\examples\WEB-INF\classes\tagExamples\inTag.java:20: cannot resolve symbol
symbol : class nameTagHandler
location: class tagExamples.inTag
nameTagHandler parent =(nameTagHandler)findAncestorWithClass(this, nameTagHandler.class);

I have given below the inner tag java file. nameTagHandler file compiled successfully.
both are in same tagExamples package.Help me.

package tagExamples;

import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

public class inTag extends BodyTagSupport

public int doStartTag() throws JspTagException

JspWriter out=pageContext.getOut();
nameTagHandler parent =(nameTagHandler)findAncestorWithClass(this, nameTagHandler.class);


}catch(Exception e){System.out.println("start "+e.toString());}