16171819202122
public class BaseAction extends Action { protected void checkUser(HttpServletRequest request) throws UserNotLoggedException { if (request.getSession().getAttribute("userLogin") == null) throw new UserNotLoggedException(); }