Package db

Examples of db.User


 
  private void logon(){
    HttpSession session = request.getSession(true);
    String user = request.getParameter("user");
    String password = request.getParameter("password");
    User userTable = new User();
    userTable.setUserName(user);
    userTable.setPassword(password);
    userTable.setActive(1);
    userTable.setRights(0);
    response.setContentType("text/xml");
    try {
      PrintWriter out = response.getWriter();
      out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
      out.println("<AjaxResponse data=\"login\">");
      if(userTable.logon(dbConnection)){
        out.println("<Login>true</Login>");
        session.setAttribute("user", user);
        session.setAttribute("rights", 0);
      }else{
        out.println("<Login>false</Login>");
View Full Code Here

TOP

Related Classes of db.User

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.