struts hibernate
<s:iterator value="temp">
<tr>
<td>
<s:property value="name" />
</td>
<td>
<s:property value="description" />
</td>
<td>
<a href="admin/Category-delete?id=<s:property value="id"/>">删除</a>
</td>
<td>
<a href="admin/Category-updateInput?id=<s:property value="id"/>">更新</a>
</td>
</tr>
<br />
</s:iterator>
ublic class CategoryAction extends ActionSupport {
private Category category;
private CatergoryService service;
private Integer id;
private List<Category> temp;
怎么在action里面获取页面上的ID呀???????
------解决方案--------------------private Integer id;这个不就是么 表忘记setter方法
------解决方案--------------------
添加 private Integer id;再配上setter方法。OK