cqyxzselectone.java~6~

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

JAVA~6~
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 com.tool.Chinese;
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");
    Chinese chinese = new Chinese();
    CqyxzForm qyxzform = (CqyxzForm) actionForm;
  qyxzform.setQyxz_id(chinese.str(httpServletRequest.getParameter("qyxz_id")));
    System.out.println(httpServletRequest.getParameter("id")+"=id");
    httpServletRequest.setAttribute("qyxzVO",
                                    this.qyxzFacade.qyxzSelectOne(qyxzform));
    return actionMapping.findForward("cqyxzSelectOne");
  }
}

⌨️ 快捷键说明

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