十六、·实现显示所有雇员
1.实现跳转,在mainFrame.jsp中,修改显示所有雇员的链接 <a href="${pageContext.request.contextPath}/employee.do?flag=goAddEmp">添加雇员</a><br/> <a href="${pageContext.request.contextPath}/employee.do?flag=showAllEmp">显示雇员</a><br/> <a href="#">查询雇员</a><br/> <a href="#">退出系统</a><br/> 2.在EmployeeService中增加showAllEmp函数 public ActionForward showAllEmp(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { List emps = employeeService.excuteQuery("from Employee", null); request.getSession().setAttribute("emplist", emps); return mapping.findForward("showAllEmp");