SkhfkForward.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.skhfkAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.KhxxFacade;
- import com.service.KhxxFacadeImpl;
- import com.service.CkhmydFacade;
- import com.service.CkhmydFacadeImpl;
- import com.service.SkhfkFacade;
- import com.service.SkhfkFacadeImpl;
- //通过次方法是需要的信息在下一个jsp页面中显示出来
- public class SkhfkForward
- extends Action {
- private KhxxFacade khxx = null;
- private CkhmydFacade ckhmyd=null;
- private SkhfkFacade skhfk=null;
- public SkhfkForward() {
- khxx = new KhxxFacadeImpl();
- ckhmyd=new CkhmydFacadeImpl();
- skhfk=new SkhfkFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- httpServletRequest.setAttribute("khxxForm",this.khxx.khxxSelect());
- httpServletRequest.setAttribute("ckhmydForm",this.ckhmyd.khmydSelect());
- String changeType = String.valueOf(this.skhfk.skhfkCount());
- httpServletRequest.setAttribute("changeType", changeType);
- return actionMapping.findForward("skhfkForward");
- }
- }