Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count;
- if (request.getSession().getAttribute("count") == null) {
- count = 0;
- } else {
- count = (Integer) request.getSession().getAttribute("count");
- }
- request.getSession().setAttribute("count",++count);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement