CqyxzSelectOne.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientQyxzAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.domain.CqyxzForm;
- import com.service.CqyxzFacade;
- import com.service.CqyxzFacadeImpl;
- import com.tool.Chinese;
- //单独查找的操作
- public class CqyxzSelectOne
- extends Action {
- private CqyxzFacade qyxzFacade = null;
- public CqyxzSelectOne() {
- this.qyxzFacade = new CqyxzFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- Chinese chinese=new Chinese();
- CqyxzForm cqyxzForm = (CqyxzForm) actionForm;
- cqyxzForm.setQyxz_id(chinese.str(httpServletRequest.getParameter("id")));
- CqyxzForm form=this.qyxzFacade.qyxzSelectOne(cqyxzForm);
- httpServletRequest.setAttribute("form",form);
- return actionMapping.findForward("cqyxzSelectOne");
- }
- }