Hi i am building a webapp with struts 1.2
I am building an “edit” form, so i have my input tags being pre populated from a bean:
form.jsp
<html:text property="population"
value="${city.population}"/>
Later on, i use struts validation
The problem is, i have 10 form elements, if one of them fails by the validation rules, the action gets back to the form and populates de elements with the bean data and not with the resently changed data of the user.
I wan
The problem is due to the
valueattribute you have there. Thepropertyattribute should be enough to show the correct value in the input. Havingvaluethere will always cause the value of${city.population}to be displayed.