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

html radio

 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
friends
I need ur help!!
Ordinary JSP tag for radio....
<input type="radio" name="xyz" value="100" checked="checked">
( means, the radio button is checked)
what is equivalent code in STruts JSP ??
<html:radio property="xyz" value="100" CHECKED??? />
how to make the radio button checked,??
please help me on this
 
Junilu Lacar
Bartender
Posts: 7480
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just set the xyz property in the ActionForm to the value that matches the radio button's value. The tag takes care of adding selected for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic