public class ActionUtils extends Object
| Constructor and Description |
|---|
ActionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.struts.action.ActionForward |
changeForwardPath(org.apache.struts.action.ActionForward forward,
Map params)
Return a new
ActionForward based on the given one but with the specified parameter name and value
added to the new forward's path. |
static org.apache.struts.action.ActionForward |
changeForwardPath(org.apache.struts.action.ActionForward forward,
String param,
String value) |
static String |
changeUrl(String url,
Map params)
Change a url by appending all of the
params to it. |
static String |
findReturnPath(org.apache.struts.action.ActionMapping mapping,
Map params)
Return a URL path that will return control to the current action.
|
static String |
findReturnPath(org.apache.struts.action.ActionMapping mapping,
String param,
String value) |
public static org.apache.struts.action.ActionForward changeForwardPath(org.apache.struts.action.ActionForward forward,
Map params)
throws Exception
ActionForward based on the given one but with the specified parameter name and value
added to the new forward's path. NOTE: this method would be unnecessary if Struts allowed us to "unfreeze" the
ForwardConfig that is the superclass of the forward.forward - the ActionForward on which the new forward is basedparam - the name of the path parameter to addvalue - the value of the parameter to addjavax.servlet.ServletException - if encoding the path parameter failsExceptionpublic static org.apache.struts.action.ActionForward changeForwardPath(org.apache.struts.action.ActionForward forward,
String param,
String value)
throws Exception
Exceptionpublic static String changeUrl(String url, Map params) throws Exception
params to it.url - the original URLparams - the name-value pairs to appendExceptionpublic static String findReturnPath(org.apache.struts.action.ActionMapping mapping, Map params) throws Exception
mapping - the ActionMapping describing the current action's forwardsparams - a map containing the path parameters to addjavax.servlet.ServletException - if encoding the path parameter fails or input has not been setExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.