public class BaseAction
extends com.opensymphony.xwork2.ActionSupport
| Modifier and Type | Field and Description |
|---|---|
protected String |
cancel
Indicator if the user clicked cancel
|
static String |
CANCEL
Constant for cancel result String
|
protected String |
delete
Set to "delete" when a "delete" request parameter is passed in
|
protected String |
from
Indicator for the page the user came from.
|
protected org.apache.commons.logging.Log |
log
Transient log to prevent session synchronization issues - children can use instance for logging.
|
protected String |
save
Set to "save" when a "save" request parameter is passed in
|
| Constructor and Description |
|---|
BaseAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
cancel()
Simple method that returns "cancel" result
|
protected Map |
getConfiguration()
Convenience method to get the Configuration HashMap
from the servlet context.
|
protected javax.servlet.http.HttpServletRequest |
getRequest()
Convenience method to get the request
|
protected javax.servlet.http.HttpServletResponse |
getResponse()
Convenience method to get the response
|
protected javax.servlet.http.HttpSession |
getSession()
Convenience method to get the session.
|
protected void |
saveMessage(String msg)
Save the message in the session, appending if messages already exist
|
void |
setDelete(String delete) |
void |
setFrom(String from)
Convenience method for setting a "from" parameter to indicate the previous page.
|
void |
setSave(String save) |
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validatepublic static final String CANCEL
protected final transient org.apache.commons.logging.Log log
protected String cancel
protected String from
protected String delete
protected String save
public String cancel()
protected void saveMessage(String msg)
msg - the message to put in the sessionprotected Map getConfiguration()
protected javax.servlet.http.HttpServletRequest getRequest()
protected javax.servlet.http.HttpServletResponse getResponse()
protected javax.servlet.http.HttpSession getSession()
public void setFrom(String from)
from - indicator for the originating pagepublic void setDelete(String delete)
public void setSave(String save)
Copyright © 2013. All Rights Reserved.