cqyxzselectone.java~7~

来自「客户关系管理系统,包括数据库,类,所有运行所需的代码及文件」· JAVA~7~ 代码 · 共 32 行

JAVA~7~
32
字号
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 java.io.UnsupportedEncodingException;

//单独查找
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) throws
      UnsupportedEncodingException {
    httpServletRequest.setCharacterEncoding("gb2312");

    CqyxzForm qyxzform = (CqyxzForm) actionForm;
    qyxzform.setQyxz_id(httpServletRequest.getParameter("qyxz_id"));
    System.out.println(httpServletRequest.getParameter("qyxz_id") + "=qyxz_id");
    httpServletRequest.setAttribute("qyxzVO",
                                    this.qyxzFacade.qyxzSelectOne(qyxzform));
    return actionMapping.findForward("cqyxzSelectOne");
  }
}

⌨️ 快捷键说明

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