| java.lang.Object com.methodhead.util.StrutsUtil
StrutsUtil | public class StrutsUtil (Code) | | A collection of convenience methods for use with the Struts framework.
|
Method Summary | |
public static void | addError(HttpServletRequest request, String property, String msgKey, Object arg0, Object arg1, Object arg2) Adds the msgKey message to the action errors in
request for property, creating an
ActionErrors object if necessary. | public static void | addMessage(HttpServletRequest request, String property, String msgKey, Object arg0, Object arg1, Object arg2) Adds the msgKey message to the action messages in
request for property, creating an
ActionMessages object if necessary. | public static void | addMessage(HttpServletRequest request, String msgKey, Object arg0, Object arg1, Object arg2) Adds a message as in
StrutsUtil.addMessage(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object) addMessage() , assuming the GLOBAL_MESSAGE property. | public static void | addMessage(HttpServletRequest request, MessageResources messageResources, String property, String msgKey, Object arg0) Adds a message to the request's action messages, creating a new
ActionMessages object if necessary. | public static void | addMessage(HttpServletRequest request, MessageResources messageResources, String property, String msgKey, Object arg0, Object arg1) Adds a message to the request's action messages, creating a new
ActionMessages object if necessary. | public static void | addMessage(HttpServletRequest request, MessageResources messageResources, String property, String msgKey, Object arg0, Object arg1, Object arg2) Adds a message to the request's action messages, creating a new
ActionMessages object if necessary. | public static ActionForward | findForward(ActionMapping mapping, String name) Returns the forward named name or throws an exception
with a message indicating the forward could not be found. | public static Object | getPolicy(ActionMapping mapping) NOT UNIT TESTED Instantiates the policy specified by mapping's
parameter. |
addError | public static void addError(HttpServletRequest request, String property, String msgKey, Object arg0, Object arg1, Object arg2)(Code) | | Adds the msgKey message to the action errors in
request for property, creating an
ActionErrors object if necessary. arg0,
arg1, and arg2 may be null; the appropriate
ActionMessage constructor will be used. If the message is not
defined, a warning is logged. If property is null,
ActionErrors.GLOBAL_ERROR is assumed.
|
addMessage | public static void addMessage(HttpServletRequest request, String property, String msgKey, Object arg0, Object arg1, Object arg2)(Code) | | Adds the msgKey message to the action messages in
request for property, creating an
ActionMessages object if necessary. arg0,
arg1, and arg2 may be null; the appropriate
ActionMessage constructor will be used. If the message is not
defined, a warning is logged. If property is null,
ActionErrors.GLOBAL_MESSAGE is assumed.
|
addMessage | public static void addMessage(HttpServletRequest request, String msgKey, Object arg0, Object arg1, Object arg2)(Code) | | Adds a message as in
StrutsUtil.addMessage(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object) addMessage() , assuming the GLOBAL_MESSAGE property.
|
addMessage | public static void addMessage(HttpServletRequest request, MessageResources messageResources, String property, String msgKey, Object arg0)(Code) | | Adds a message to the request's action messages, creating a new
ActionMessages object if necessary. An warning is logged if no
message exists for msgKey.
StrutsUtil.addMessage(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object) addMessage() |
addMessage | public static void addMessage(HttpServletRequest request, MessageResources messageResources, String property, String msgKey, Object arg0, Object arg1)(Code) | | Adds a message to the request's action messages, creating a new
ActionMessages object if necessary. An warning is logged if no
message exists for msgKey.
StrutsUtil.addMessage(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object) addMessage() |
addMessage | public static void addMessage(HttpServletRequest request, MessageResources messageResources, String property, String msgKey, Object arg0, Object arg1, Object arg2)(Code) | | Adds a message to the request's action messages, creating a new
ActionMessages object if necessary. An warning is logged if no
message exists for msgKey.
StrutsUtil.addMessage(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object) addMessage() |
findForward | public static ActionForward findForward(ActionMapping mapping, String name)(Code) | | Returns the forward named name or throws an exception
with a message indicating the forward could not be found.
|
getPolicy | public static Object getPolicy(ActionMapping mapping)(Code) | | NOT UNIT TESTED Instantiates the policy specified by mapping's
parameter.
|
|
|