Package com.ourlinc.helloworld.model

Examples of com.ourlinc.helloworld.model.Sa


    }
    // MD5加密密码
    String md5Pass = Misc.md5Hash(password);
    // 登录成功
    if (EMAIL.equals(email) && PASSWORD.equals(md5Pass)) {
      Sa sa = new Sa(email, md5Pass);
      request.getSession().setAttribute("sa", sa);
      response.sendRedirect("/sa/index.jspx");
      return null;
    } else {
      request.setAttribute("errorMsg", "你的email和密码不符,请再试一次");
View Full Code Here


  }

  @RequestMapping
  String index(HttpServletRequest request, HttpServletResponse response)
      throws IOException {
    Sa sa = (Sa) request.getSession().getAttribute("sa");
    if (null == sa) {
      return "sa/login";
    }
    ResultPage<User> rp = m_UserService.listUser();
    rp.setPageSize(1000);
View Full Code Here

   * @param response
   * @return
   */
  @RequestMapping
  String edituser_aj(HttpServletRequest request, HttpServletResponse response) {
    Sa sa = (Sa) request.getSession().getAttribute("sa");
    if (null == sa) {
      return null;
    }
    String op = WebUtils.toString(request.getParameter("op")).trim();
    String id = WebUtils.toString(request.getParameter("id")).trim();
View Full Code Here

TOP

Related Classes of com.ourlinc.helloworld.model.Sa

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.