org.apache.beehive.netui.pageflow
Class ExpressionMessage

Object
  extended by ActionMessage
      extended by ExpressionMessage
All Implemented Interfaces:
Serializable

public class ExpressionMessage
extends ActionMessage

Extension of the base Struts ActionMessage; instead of retrieving messages and their arguments from message resources, it calculates them by evaluating JSP 2.0-style expressions (or, in the degenerate case, from hardcoded strings).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ActionMessage
key, values
 
Constructor Summary
ExpressionMessage(String expression)
          Constructor, for a message without message arguments.
ExpressionMessage(String expression, Object messageArgExpression)
          Constructor, for a message with a single argument.
ExpressionMessage(String expression, Object[] messageArgExpressions)
          Constructor, using an array for the message arguments.
ExpressionMessage(String expression, Object messageArgExpression1, Object messageArgExpression2)
          Constructor, for a message with two arguments.
ExpressionMessage(String expression, Object messageArgExpression1, Object messageArgExpression2, Object messageArgExpression3)
          Constructor, for a message with two arguments.
 
Method Summary
 
Methods inherited from class ActionMessage
getKey, getValues
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionMessage

public ExpressionMessage(String expression,
                         Object[] messageArgExpressions)
Constructor, using an array for the message arguments.

Parameters:
expression - the JSP 2.0-style expression (e.g., ${pageFlow.myProperty}) or literal string that will be used as the message.
messageArgExpressions - an array of JSP 2.0-style expressions or raw Objects to be used as arguments to the message. Expressions are evaluated; all other Objects are passed as-is.

ExpressionMessage

public ExpressionMessage(String expression)
Constructor, for a message without message arguments.

Parameters:
expression - the JSP 2.0-style expression (e.g., ${pageFlow.myProperty}) or literal string that will be used as the message.

ExpressionMessage

public ExpressionMessage(String expression,
                         Object messageArgExpression)
Constructor, for a message with a single argument.

Parameters:
expression - the JSP 2.0-style expression (e.g., ${pageFlow.myProperty}) or literal string that will be used as the message.
messageArgExpression - a JSP 2.0-style expression or raw Object to be used the argument to the message. Expressions are evaluated; all other Objects are passed as-is.

ExpressionMessage

public ExpressionMessage(String expression,
                         Object messageArgExpression1,
                         Object messageArgExpression2)
Constructor, for a message with two arguments.

Parameters:
expression - the JSP 2.0-style expression (e.g., ${pageFlow.myProperty}) or literal string that will be used as the message.
messageArgExpression1 - a JSP 2.0-style expression or raw Object to be used the first argument to the message. Expressions are evaluated; all other Objects are passed as-is.
messageArgExpression2 - a JSP 2.0-style expression or raw Object to be used the second argument to the message. Expressions are evaluated; all other Objects are passed as-is.

ExpressionMessage

public ExpressionMessage(String expression,
                         Object messageArgExpression1,
                         Object messageArgExpression2,
                         Object messageArgExpression3)
Constructor, for a message with two arguments.

Parameters:
expression - the JSP 2.0-style expression (e.g., ${pageFlow.myProperty}) or literal string that will be used as the message.
messageArgExpression1 - a JSP 2.0-style expression or raw Object to be used the first argument to the message. Expressions are evaluated; all other Objects are passed as-is.
messageArgExpression2 - a JSP 2.0-style expression or raw Object to be used the second argument to the message. Expressions are evaluated; all other Objects are passed as-is.
messageArgExpression3 - a JSP 2.0-style expression or raw Object to be used the third argument to the message. Expressions are evaluated; all other Objects are passed as-is.