Hi
I have a problem with tomcat 5.0.9. I try to embed custom tags inside
custom tags. With tomcat 4.1.24 this works without any problem. But in
tomcat 5 this errors occurs.
D:\tomcat5.0.9\work\Catalina\localhost\test5\org\apache\jsp\index_jsp.java:105:
inconvertible types
found : test5.ShowFieldTag
required: javax.servlet.jsp.tagext.SimpleTag
if (_jspx_th_app_showField_1 instanceof javax.servlet.jsp.tagext.SimpleTag)
^
An error occurred at line: 17 in the jsp file: /index.jsp
Generated servlet error:
D:\tomcat5.0.9\work\Catalina\localhost\test5\org\apache\jsp\index_jsp.java:106:
inconvertible types
found : test5.ShowFieldTag
required: javax.servlet.jsp.tagext.SimpleTag
_jspx_th_app_showField_2.setParent(new
javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag)
_jspx_th_app_showField_1));
^
Regards
Ralph<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglib_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>apptags</short-name>
<uri>/app</uri>
<description>This tag library contains functionality specific to CT Application</description>
<tag>
<name>showField</name>
<tag-class>test5.ShowFieldTag</tag-class>
<body-content>JSP</body-content>
<variable>
<name-given>elementIndex</name-given>
<variable-class>java.lang.Integer</variable-class>
<declare>true</declare>
<scope>NESTED</scope>
</variable>
<attribute>
<name>field</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>start</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]