<input type="radio" name="tool" value="<%=value1%>">
<input type="radio" name="tool" value="<%=value2%>">
<input type="radio" name="tool" value="<%=value3%>">
<input type="radio" name="tool" value="<%=value2%>">
<input type="radio" name="tool" value="<%=value3%>">
<input type="radio" name="tool" value="已婚">
<input type="radio" name="tool" value="丧偶">
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%>>
i为从数据库中取得的radiobutton值
tool[i].checked := true;