org.apache.struts2.s1
Class Struts1Action

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.struts2.dispatcher.DefaultActionSupport
          extended by org.apache.struts2.s1.Struts1Action
All Implemented Interfaces:
Action, ScopedModelDriven<org.apache.struts.action.ActionForm>, LocaleProvider, ModelDriven<org.apache.struts.action.ActionForm>, TextProvider, Validateable, ValidationAware, java.io.Serializable

public class Struts1Action
extends DefaultActionSupport
implements ScopedModelDriven<org.apache.struts.action.ActionForm>

Wraps legacy Struts 1.3 Actions. Supports the following features:

Still to do:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
Struts1Action()
           
 
Method Summary
 java.lang.String execute()
           
 org.apache.struts.action.ActionForm getModel()
           
 java.lang.String getScopeKey()
           
 boolean isValidate()
           
 void setClassName(java.lang.String className)
           
 void setConfiguration(Configuration config)
           
 void setModel(org.apache.struts.action.ActionForm model)
           
 void setObjectFactory(ObjectFactory fac)
           
 void setScopeKey(java.lang.String key)
           
 void setValidate(boolean validate)
           
 
Methods inherited from class org.apache.struts2.dispatcher.DefaultActionSupport
getSuccessResultValue, setSuccessResultValue
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Struts1Action

public Struts1Action()
Method Detail

setObjectFactory

public void setObjectFactory(ObjectFactory fac)

setConfiguration

public void setConfiguration(Configuration config)

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface Action
Overrides:
execute in class DefaultActionSupport
Throws:
java.lang.Exception

setModel

public void setModel(org.apache.struts.action.ActionForm model)
Specified by:
setModel in interface ScopedModelDriven<org.apache.struts.action.ActionForm>

getModel

public org.apache.struts.action.ActionForm getModel()
Specified by:
getModel in interface ModelDriven<org.apache.struts.action.ActionForm>

isValidate

public boolean isValidate()
Returns:
the validate

setValidate

public void setValidate(boolean validate)
Parameters:
validate - the validate to set

setClassName

public void setClassName(java.lang.String className)
Parameters:
className - the className to set

getScopeKey

public java.lang.String getScopeKey()
Specified by:
getScopeKey in interface ScopedModelDriven<org.apache.struts.action.ActionForm>

setScopeKey

public void setScopeKey(java.lang.String key)
Specified by:
setScopeKey in interface ScopedModelDriven<org.apache.struts.action.ActionForm>


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.