org.apache.struts2.showcase.token
Class TokenAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.struts2.showcase.token.TokenAction
All Implemented Interfaces:
Action, LocaleProvider, TextProvider, Validateable, ValidationAware, java.io.Serializable

public class TokenAction
extends ActionSupport

Example to illustrate the token and tokenSession interceptor.

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
TokenAction()
           
 
Method Summary
 java.lang.String execute()
           
 int getAmount()
           
 java.lang.String input()
           
 void setAmount(int amount)
           
 
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, 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

TokenAction

public TokenAction()
Method Detail

execute

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

input

public java.lang.String input()
                       throws java.lang.Exception
Overrides:
input in class ActionSupport
Throws:
java.lang.Exception

getAmount

public int getAmount()

setAmount

public void setAmount(int amount)


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