FileDocCategorySizeDatePackage
BaseAction.javaAPI DocExample1073Thu Aug 19 12:17:18 BST 2004com.oreilly.strutsckbk.ch09

BaseAction

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

Fields Summary
public static final String
APP_WARNING_KEY
public static final String
APP_ERROR_KEY
Constructors Summary
Methods Summary
protected voidsaveAppErrors(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMessages messages)

        saveAppMessages(request, messages, APP_ERROR_KEY);
    
private voidsaveAppMessages(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMessages messages, java.lang.String key)

        // Remove any messages attribute if none are required
        if ((messages == null) || messages.isEmpty()) {
          request.removeAttribute(key);
          return;
        }

        // Save the messages we need
        request.setAttribute(key, messages);
    
protected voidsaveAppWarnings(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMessages messages)

    
          
        saveAppMessages(request, messages, APP_WARNING_KEY);