UserPopeModAction.java~4~
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:

OA系统

开发平台:

Java

  1. package officeol.mc.actions;
  2. import org.apache.struts.action.ActionMapping;
  3. import org.apache.struts.action.ActionForm;
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6. import org.apache.struts.action.ActionForward;
  7. import org.apache.struts.action.Action;
  8. public class UserPopeModAction extends Action {
  9.     public ActionForward execute(ActionMapping mapping, ActionForm form,
  10.                                  HttpServletRequest request,
  11.                                  HttpServletResponse response) {
  12.         try{
  13.             request.setCharacterEncoding("GBK");
  14.             String ug = request.getParameter("ug");
  15.             String pg = request.getParameter("pg");
  16.             String sm = request.getParameter("sm");
  17.             request.setAttribute("msg","修改成功!");
  18.         }catch(Exception ex){
  19.             ex.printStackTrace();
  20.             request.setAttribute("msg","修改出现异常,请重试!");
  21.         }
  22.         return mapping.findForward("succ");
  23.     }
  24. }