FileDocCategorySizeDatePackage
BaseAction.javaAPI DocExample2896Wed Sep 01 11:39:06 BST 2004org.apache.struts.webapp.example

BaseAction

public class BaseAction extends org.apache.struts.action.Action
Base Action for MailReader application.
version
$Revision: 1.2 $ $Date: 2004/03/14 06:23:44 $

Fields Summary
protected Log
log
The Log instance for this application.
Constructors Summary
Methods Summary
protected org.apache.struts.action.ActionForwardfindFailure(org.apache.struts.action.ActionMapping mapping)
Return the local or global forward named "failure" or null if there is no such forward.

param
mapping Our ActionMapping
return
Return the mapping named "failure" or null if there is no such mapping.

        return (mapping.findForward(Constants.FAILURE));
    
protected org.apache.struts.action.ActionForwardfindSuccess(org.apache.struts.action.ActionMapping mapping)
Return the mapping labeled "success" or null if there is no such mapping.

param
mapping Our ActionMapping
return
Return the mapping named "success" or null if there is no such mapping.

        return (mapping.findForward(Constants.SUCCESS));
    
protected org.apache.struts.webapp.example.UserDatabasegetUserDatabase(javax.servlet.http.HttpServletRequest request)
Return a reference to the UserDatabase or null if the database is not available.

param
request The request we are processing
return
a reference to the UserDatabase or null if the database is not available


    // ------------------------------------------------------ Protected Methods

                                            
        
        return (UserDatabase) servlet.getServletContext().getAttribute(
                Constants.DATABASE_KEY);