BBS.页面实现

一、struts taglib,已经忘记了。。

首先得添加这句

1 <%@taglib uri="/struts-tags" prefix="s" %>

才能使用标签

1 <s:iterator value="categories" var="c">
2     <s:property value="#c.name"/> |
3     <s:property value="#c.description"/> |
4     <a href="admin/Category-delete?id=<s:property value="#c.id"/>">删除Category</a> |
5     <a href="admin/Category-updateInput?id=<s:property value="#c.id"/>">更新Category</a>
6     <br/>
7 </s:iterator>
8 <s:debug></s:debug>

 

posted @ 2013-03-15 00:00  hi_stefen  Views(187)  Comments(0)    收藏  举报