CqyxxSelectOne.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientQyxxAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CqyxxFacade;
- import com.service.CqyxxFacadeImpl;
- import com.domain.CqyxxForm;
- import java.io.UnsupportedEncodingException;
- //单独查找
- public class CqyxxSelectOne
- extends Action {
- private CqyxxFacade qyxxFacade = null;
- public CqyxxSelectOne() {
- this.qyxxFacade = new CqyxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) throws
- UnsupportedEncodingException {
- httpServletRequest.setCharacterEncoding("gb2312");
- CqyxxForm cqyxxForm = (CqyxxForm) actionForm;
- cqyxxForm.setId(httpServletRequest.getParameter("id"));
- CqyxxForm form = this.qyxxFacade.qyxxSelectOne(cqyxxForm);
- httpServletRequest.setAttribute("form", form);
- return actionMapping.findForward("cqyxxSelectOne");
- }
- }