Package com.sivalabs.domain

Examples of com.sivalabs.domain.User


  }
 
  @RequestMapping(value = "login", method = RequestMethod.GET)
  public String loginForm(Model model)
  {
    model.addAttribute("user", new User());
    return "login";
  }
View Full Code Here


  {
    if (errors.hasErrors()) {
      return "login";
    }
    try {
      User loginUser = userBO.login(user.getUserName(), user.getPassword());
      if(loginUser != null){
        request.getSession().setAttribute("LOGIN_USER", loginUser);
        return "redirect:welcome";
      }
      else
View Full Code Here

  }

  @RequestMapping(value = "/register", method = RequestMethod.GET)
  public String registrationForm(Model model)
  {
    model.addAttribute("user", new User());
    return "register";
  }
View Full Code Here

class UserRowMapper implements RowMapper<User>
{

  @Override
  public User mapRow(ResultSet rs, int arg1) throws SQLException {
    User user = new User();
    user.setId(rs.getInt("user_id"));
    user.setUserName(rs.getString("userName"));
    user.setPassword(rs.getString("password"));
    user.setEmail(rs.getString("email"));
    user.setFirstName(rs.getString("firstName"));
    user.setLastName(rs.getString("lastName"));
    user.setDob(rs.getDate("dob"));   
   
    return user;
  }
View Full Code Here

TOP

Related Classes of com.sivalabs.domain.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.