You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anand M S <an...@hotmail.com> on 2003/02/14 18:20:20 UTC

No getter method error


I have all getter and setter methods in UserForm, but still it's giving
following error, please can anyone can help me out?
 here is the JSp code
<jsp:useBean id="userForm" scope="request" class="com.test.UserForm"/>
<bean:define id="testList" name="userForm" property="testList"
type="java.util.List"/>
<tr>
      <th align="right">
        <bean:message key="prompt.test1"/>
      </th>
      <td align="left">
        <html:select name="userForm" property="testStatus" >
 <html:options collection="testList" property="name" labelProperty ="value"
/>
      </td>
      </html:select>
    </tr>

org.apache.jasper.JasperException: No getter method available for property
name for bean under name testList
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)



Thanks,
Anand

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org