File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ""BeanUtils.populate" Problem" Watch ""BeanUtils.populate" Problem" New topic

"BeanUtils.populate" Problem

Serkan Demir
Ranch Hand

Joined: Feb 03, 2005
Posts: 61
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

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?
JSP code is as following;

A guy from Turkey<br /><a href="" target="_blank" rel="nofollow"></a>
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

I'm not as fluent as most in the DynaForm world (I don't like them).

But I think that you should use only Strings in your DynaForm. I know that using Integer can give problems and your other objects might be the same way but I'm not positive.

A good workman is known by his tools.
Serkan Demir
Ranch Hand

Joined: Feb 03, 2005
Posts: 61
No, i dont think that problem is about Integer. I think the problem is about performing a new property of Country Bean. I am unable to populate this bean and get BeanUtils.Populate error.
Is there any one who suffers from this problem and solve it by the way.
I agree. Here's the link:
subject: "BeanUtils.populate" Problem
It's not a secret anymore!