Are the ActionForm and the class that populates the thing in the same package? I guess not if BeanUtils does the actual work.
This raises an interesting point concerning utilizing packages built by other people. Something like BeanUtils is fairly low level, so if we integrate it into our apps, rather than write it ourselves, we must accept some access implications. Whereas if we wrote it ourselves we wouldn't have these implications. This seems like some sort of profound object oriented design lesson that I'm not up to ferreting out. If anyone has any easy insight, feel free to share. --- On Mon 02/06, Garner, Shawn < [EMAIL PROTECTED] > wrote: From: Garner, Shawn [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Mon, 6 Feb 2006 09:22:23 -0600 Subject: RE: Struts Form Population I believe it is the get method.So if you're property is named testProperty then you need a public StringgetTestProperty() and a public setTestProperty(String szTestProperty).When the JSP page is displayed it calls getTestProperty to populate thevalue. When the page is submitted it calls setTestProperty.I believe if it is protected or private you will get an error that saysthere is no property by that name in the form bean.Also if you are populating lists for a drop down or some other reason youcan use a collection.public ArrayList getStates(){ return Constants.states;}<html:options collection="states"/>Shawn-----Original Message-----From: Paul Benedict [mailto:[EMAIL PROTECTED] Sent: Saturday, February 04, 2006 12:37 AMTo: [EMAIL PROTECTED]: Struts Form PopulationWhen struts auto populates the form, does it look for set methods? And doesit check that the methods are public? For instance, if the "foo" parametercomes in and my setFoo method is protected or private, will it ignore it? Paul ---------------------------------Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.**************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. ****************************************************************************---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]