org.scrashmeow.ojb.console
Class ActionErrorUtils

java.lang.Object
  |
  +--org.scrashmeow.ojb.console.ActionErrorUtils

public class ActionErrorUtils
extends java.lang.Object

Utilities for working with the user interface errors.

Author:
Alexander Bibighaus

Constructor Summary
ActionErrorUtils()
           
 
Method Summary
static void error(HttpServletRequest request, java.lang.String errorKey)
          Add an error to the existing ActionErrors object.
static void error(HttpServletRequest request, java.lang.String key, java.lang.String errorKey)
          Add an error to the existing ActionErrors object.
static void error(HttpServletRequest request, java.lang.String requestKey, java.lang.String key, java.lang.String errorKey)
          Add an error to the existing ActionErrors object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionErrorUtils

public ActionErrorUtils()
Method Detail

error

public static void error(HttpServletRequest request,
                         java.lang.String errorKey)
Add an error to the existing ActionErrors object. If the errors object does not exist, create it and add it to the request.

Parameters:
request - the current request
errorKey - the msg key for the error message

error

public static void error(HttpServletRequest request,
                         java.lang.String key,
                         java.lang.String errorKey)
Add an error to the existing ActionErrors object. If the errors object does not exist, create it and add it to the request.

Parameters:
request - the current request
key - the request key for the ActionErrors object
errorKey - the msg key for the error message

error

public static void error(HttpServletRequest request,
                         java.lang.String requestKey,
                         java.lang.String key,
                         java.lang.String errorKey)
Add an error to the existing ActionErrors object. If the errors object does not exist, create it and add it to the request.

Parameters:
request - the current request
requestKey - the request key for the ActionErrors object
key - the key use when adding the ActionError object to the ActionErrors
errorKey - the msg key for the error message


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.