Good! As much as I truly hate being wrong about anything, this is one
of those times I'm glad I am :)
Frank
Laurie Harper wrote:
Frank W. Zammetti wrote:
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.
You're missing something :-) Specifically, that the select value(s) is
specified on the containing <html:select/> tag.
http://svn.apache.org/builds/struts/maven/trunk/site-test/struts-taglib/tlddoc/html/select.html
The property the <html:select/> is bound to should be a value (or array
of values for a multi-select) that holds the currently selected
value(s). Options whose value matches (or is contained in) that property
will be selected automatically when the <html:option/> tag is rendered.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]