File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html-select  help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html-select  help" Watch "html-select  help" New topic

html-select help

Sam Bom

Joined: Jan 24, 2003
Posts: 22
Hi I am new to struts.. I want to populate a combobox with some master data.
using struts <html-select>
any pointers?
Harsha Huddar

Joined: Oct 03, 2003
Posts: 23
<html ptions property="colors"/>
Here colors is a String array in the form bean and whose getter method would return String[]. Combo box gets populated with this array.
Dont forget to name your form bean either in the form which contains this combo or the struts config.
Sam Bom

Joined: Jan 24, 2003
Posts: 22
Thanks for your help.
I agree. Here's the link:
subject: html-select help
It's not a secret anymore!