怎么从list集合中获取具体的属性字段值
jsp代码如下
<center>
<font color="red"><h4>主帖</h4></font>
<table cellsapcing="1" cellspadding="1" border="1">
<tr>
<th>主题</th>
<th>时间</th>
<th>内容</th>
</tr>
<s:iterator id="mylist" value="#request.list1">
<tr>
<td><s:property value="#mylist.msgSubject"/></td>
<td><s:property value="#mylist.msgTime"/></td>
<td><s:property value="#mylist.msgContent"/></td>
<td>
</tr>
</s:iterator>
</table>
<font color="red"><h4>回复的帖子</h4></font>
<form action="recall.action" method="post">
<table cellspaccing="1" cellspadding="1" border="1">
<tr>
<th>主题</th>
<th>时间</th>
<th>内容</th>
</tr>
<s:iterator id="mylist1" value="#request.list2">
<tr>
<td><s:property value="#mylist1.RmsgSubject"/></td>
<td><s:property value="#mylist1.RmsgTime"/></td>
<td><s:property value="#mylist1.RmsgContent"/></td>
<td>
</tr>
</s:iterator>
</table>
回复主题:<input type="text" name="rmessage.subject" value="?" size="25"><br><br>
回复内容:<textarea name="rmessage.content" cols="20" rows="3"></textarea><br><br>
<input type="submit" value="提交">
<input type="reset" value="取消">
</form>
</center>value=?我想从主帖子得到主帖的主题放到value中。怎么获取呀!谢谢。各位帮帮忙啊!
jsp代码如下
<center>
<font color="red"><h4>主帖</h4></font>
<table cellsapcing="1" cellspadding="1" border="1">
<tr>
<th>主题</th>
<th>时间</th>
<th>内容</th>
</tr>
<s:iterator id="mylist" value="#request.list1">
<tr>
<td><s:property value="#mylist.msgSubject"/></td>
<td><s:property value="#mylist.msgTime"/></td>
<td><s:property value="#mylist.msgContent"/></td>
<td>
</tr>
</s:iterator>
</table>
<font color="red"><h4>回复的帖子</h4></font>
<form action="recall.action" method="post">
<table cellspaccing="1" cellspadding="1" border="1">
<tr>
<th>主题</th>
<th>时间</th>
<th>内容</th>
</tr>
<s:iterator id="mylist1" value="#request.list2">
<tr>
<td><s:property value="#mylist1.RmsgSubject"/></td>
<td><s:property value="#mylist1.RmsgTime"/></td>
<td><s:property value="#mylist1.RmsgContent"/></td>
<td>
</tr>
</s:iterator>
</table>
回复主题:<input type="text" name="rmessage.subject" value="?" size="25"><br><br>
回复内容:<textarea name="rmessage.content" cols="20" rows="3"></textarea><br><br>
<input type="submit" value="提交">
<input type="reset" value="取消">
</form>
</center>value=?我想从主帖子得到主帖的主题放到value中。怎么获取呀!谢谢。各位帮帮忙啊!
<input type="text" name="rmessage.subject" value="<s:property value=subject/>" size="25">?怎么弄呀!帮帮忙!谢谢
<tr class="tr">
<td align="center" bgcolor="#E6ECF9">
<s:property value="#ldc.order" />
</td> <td align="center" bgcolor="#E6ECF9">
<s:property value="#ldc.name" />
</td> <td align="center" bgcolor="#E6ECF9">
<s:property value="#ldc.date" />
</td> <td align="center" bgcolor="#E6ECF9">
<s:property value="#ldc.authorName" />
</td> <td align="center" bgcolor="#E6ECF9">
<s:if test="#ldc.flag == 1">目录</s:if>
<s:else>链接</s:else>
</td> <td align="center" bgcolor="#E6ECF9">
<s:if test="order != 1">
<s:a
href="adjustDocumentCatalog.action?way=up&id=%{#ldc.documentCatalogId}&type=%{type}&parentId=%{parentId}">
<img src="../images/up.gif" border="0">
</s:a> <s:a href="#"
onclick="jsonAdjust(%{#ldc.order} ,'up', %{#ldc.documentCatalogId}, %{type}, %{parentId})">
上调
</s:a>
</s:if>
</td> <td align="center" bgcolor="#E6ECF9">
<s:if test="order != totalSize">
<s:a
href="adjustDocumentCatalog.action?way=down&id=%{#ldc.documentCatalogId}&type=%{type}&parentId=%{parentId}">
<img src="../images/down.gif" border="0">
</s:a>
</s:if>
</td> <td align="center" bgcolor="#E6ECF9">
<s:if test="#ldc.flag == 1">
<s:a
href="listDocumentCatalog.action?type=%{#ldc.type}&parentId=%{#ldc.documentCatalogId}">进入</s:a>
</s:if>
<s:else>
<s:a href="%{#ldc.address}">
<s:property value="#ldc.content" />
</s:a>
</s:else>
</td> <td align="center" bgcolor="#E6ECF9">
<s:if test="#ldc.flag == 1">
<s:a
href="../DocumentItem/listDocumentItem.action?documentCatalogId=%{#ldc.documentCatalogId}">查看</s:a>
</s:if>
</td> <td align="center" bgcolor="#E6ECF9">
<s:a
href="updatePDocumentCatalog.action?id=%{#ldc.documentCatalogId}&parentId=%{parentId}">更新</s:a>
|
<s:a href="#"
onclick="jsonDelete(%{#ldc.documentCatalogId}, %{#ldc.order}, %{type}, %{parentId})">
删除
</s:a>
</td> </tr>
</s:iterator>