<html:radio idName=" idName " value="value" name=" name" property=" property " /> 表示在输出时,html:radio输出为input type="radio";name输出为name="name";对 于value的输出,当不指定idName时,value="value",当指定idName时,输出是由bean 名为" idName ",属性名为"value"的属性值;当bean名为" name ",属性名为" property "的属性值等于上述value的输出值时,输出checked="checked"。 我的例子: <logic:iterate id = "answer" name = "answerList" scope = "page"> <html:radio idName = "answer" value = "answerItem" name = "question" property = "rightAnswer" ></html:radio> </logic:iterate> 如果从bean answer的answerItem属性中取出的值等于从bean question的rightAnswer 属性中取出的值相等,那么该radio将被选中
|
|
posted on 2006-06-21 16:54
MyJavaWorld 阅读(1420)
评论(0) 编辑 收藏