commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Semyon Sadetsky" <sem...@muranosoft.com>
Subject BeanUtils.populate() mapped/indexed/mapped property
Date Thu, 21 Apr 2005 11:44:53 GMT
Hi!

I have a problem to submit form in Struts. Struts in it's request processor calls BeanUtils.populate()
to set user input from request parameters to the FormBean. But populate() cannot set my mapped/indexed/mapped
property like this :

details(workdays).line[0].(days)

And BeanUtils.setProperty() do this without any problem.

Please help, what I did wrong?

Below the trace from BeanUtils:

15:12:57,748 DEBUG [PsdfController] onSave
15:12:57,748 DEBUG [PsdfController] details(workdays).line[1].(days)->ewtrtre
15:12:57,748 DEBUG [PsdfController] details(workdays).line[0].(days)->1234
15:12:57,748 DEBUG [PsdfController] details(workdays).line[2].(days)->ewewqrwer
15:12:57,748 DEBUG [BeanUtils] BeanUtils.populate(com.nsite.mvc.common.controller.SmartFormBean@1f1f38e,
{details(workdays).line[2].(days)=ewewqrwer, details(workdays).line[0].(days)=1234, details(workdays).line[1].(days)=ewtrtre})
15:12:57,748 DEBUG [BeanUtils]   setProperty(com.nsite.mvc.common.controller.SmartFormBean@1f1f38e,
details(workdays).line[2].(days), ewewqrwer)
15:12:57,748 DEBUG [BeanUtils]     Target bean = {description=C}
15:12:57,748 DEBUG [BeanUtils]     Target name = (days)
15:12:57,748 DEBUG [BeanUtils]   setProperty(com.nsite.mvc.common.controller.SmartFormBean@1f1f38e,
details(workdays).line[0].(days), 1234)
15:12:57,748 DEBUG [BeanUtils]     Target bean = {description=A, (days)=1234}
15:12:57,748 DEBUG [BeanUtils]     Target name = (days)
15:12:57,748 DEBUG [BeanUtils]   setProperty(com.nsite.mvc.common.controller.SmartFormBean@1f1f38e,
details(workdays).line[1].(days), ewtrtre)
15:12:57,748 DEBUG [BeanUtils]     Target bean = {description=B}
15:12:57,748 DEBUG [BeanUtils]     Target name = (days)

Best Regards,
Semyon 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message