org.apache.struts.webapp.example
Class BaseAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.apache.struts.webapp.example.BaseAction
Direct Known Subclasses:
LocaleAction, LogonAction, MainMenuAction, WelcomeAction

public class BaseAction
extends org.apache.struts.action.Action

Base Action for MailReader application.

Version:
$Revision: 187140 $ $Date: 2004-07-30 00:23:04 +0200 (Fri, 30 Jul 2004) $

Field Summary
protected  org.apache.commons.logging.Log log
          The Log instance for this application.
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
BaseAction()
           
 
Method Summary
protected  org.apache.struts.action.ActionForward findFailure(org.apache.struts.action.ActionMapping mapping)
          Return the local or global forward named "failure" or null if there is no such forward.
protected  org.apache.struts.action.ActionForward findSuccess(org.apache.struts.action.ActionMapping mapping)
          Return the mapping labeled "success" or null if there is no such mapping.
protected  UserDatabase getUserDatabase(javax.servlet.http.HttpServletRequest request)
          Return a reference to the UserDatabase or null if the database is not available.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
The Log instance for this application.

Constructor Detail

BaseAction

public BaseAction()
Method Detail

getUserDatabase

protected UserDatabase getUserDatabase(javax.servlet.http.HttpServletRequest request)
Return a reference to the UserDatabase or null if the database is not available.

Parameters:
request - The request we are processing
Returns:
a reference to the UserDatabase or null if the database is not available

findFailure

protected org.apache.struts.action.ActionForward findFailure(org.apache.struts.action.ActionMapping mapping)
Return the local or global forward named "failure" or null if there is no such forward.

Parameters:
mapping - Our ActionMapping
Returns:
Return the mapping named "failure" or null if there is no such mapping.

findSuccess

protected org.apache.struts.action.ActionForward findSuccess(org.apache.struts.action.ActionMapping mapping)
Return the mapping labeled "success" or null if there is no such mapping.

Parameters:
mapping - Our ActionMapping
Returns:
Return the mapping named "success" or null if there is no such mapping.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.