<s:iterator></iterator> <s:if></s:if>的用法
<s:iteratorvalue="#session.allRoom"status="s"id="room"><tr><td><s:propertyvalue="room...
<s:iterator value="#session.allRoom" status="s" id="room">
<tr>
<td><s:property value="roomId" />
</td>
<td><s:property value="roomName" />
</td>
<td><s:property value="roomInfo" />
</td>
<td><s:property value="bedsNumber" />
</td>
<td><s:property value="roomPrice" />
</td>
<td><s:property value="roomState" /></td>
<td><a href="addOrder.jsp">预定</a>
</td>
</s:iterator>
==================================================
如何用<s:if test=""></s:if>取到roomState 的值???allRoom 是以个list (数组)求解 展开
<tr>
<td><s:property value="roomId" />
</td>
<td><s:property value="roomName" />
</td>
<td><s:property value="roomInfo" />
</td>
<td><s:property value="bedsNumber" />
</td>
<td><s:property value="roomPrice" />
</td>
<td><s:property value="roomState" /></td>
<td><a href="addOrder.jsp">预定</a>
</td>
</s:iterator>
==================================================
如何用<s:if test=""></s:if>取到roomState 的值???allRoom 是以个list (数组)求解 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询