Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html-select help

 
Sam Bom
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am new to struts.. I want to populate a combobox with some master data.
using struts <html-select>
any pointers?
 
Harsha Huddar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:select>
<html ptions property="colors"/>
</html:select>
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
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic