You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sri Sankaran <Sr...@sas.com> on 2002/08/13 15:44:58 UTC
No getter error
Using Struts 1.0.2 on Tomcat 4.0.2
I am blue in the face having stared at this error for the last several hours and can't figure out what is wrong.
The problem: When attempting to display a page I receive the error "No getter method for property itemsArray of bean cart"
Page snippet:
<html:form action="cart.do">
<nested:iterate property="itemsArray">
....
</nested:iterate>
</html:form>
My struts-config has:
<form-bean name="cart" type="com.sas.mis.qs.struts.bean.CartBean"/>
<action path="/cart"
name="cart" validate="true"
type="com.sas.mis.qs.struts.action.CartAction"
scope="session"
input="Cart">
<forward name="next" path="Disclaimer"/>
</action>
What am I doing wrong. The same pattern works flawlessly on other pages.
TIA
Sri
RE: No getter error
Posted by honsali ilia <il...@hps.ma>.
Are you sure that you have the getItemsArray() method in your
com.sas.mis.qs.struts.bean.CartBean class??
-----Message d'origine-----
De : Sri Sankaran [mailto:Sri.Sankaran@sas.com]
Envoye : mardi 13 aout 2002 13:45
A : Struts-User
Objet : No getter error
Using Struts 1.0.2 on Tomcat 4.0.2
I am blue in the face having stared at this error for the last several hours
and can't figure out what is wrong.
The problem: When attempting to display a page I receive the error "No
getter method for property itemsArray of bean cart"
Page snippet:
<html:form action="cart.do">
<nested:iterate property="itemsArray">
....
</nested:iterate>
</html:form>
My struts-config has:
<form-bean name="cart" type="com.sas.mis.qs.struts.bean.CartBean"/>
<action path="/cart"
name="cart" validate="true"
type="com.sas.mis.qs.struts.action.CartAction"
scope="session"
input="Cart">
<forward name="next" path="Disclaimer"/>
</action>
What am I doing wrong. The same pattern works flawlessly on other pages.
TIA
Sri
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>