Yes, form field values (generated by the Struts tags) are synced with
corresponding ActionForm field values when the page is rendered. So you
can override the ActionForm's reset method to specify initial values.
But typically you only want to do this when you are showing a fresh
"add" form, not an update form (which will have values prepopulated from
database records, presumably), and not when you are showing an add form
that has failed server-side validation (in this case you want to
maintain whatever the user had selected).
Erik
IVAN CORVILLO wrote:
Hi there,
Is it possible to pre-select a value from a dropdownlist htm:option
tag?
Thanks
Iván Corvillo
Iconic, SL
Molinot 53
Pol.Ind.El Camí Ral
08860 Castelldefels
Tel: 902 195 962 / 93 419 54 45
Fax: 93 636 21 42
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]