QyeryLxrxxContenct.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.queryInformation;
- import org.apache.struts.action.ActionMapping;
- import org.apache.struts.action.ActionForm;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import org.apache.struts.action.ActionForward;
- import com.domain.LxrxxForm;
- import org.apache.struts.action.Action;
- import com.service.LxrxxFacade;
- import com.service.LxrxxFacadeImpl;
- import java.util.List;
- //查询联系人的详细信息
- public class QyeryLxrxxContenct
- extends Action {
- private LxrxxFacade facade = null;
- public QyeryLxrxxContenct() {
- this.facade = new LxrxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- LxrxxForm lxrxxForm = (LxrxxForm) actionForm;
- lxrxxForm.setId(Integer.valueOf(servletRequest.getParameter("id")));
- List list = this.facade.selectOne(lxrxxForm);
- servletRequest.setAttribute("list", list);
- return actionMapping.findForward("qyeryLxrxxContenct");
- }
- }