Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.
The following page has been changed by MichaelJouravlev: http://wiki.apache.org/struts/StrutsWidgets ------------------------------------------------------------------------------ inline:selectwidget.gif + If you want to always preselect a hardcoded value instead of value submitted by user, add ''value'' attribute to <html:select> tag. This attribute should contain preselected value. For example, if you always want to preselect "California" despite of currently chosen value, your code would look like this: + + {{{ + <html:select name="addressForm" property="currentStateCode" value="CA" size="1"> + <html:optionsCollection name="stateList" value="stateCode" label="stateName"/> + </html:select> + }}} + + You still need to use ''property'' attribute to store value submitted by user. + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]