java.lang.Objectorg.apache.struts.config.ActionConfig
org.apache.struts.action.ActionMapping
net.jspcontrols.dialogs.actions.DialogMapping
A DialogMapping represents the information that the
controller, RequestProcessor
, knows about the mapping
of a particular request to an instance of a particular Action
class.
This class allows to employ different syntax for describing action mappings, using <component> elements instead of <action>. See struts-config_1_2_dialog.dtd for details.
Field Summary | |
protected java.lang.String |
view
Path to the default view, usually JSP page. |
Fields inherited from class org.apache.struts.config.ActionConfig |
attribute, configured, exceptions, forward, forwards, include, input, moduleConfig, multipartClass, name, parameter, path, prefix, roleNames, roles, scope, suffix, type, unknown, validate |
Constructor Summary | |
DialogMapping()
Dialogs use session scope and have automatic validation turned off, so a handler in an action form would always be called. |
Method Summary | |
org.apache.struts.config.ForwardConfig |
findForwardConfig(java.lang.String name)
Return the forward configuration for the specified key, if any; otherwise return null . |
java.lang.String |
getForm()
Return name of the form bean, if any, associated with this Action. |
java.lang.String |
getView()
Returns the path to the default view of a corresponding dialog. |
org.apache.struts.action.ActionForward |
reload()
Reloads a dialog by returning a TransferForward.DIALOG_RELOAD
ActionForward object. |
void |
setForm(java.lang.String name)
|
void |
setView(java.lang.String view)
|
Methods inherited from class org.apache.struts.action.ActionMapping |
findForward, findForwards, getInputForward |
Methods inherited from class org.apache.struts.config.ActionConfig |
addExceptionConfig, addForwardConfig, findException, findExceptionConfig, findExceptionConfigs, findForwardConfigs, freeze, getAttribute, getForward, getInclude, getInput, getModuleConfig, getMultipartClass, getName, getParameter, getPath, getPrefix, getRoleNames, getRoles, getScope, getSuffix, getType, getUnknown, getValidate, removeExceptionConfig, removeForwardConfig, setAttribute, setForward, setInclude, setInput, setModuleConfig, setMultipartClass, setName, setParameter, setPath, setPrefix, setRoles, setScope, setSuffix, setType, setUnknown, setValidate, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String view
Constructor Detail |
public DialogMapping()
Method Detail |
public java.lang.String getView()
public void setView(java.lang.String view)
view
- the path to the default view of a corresponding dialog.public java.lang.String getForm()
public void setForm(java.lang.String name)
name
- name of the form bean associated with this Action.public org.apache.struts.action.ActionForward reload()
TransferForward.DIALOG_RELOAD
ActionForward object.
TransferForward.DIALOG_RELOAD
ActionForward object,
which is detected by DialogAction
as a signal
to reload the dialog. This works only for <component> elements,
does not work for <action> elements.public org.apache.struts.config.ForwardConfig findForwardConfig(java.lang.String name)
null
.
name
- Name of the forward configuration to return