1.已配置好Hibernate反向工程
2.
action:
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
List all = null;
try {
all = this.iadmindao.queryAll();
} catch (Exception e) {
e.printStackTrace();
}
request.setAttribute("all", all);
return mapping.findForward("list");
}
jsp:
<table>
<logic:iterate id="admin" name="all" scope="request">
<tr>
<td>${admin.id}</td>
<td>${admin.adminid}</td>
<td>${admin.adminpwd}</td>
</tr>
</logic:iterate>
SSH中数据的表现
本文详细介绍了如何使用Hibernate反向工程配置进行数据库操作,具体包括管理员信息的查询和页面展示,通过代码实现数据的获取与显示。

被折叠的 条评论
为什么被折叠?



