|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectActionMessage
ExpressionMessage
public class ExpressionMessage
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).
| 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 |
|---|
public ExpressionMessage(String expression,
Object[] messageArgExpressions)
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.public ExpressionMessage(String expression)
expression - the JSP 2.0-style expression (e.g., ${pageFlow.myProperty}) or literal string
that will be used as the message.
public ExpressionMessage(String expression,
Object messageArgExpression)
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.
public ExpressionMessage(String expression,
Object messageArgExpression1,
Object messageArgExpression2)
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.
public ExpressionMessage(String expression,
Object messageArgExpression1,
Object messageArgExpression2,
Object messageArgExpression3)
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||