Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class User {
- public static final String USER_SESSION_KEY;
- public static User getUser(HttpServletRequest _request) {
- HttpSession session = _request.getSession();
- User returned = (User) session.getAttribute(USER_SESSION_KEY);
- return returned;
- }
- }
Add Comment
Please, Sign In to add comment