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

edit page html:select multiple="true"

 
ameya n
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an add page ......with list ( html:select hultiple="true" )
......now while adding i select multiple values ..............to develop the edit page .......i want to preselect more than one values from the list ...........how can i implement this in struts ?
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume your action form has something like an array that holds the value of the selected items. In the action that shows your page you just need to populate this array on your form with the values you want selected.

- Brent
 
ameya n
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes the previous action contains array which holds the values .....and also action form has such array
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic