Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Radio button

 
Mike Floyd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, does it exist a method to set a radio button "Checked" ?
i've tried different solutions but until now i haven't successfull!
Thanks
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All you need to do is set your ActionForm property to the correct value, and Struts will make your radio button "checked"/"selected" when it gets rendered if the values match.
 
Mike Floyd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, but how i can to do?
I've a formbean that extends Validator form and a simple servlet that to do almost nothing:


i would to know where i can ti do this operation.
thanks
 
Mike Floyd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, i've solved, thanks. It was so easy :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic