不用这样,应该:<html:radio property="sex" value="1"/>男<html:radio property="sex" value="0"/>女当你从action中返回到jsp上的sex,如果sex值=1,那么男这个radio就会自动选中了,sex=0,女就会选中了

解决方案 »

  1.   

    <html:radio property="id" idName="beanName" value="beanProperty" />
    idName:
    Since: Struts 1.1
    Name of the bean (in some scope) that will return the value of the radio tag. Usually exposed by an iterator. When the idName attribute is present, the value attribute is used as the name of the property on the idName bean that will return the value of the radio tag for this iteration.楼主不要用的是1.0哦,那就没辙了