DeparModAction.java~6~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- package officeol.mc.actions;
- 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 org.apache.struts.action.Action;
- import officeol.mc.tools.*;
- public class DeparModAction extends Action {
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request,
- HttpServletResponse response) {
- try{
- request.setCharacterEncoding("GBK");
- String depname = request.getParameter("depname");
- String depsm = request.getParameter("depdes");
- String deid = request.getParameter("deid");
- Tool tl = new Tool();
- String dnmd5 = tl.hash(depname);
- String desql = "update deparment set deparname = '部门1',shuoming = '部门1部门1', dnmd5 ='dep1' where id = 1 ";
- }catch(Exception ex){
- ex.printStackTrace();
- }
- return mapping.findForward("err");
- }
- }