<s:iterator value="levelSequences" var="ls"> <tr> <s:iterator value="userLevels" var="ul"> <s:if test="#ul.sequenceId==#ls.id"> <td height="22" width="33%"><span class="nam"><s:property value="#ls.levelseName" /></span> </td><td height="22" width="33%"><span class="score"><s:property value="#ul.levelName" /></span> </td><td height="22" width="33%"><span class="grade"><s:property value="#ul.mark" /></span> </td> </s:if> <s:else> <td height="22" width="33%"><span class="nam"><s:property value="#ls.levelseName" /></span> </td><td height="22" width="33%"><span class="score">——</span> </td><td height="22" width="33%"><span class="grade">——</span> </td> </s:else> </s:iterator> </tr> </s:iterator> 2: s:radio 默认值 <s:radio name="passGate.testsType" list="%{#{'1':'随机出题','2':'顺序出题'}}" value="passGate.testsType" > 3 s:select 默认值 <s:select name="gatelevel.seQuenceId" id="sel2" οnchange="changeLevel('admin/passGateAction!ajaxLevel.action?passGate.levelSequenceID=','sel2','gateLevelId');" list="listSequence" listKey="id" listValue="levelseName" value="gatelevel.seQuenceId" headerKey="1" headerValue="请选择闯关等级"></s:select> name 属性来确定的