Link to home
Start Free TrialLog in
Avatar of supeno
supeno

asked on

retrieving values from complex object in html:form

<html:text  name="filter" property="vo.name" />

the above line writes the correct value to the JSP but won't pass the value into the form bean on submit.
In addition, if I remove <form-property name="filter" type="es.ts.xxx.Filter"/> from the DynaValidatorForm no error message results when the form is submitted.

I can't find the field anywhere in the request or the form after submission. It may be a simple error but I'm baffled right now.
It's Struts 1.2.
Avatar of boonleng
boonleng
Flag of Malaysia image

Is there another nested bean call 'VO' in class es.ts.xxx.Filter?
If not then should be as follow:
<html:text  name="filter" property="name" />

If yes then you should use <nested> tag.
<nested:text  name="filter" property="vo.name" />
ASKER CERTIFIED SOLUTION
Avatar of supeno
supeno

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial