您现在的位置是:网站首页> 编程资料编程资料
jsp中一个页面引入另一个页面的实现代码_JSP编程_
2023-05-25
108人已围观
简介 jsp中一个页面引入另一个页面的实现代码_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
this.getRequest().setAttribute(Constants.QUERY_DATA, list);
this.getRequest().setAttribute(Constants.PAGE_INFO, pageInfor);
List
Map
hidden.put("epVO.ep.id", "车辆ID");
hidden.put("epVO.dept.deptid", "部门ID");//jQuery(function()中取隐藏域中的值
hidden.put("epVO.ep.name", "车牌号");//jQuery(function()中取隐藏域中的值
hidden.put("epVO.ep.eptype", "类型");
this.getRequest().setAttribute("hidden", hidden);
String flag = this.getRequest().getParameter("flag");
this.getRequest().setAttribute("flag", flag);
return RETURN_LIST;
}
jsp页面引用代码片段
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/web.tld" prefix="web"%>
href="scripts/DhtmlTree/css/dhtmlxtree.css">
showlist="hidden" top="false" mode="radio" />
mode="radio" />
jsp被引用js代码片段
相关内容
- jsp base标签与meta标签学习小结_JSP编程_
- jsp项目中更改tomcat的默认index.jsp访问路径的方法_JSP编程_
- jsp中使用jstl导入html乱码问题解决方法_JSP编程_
- jsp中使用frameset框架 边框固定不让更改边框的大小_JSP编程_
- 图片路径中含有中文在jsp下不能正常显示的原因及解决_JSP编程_
- JSP常见的三个编译指令page、include、taglib_JSP编程_
- JSP中的编译指令和动作指令的两点区别_JSP编程_
- JSP中的include有几种形式?都有什么区别?_JSP编程_
- struts2+jquery实现ajax登陆实例详解_JSP编程_
- JSP 获取Spring 注入对象示例_JSP编程_
