首页>代码>jsp+java servlet开发一个小型java web楼盘销售后台管理系统>/HengDa/src/cn/an/ClientServlet/ByIdClientServlet.java
package cn.an.ClientServlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.anbo.been.Client;
import cn.anbo.service.ClientService;
import cn.anbo.serviceImpl.ClientServiceImpl;

public class ByIdClientServlet extends HttpServlet {

	ClientService cs=new ClientServiceImpl();
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
String idd=request.getParameter("cliId");
Client client=cs.ByIdClient(Integer.parseInt(idd));
if(client!=null){
	request.setAttribute("client", client);
	request.getRequestDispatcher("/client/clientUpdate.jsp").forward(request, response);
}
	
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		doGet(request, response);
	}

}
最近下载更多
asddwh  LV12 2023年12月29日
李朝磊  LV18 2023年12月8日
weilaizhisheng  LV21 2023年1月8日
liu2022  LV14 2022年7月31日
huwenxuan  LV6 2022年6月22日
zhaoyangwfd  LV17 2022年6月22日
lvhongquan  LV11 2022年6月16日
微信网友_5970230176714752  LV2 2022年6月14日
于暖暖  LV3 2022年4月23日
123321853  LV2 2022年4月18日
最近浏览更多
jiyun2021  LV9 1月23日
heshao  LV2 1月11日
黑茶 HeyTea 1月2日
暂无贡献等级
asddwh  LV12 2023年12月26日
李朝磊  LV18 2023年12月8日
linyou  LV1 2023年12月6日
ncyhhh  LV1 2023年11月26日
hmdzmsl12  LV2 2023年10月28日
2036495585  LV9 2023年9月25日
wbx666  LV1 2023年9月25日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友