jsp中一个页面引入另一个页面的实现代码
来源:
中文源码网 浏览:143 次 日期:2024-05-10 17:48:38
【下载文档: jsp中一个页面引入另一个页面的实现代码.txt 】
jsp中一个页面引入另一个页面的实现代码
action代码片段
复制代码 代码如下:public String execute() { String ret = super.execute();
if (RETURN_LIST.equals(ret)) { return list(); } else { return ret; } }
public String list() { String show = this.getRequest().getParameter("show"); if ("show".equals(show)) { return show(); } deptid = getRequest().getParameter("deptid"); if (StringUtils.isNotBlank(deptid)) { epVO.getEp().setDeptid(Long.valueOf(deptid)); epVO.setDeptid(deptid); } if (StringUtils.isNotBlank(deptname)) { epVO.getDept().setDeptname(deptname); } if (StringUtils.isNotBlank(plateno)) { epVO.setPlateno(plateno); } if (StringUtils.isBlank(deptid)) { epVO.getEp().setDeptid(Long.parseLong("1")); }
int count = epService.getEpCount(epVO); PageInfor pageInfor = this.pageInit(this.getRequest(), count); epVO.setRownum_(pageInfor.getRownum_()); epVO.setRownum(pageInfor.getRownum()); epVO.setOrderName(pageInfor.getOrderName()); List
list = epService.getEps(epVO); this.getRequest().setAttribute(Constants.QUERY_DATA, list); this.getRequest().setAttribute(Constants.PAGE_INFO, pageInfor);
List