On Thu, September 8, 2005 4:20 pm, Wendy Smoak said: > From: "Pablo Wawrzyniak" <[EMAIL PROTECTED]> > >> How can I do that a combobox is selected after reload the jsp page?
Do you mean how can you ensure that the selected item before the submit is selected again? If so... Wow, am I missing something, or is there really no attribute to set the selected item in a dropdown via the <html:option> tag? Or does it do it automatically all the time perhaps? I hope I'm missing something frankly because I can't imagine no one would have noticed that before. Let's assume I'm *not* missing something for the moment... you can do this via Javascript easy enough... call this function in response to the pageLoad event, passing it a reference to the <select> element and the value that was selected (get this out of your ActionForm): function selectDDValue(obj, val) { for (i = 0; i < obj.length; i++) { if (obj.options[i].value == val) { obj.options[i].selected = true; break; } } return; } That should do the trick. Frank --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]