I'm using a custom taglib with an attribute. When I try to refer to the attribute in the tag, then I get an error of type:
org.apache.jasper.JasperException: jsp.error.beans.property.conversion
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:885)
org.apache.jsp.content.includes.treetest_jsp._jspx_meth_odin_showNavTree_0(treetest_jsp.java:148)
org.apache.jsp.content.includes.treetest_jsp._jspService(treetest_jsp.java:114)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Please help
Below is some pertinent code info. Let me know if you need more.
Thanks,
Sean
--- from
jsp ---
<jsp:useBean id="u" class="com.renewdata.odin.user.OdinUserBean" scope="request">
<jsp:setProperty name="u" property="email" value="tempemail" />
<jsp:setProperty name="u" property="name" value="tempname" />
</jsp:useBean>
<jsp:useBean id="bc" class="com.renewdata.odin.nav.Breadcrumb" scope="request" />
<tr><td height='100%' valign=top width=50% nowrap style='overflow:auto;'>
<odin:showNavTree
user="u"/>
</td></tr>
--- end jsp ---
--- start tld ---
<tag>
<name>showNavTree</name>
<tagclass>com.company.odin.nav.ShowNavTreeTag</tagclass>
<bodycontent>empty</bodycontent>
<info>
Given the information included in the attributes, this tag builds
the navigation tree.
</info>
<attribute>
<name>breadcrumb</name>
<type>com.company.odin.nav.Breadcrumb</type>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>user</name>
<type>com.company.odin.user.OdinUserBean</type>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
--- end tld ---
--- excerpt from handler ---
public class ShowNavTreeTag extends TagSupport {
private Log avsLog;
private Breadcrumb breadcrumb;
private OdinUserBean user;
public Breadcrumb getBreadcrumb() {
return breadcrumb;
}
public void setBreadcrumb(Breadcrumb breadcrumb) {
this.breadcrumb = breadcrumb;
}
public OdinUserBean getUser() {
return user;
}
public void setUser(OdinUserBean user) {
this.user = user;
}
--- end handler ---