<nested:radio property="sendFlag" value="Yes" onclick="showDiv();" />Yes<nested:radio property="sendFlag" value="No" onclick="hideDiv();" />No
The above code defaults to No, on my jsp. Is there a way in which I can allow the Yes button to be selected by default
On your
ActionFormwheresendFlagattribute is found, do this:If that doesn’t work, override the
reset()method by setting thesendFlagto true.That way, when Struts renders the
sendFlag, it will tick it.