If the form is returned after validation, the fields should be
refilled with whatever the user submitted, unless your input somehow
causes a new request to be created. After validation, Struts has
done exactly what you did to prefill the form: instantiate a form
bean, populate properties, and
When a validation error occurs, the usual intention is to allow the
user to correct his/her mistakes by presenting the values that were
entered. If you wish to override this behavior, you can manually call
validate() by applying some of the techniques Rick Reumann
demonstrates in the section "Manu
Hi all,
I need to show some prefilled value in a html form then take new inputs
from the user and save the changes.
I am doing this by prepopulating an ActionForm, putting it into request as
an Attribute
then displaying it onto the jsp.
Its working fine and the changed value are also available in
3 matches
Mail list logo