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

📄 querysfzyfenye.java

📁 客户管理系统是一个典型的数据库开发应用程序
💻 JAVA
字号:
package com.webtier.queryInformation;

import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.service.SfzyFacade;
import com.service.SfzyFacadeImpl;
import java.util.List;
import java.io.UnsupportedEncodingException;

public class QuerySfzyFenYe
    extends Action {

  private SfzyFacade facade;
  public QuerySfzyFenYe() {
    this.facade = new SfzyFacadeImpl();
  }

  public ActionForward perform(ActionMapping actionMapping,
                               ActionForm actionForm,
                               HttpServletRequest httpServletRequest,
                               HttpServletResponse httpServletResponse) throws
      UnsupportedEncodingException {
    httpServletRequest.setCharacterEncoding("gb2312");
    Integer iCount = Integer.valueOf(httpServletRequest.getParameter("iCount"));
    Integer iCount1=new Integer( (iCount.intValue() - 1) * 8);
    if (iCount1.intValue() > 0) {
      List list=this.facade.sfzyFenYe(iCount1);
      httpServletRequest.setAttribute("iCount", String.valueOf(iCount));
      httpServletRequest.setAttribute("total", String.valueOf(this.facade.toatl()));
      httpServletRequest.setAttribute("sfzylist",list);
      return actionMapping.findForward("fenyeSuccess");
    }
    else {
      return actionMapping.findForward("fenyeFail");
    }

  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -