struts 的radio标签没有select属性 
jsp中获取性别后 在JavaScript中将其置为选中状态

解决方案 »

  1.   

    写错了是checked属性:(
    document.all("usex")[0].checked = true.
      

  2.   

    <html:radio property="usex" value="1">男 </html:radio> 
    <html:radio property="usex" value="0">女 </html:radio> ActionForm 
      private String usex="1";radio形式分成单选分组!
      

  3.   

    <c:choose>
    <c:when test="${uinfo.usex=='男'}">
    <input type="radio" name="usex" value="男" checked="checked">

    <input type="radio" name="usex" value="女">

    </c:when>
    <c:otherwise>
    <input type="radio" name="usex" value="男">

    <input type="radio" name="usex" value="女" checked="checked">

    </c:otherwise>
    </c:choose>这个做法比较另类,用一个判断来决定输出哪个部分,测试一下,效果不错!