Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"BeanUtils.populate" Problem

 
Serkan Demir
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Serkan Demir
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic