<input type="radio" name="tool" value="<%=value1%>">
<input type="radio" name="tool" value="<%=value2%>">
<input type="radio" name="tool" value="<%=value3%>">

解决方案 »

  1.   

    <input type="radio" name="tool" value="未婚">
    <input type="radio" name="tool" value="已婚">
    <input type="radio" name="tool" value="丧偶">
      

  2.   

    <%
    String check1 = "";
    String check2 = "";
    String check3 = "";
    if(marry==1)
    {
     check1 = checked;

    if(marry==2)
    {
     check2 = checked;
    }
    if(marry==3)
    {
     check3 = checked
    }
    %>
    <input type="radio" name="tool" value="<%=value1%>" <%=check1%>>
    <input type="radio" name="tool" value="<%=value2%>" <%=check2%>>
    <input type="radio" name="tool" value="<%=value3%>" <%=check3%>>
      

  3.   

    可以这样写:
    i为从数据库中取得的radiobutton值
    tool[i].checked := true;
      

  4.   

    各位大哥高手们在表单里要吧用JSP语句判断吗?:790228(自古华山一条道) 这位大哥说的有点意思可以再说明白点吗?