Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:option not selected

 
Nakata kokuyo
Ranch Hand
Posts: 471
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi good day to all,

i have a selection as below :



and i have use below code to preset the value before form display, so that it will display the user selected option, but seem it doesn't select the selected option



for your information, i define the pre_select_baju in String type

when i display the result out from retListObj.getPre_select_baju() , it give me correct result , say it is "1" , but it doesn't show me the selected option in drop-down list

anyone can help on this ? what wrong on my code ?

thank you for guidance
[ November 22, 2006: Message edited by: Nakata kokuyo ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must use Struts tags if you want the select box to be tied to the value of the ActionForm property. Example:


[ November 23, 2006: Message edited by: Merrill Higginson ]
 
Nakata kokuyo
Ranch Hand
Posts: 471
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh my god , can't believe it is not in struts html tag , i might need more sleep
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic