org.strutsme.wishlist.presentation.struts.login
Class ToLoginPageAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.strutsme.wishlist.presentation.struts.base.BaseAction
          extended by org.strutsme.wishlist.presentation.struts.login.ToLoginPageAction

public class ToLoginPageAction
extends BaseAction

Checks, if a user is already logged in. If not, he has to log in, elsewhere he is forwarded to the first page.

Author:
fgutsche

Field Summary
 
Fields inherited from class org.strutsme.wishlist.presentation.struts.base.BaseAction
HAS_FAILED, HAS_SUCCEEDED, IS_CANCELLED, USER_IN_SESSION, USER_IS_NOT_AUTHORIZED
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
ToLoginPageAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Check, if user is logged in, if not it forward to loginpage.
 
Methods inherited from class org.strutsme.wishlist.presentation.struts.base.BaseAction
checkUser, getUser
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToLoginPageAction

public ToLoginPageAction()
Method Detail

execute

public final org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
Check, if user is logged in, if not it forward to loginpage.

Overrides:
execute in class org.apache.struts.action.Action