Package com.dream.dto.user.login

Examples of com.dream.dto.user.login.LoginDTO


        return model;
    }

    @Override
    protected Object formBackingObject(HttpServletRequest request) throws Exception {
        return new LoginDTO();
    }
View Full Code Here


        return LoginDTO.class.equals(clazz);
    }

    @Override
    public void validate(Object target, Errors errors) {
        LoginDTO loginDTO = (LoginDTO) target;

        String username = loginDTO.getUsername();
        if (ValidateUtil.isEmptyText(username)) {
            errors.rejectValue("username", null, "Username must not be empty!");
        }

        String password = loginDTO.getPassword();
        if (ValidateUtil.isEmptyText(password)) {
            errors.rejectValue("password", null, "Password must not be empty!");
        }
    }
View Full Code Here

TOP

Related Classes of com.dream.dto.user.login.LoginDTO

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.