You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Semyon Sadetsky <se...@muranosoft.com> on 2005/04/21 13:44:53 UTC
BeanUtils.populate() mapped/indexed/mapped property
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