QuerySfzySelect.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- 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.valueOf("1");
- httpServletRequest.setAttribute("iCount", String.valueOf(iCount));
- httpServletRequest.setAttribute("total", String.valueOf(this.facade.toatl()));
- httpServletRequest.setAttribute("sfzylist", this.facade.sfzySelect());
- return actionMapping.findForward("querySfzySelect");
- }
- }