KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nextime > ion > backoffice > action > BaseAction


1 package org.nextime.ion.backoffice.action;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4 import org.apache.struts.action.Action;
5 import org.nextime.ion.backoffice.exception.UserNotLoggedException;
6
7 public class BaseAction extends Action {
8
9     protected void checkUser(HttpServletRequest JavaDoc request)
10         throws UserNotLoggedException {
11         if (request.getSession().getAttribute("userLogin") == null)
12             throw new UserNotLoggedException();
13     }
14
15 }
16
Popular Tags