大家帮看下

struts2 是怎么拿到的

    <table align="center" width="95%">
                    <tbody>
                        <tr>
                            <td>
                                <table width="95%" border="1" align="left" cellpadding="0"
                                    cellspacing="0" bordercolor="#DAF3EE"
                                    style="border-collapse: collapse">
                                    <s:if test="null != listModelProperty">
                                        <tr>
                                            <s:iterator value="listModelProperty" status="statu">
                                                <td width="4%" align="right" class="td13">
                                                    <s:property value="displayname"/> <span class="redfont">*</span>
                                                </td>
                                                <td width="10%" class="td12" colspan=1><s:if test="type==1">
                                                    <input id="<s:property value="propertyname"/>" name="<s:property value="propertyname"/>" type="text" 
                                                            value="" class="input3"
                                                            size="20" maxlength="20" datatype="Limit" min="1" max="20" require="true"
                                                            msg="输入错误!" tabindex="1">
                                                            </s:if>
                                                            <s:if test="type==3">
                                                            <s:select id="<s:property value="propertyname"/>" name="propertyname" list="dictItemMap.get('SEX')" theme="simple" listValue="itemName"
                                         listKey="code" value=""  cssStyle="width:140px">
                                        </s:select>
                                        </s:if>
                                                </td>
                                                <s:if test="#statu.modulus(2)==0">
                                                    </tr>
                                                    <tr>
                                                </s:if>
                                            </s:iterator>
                                        </tr>
                                    </s:if>
                                </table>

我把会瀑错

属性写法 这样的 id="${propertyname}"

这是 struts2的 S 标签么
说明在这次会话中,得到一个list 名字是listModelProperty
然后 循环 取出每个对象 你的 <select id= 就是 这个对象的属性:propertyname。

如果要了解 iterator s 标签的实现 可以去百度查查。