You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by peru cheppanu <st...@yahoo.com> on 2005/09/08 21:14:37 UTC
Re: reg. html:option tag -- solved
Here is the solution for the issue I raised. Yeah, it is a dumb question.
<html:select name="someBean" property="strArrValuesToBePreSelected">
<html:optionCollections name="sameBean" property="valuesToBeDisplayed"/>
</html:select>
If it is only one preselected vlaue then use "value" in html:select.
The catch here that I understood later is property in html:select should be array of strings if strings are displayed in the option list.
---------------------------------
Click here to donate to the Hurricane Katrina relief effort.