updatejobaction.java

来自「老牌java开发的物流管理系统 详细的我也没有怎么看 好像是恒基的」· Java 代码 · 共 38 行

JAVA
38
字号
package com.wl.actionimpl;

import java.io.UnsupportedEncodingException;

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

import com.wl.action.Action;
import com.wl.dao.JobsinfoDAO;
import com.wl.entity.Jobsinfo;

public class UpdateJobAction implements Action {

	public String doExcute(HttpServletRequest request,
			HttpServletResponse response) {
		try {
			request.setCharacterEncoding("UTF-8");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		String tid = request.getParameter("id");
		int id = Integer.parseInt(tid);
		String jobsId = request.getParameter("jobsId");
		String jobsName = request.getParameter("jobsName");
		String describleJobs = request.getParameter("describleJobs");
		Jobsinfo j = new Jobsinfo();
		j.setId(id);
		j.setJobsId(jobsId);
		j.setJobsName(jobsName);
		j.setDescribleJobs(describleJobs);
		JobsinfoDAO dao = new JobsinfoDAO();
		dao.updateId(j);
		return "/wangjianwei/showjob.jsp";
	}

}

⌨️ 快捷键说明

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