querysfzyselect.java~14~
来自「客户关系管理系统,包括数据库,类,所有运行所需的代码及文件」· JAVA~14~ 代码 · 共 45 行
JAVA~14~
45 行
package com.webtier.queryInformation;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.service.SfzyFacade;
import com.service.SfzyFacadeImpl;
import java.io.UnsupportedEncodingException;
//查询的操作
public class QuerySfzySelect
extends Action {
private SfzyFacade facade;
public QuerySfzySelect() {
this.facade = new SfzyFacadeImpl();
}
public ActionForward perform(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) throws
UnsupportedEncodingException {
httpServletRequest.setCharacterEncoding("gb2312");
/* Integer iCount = (Integer) httpServletRequest.getAttribute("iCount");
if (iCount == null) {
iCount = new Integer(1);
}
System.out.println("iCount=" + iCount);
System.out.println("total=" + String.valueOf(this.facade.toatl()));
System.out.println("sfzylist=" + this.facade.sfzySelect());
httpServletRequest.setAttribute("iCount", iCount);
httpServletRequest.setAttribute("total", String.valueOf(this.facade.toatl())); //显示有多少条数
httpServletRequest.setAttribute("sfzylist", this.facade.sfzySelect()); //显示头10条的记录熟
return actionMapping.findForward("querySfzySelect");*/
int iCount = Integer.parseInt( (String) httpServletRequest.getAttribute(
"iCount"));
System.out.println("iCount=" + iCount);
httpServletRequest.setAttribute("iCount", String.valueOf(iCount));
httpServletRequest.setAttribute("total", String.valueOf(this.facade.toatl()));
httpServletRequest.setAttribute("sfzylist", this.facade.sfzySelect());
return actionMapping.findForward("querySfzySelect");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?