⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 querysfzyselect.java~10~

📁 JSP+SQL实现了一个拥有添加、删除、查询基本功能的CRM系统
💻 JAVA~10~
字号:
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");*/
    Integer iCount = Integer.valueOf(httpServletRequest.getParameter("iCount"));
    if (iCount == null) {
      iCount = new Integer(1);
    }
    System.out.println("iCount=" + iCount);
    httpServletRequest.setAttribute("iCount", 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -