Html 字段集属性在struts2应用程序中的列表上使用时不起作用

Html 字段集属性在struts2应用程序中的列表上使用时不起作用,html,jsp,struts2,Html,Jsp,Struts2,您好,请看我在jsp中的代码 <s:iterator value="answeredquestions" status="status" var="question"> <fieldset> <legend><s:property value="Question"/></legend> <s:property value="QuestionNumber"/> <table&g

您好,请看我在jsp中的代码

    <s:iterator value="answeredquestions" status="status" var="question">
  <fieldset>
    <legend><s:property value="Question"/></legend>
    <s:property value="QuestionNumber"/>    
    <table><s:radio label="Answer" name="answeredquestions[%{#status.index}].UserAnswer" list="AnswersOptions" /></table>
   </fieldset>
   </s:iterator>
      <

<
这个清单似乎很有效
但是在第一个列表项中,单选按钮不会出现在字段集中

请参阅有关主题的文档。默认情况下,Struts2使用
xhtml
主题。在这个主题中,元素被放在表格单元格中。您可以通过在标记中指定
theme=“simple”
属性来更改它。注意:如果您使用
simple
主题,您将丢失字段错误