Hi:
Here is an example.
<html:select property="codeTypeSysNum" onchange="jump()">
        <html:option value=""><bean:message
key="indexPage.selectCodeTypePrompt"/></html:option>
                <html:options collection="codeTypeCo"
property="codeTypeSysNum" labelProperty="codeTypeDesc" />
</html:select>


the property in <html:select> is the filed in the action form. If you use
<html:options>, it's very convenience, the collection is the collection you
hold data getted from DB, the property is the data field of a bean in the
collection, not the same as property in the <html:select> tag. This is the
value of the option. The labelProperty is the text showen in the jsp page. 
or you can see here:
http://struts.apache.org/userGuide/struts-html.html

Gao Yewei

________________________________
hello,
 
i am new to struts, i would like to know to use <html:select> to dynamically
populate data in the combo box, for the database.
 
Viji George
Information Systems,
The Arvind Mills Ltd.,
Naroda, Ahmedabad. 
Phone-(079)22203030
Ext -2352
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to