Kurt Chen:
 
It depends on the beans in you collectin attr2.
It seems that there is no a getter for attr_name like getAttr_name() in your beans.
 
wish this help!
 
Jishan Li.
----- Original Message -----
From: Kurt Chen
Sent: Thursday, September 06, 2001 11:30 AM
Subject: Need Helps with Form-Tag

What's up, dude!!
I'm trying to use a form tag in my JSP, but it doesn't work out . my source code as the following........does anyone has any idea about what's going on right here. your help will be greatly appreciated.......
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
 
<html:html>
<html:form action="/on_data.do">
<html:select property="pmFabNumber">         
            <html:options collection="attr2" property="attr_name" />
</html:select>
</html:form>
</html:html>
 
Error meassge as follow
 
<Error> <HTTP> <[WebAppServletContext(3365205,sample_struts,/sample_struts)] Root cause of ServletException
javax.servlet.jsp.JspException: No getter method available for property name for
 bean under name attr2
at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:238
 
Thank You
 
Kurt

Reply via email to