"BeanUtils.populate" Problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Serkan_demir
Posted On:   Tuesday, February 15, 2005 11:51 PM

Hi everybody,
I have a problem with my Struts application. I have a dynavalidator form in which i can register new City information. Its struts-config file includes;





name="CityForm" type="org.apache.struts.validator.DynaValidatorForm">









In this form, i need to populate Country bean since i have a list box which is full of Country names.
When i try to save a new form, i will get BeansUtils.populate error.Could you help me? Is there a wrong with my struts-config.xml file?

Re: "BeanUtils.populate" Problem

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, February 16, 2005 02:04 PM

I could be wrong, but don't form-property elements have to have type String, or array of String, or else a primitive/array of primitive (int, double)? since they are tied to request parameters, which always come in as Strings?



I would think you need to use Strings as your form bean properties, and then translate back and forth, between them and your hibernate model things from the database, in an Action... I could be wrong though.
About | Sitemap | Contact