Monday, April 8, 2013

Java Session Data

Application app = welcomePage.getCallingWindow().getApplication();
                WebApplicationContext ctx = (WebApplicationContext) app
                        .getContext();
                HttpSession session = ctx.getHttpSession();
                int userId = (Integer) session.getAttribute("userID");
                rp.setUser(userId);

No comments:

Post a Comment