81,094
社区成员
发帖
与我相关
我的任务
分享
public String msgview()
{
//struts 中指向view.jsp页面
return "view";
}
view.jsp页面绑定数据:
<table width="94%" border="0" align="center">
<tr>
<td colspan="3" class="simple" align="center" style="font-size:16px; font-weight:bold;">
<p>
${model.title }
</p>
</td>
</tr>
<tr>
<td colspan="3" class="simple" align="center">
<p>
发布时间:${model.createDate }
</p>
</td>
</tr>
<tr>
<td colspan="3" class="simple" align="left">
<p>
${model.content }
</p>
</td>
</tr>
<tr>
<td width="15%" align="left" colspan="3" >
<c:if test="${model.fileUrl!=null}">
附 件:
<a href="${ctx }${model.fileUrl }">${model.fileName}</a>
</c:if>
</td>
</tr> </table>