Dorothy Rifai wrote:
I have drop-down lists for the month, day, and year. I want to set the
"selected" value in each box to the value for the current date. I tried
to use the html:options custom tag, but couldn't figure out how to set a
default value.
Just make sure the ActionForm select property is set before you get to your form and that'll be your default value. For example..
<html:select property="fooBar">
Before you get to this form you should always go through an Action and you could make sure 'fooBar' is set to something there or just make sure you give "fooBar" a default value in your ActionForm.
If "fooBar" matches one of the options it will be selected.
-- Rick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]