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. So I wrote a jsp scriptlet to provide the functionality.
Now I am adding error handling. When there is an error, the jsp page
redraws with the ActionError at the proper place on the page. The
drop-down list which my scriptlet created is not there.
I would prefer to use a custom tag, but can't find an example which
handles a "selected" value. If I have to stick with the scriptlet, what
should I do within my ActionForm so the drop-downs will appear when the
page is redrawn after an error.
Thanks in advance for the help.
Dorothy