You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Thompson <mi...@calebtech.com> on 2003/03/17 19:05:07 UTC
ActionFormBean / FormBeanConfig
Greetings all. I've searched google, looked at the mailing lists and the FAQs and have not been able to come up with a satisfactory explanation of the ActionFormBean class. I would like to initialize my ActionForm class with some custom properties, so I have defined an ActionFormBean which has getters/setters for those properties. In my struts-config I have this
<form-bean className="com.caleb.web.MyFormBeanConfig"
name="myForm"
type="com.caleb.web.MyFormBean">
<set-property property="foo" value="bar"/>
</form-bean>
>From what I gather, this will call setFoo("bar") on an instance of MyFormBeanConfig. Ok, now what? How do I get these properties into MyFormBean? Is it supposed to happen auto-magically? I do have a get/set Foo on MyFormBean, but it is not getting called. I don't see any obvious hooks in ActionFormBean or ActionForm. Is this even what ActionFormBeans are used for? Thanks in advance!
--m
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org