example
Class HelloWorld

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by example.ExampleSupport
          extended by example.HelloWorld
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable

public class HelloWorld
extends ExampleSupport

Set welcome message.

See Also:
Serialized Form

Field Summary
static String MESSAGE
          Provide default valuie for Message property.
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
HelloWorld()
           
 
Method Summary
 String execute()
           
 String getMessage()
          Return Message property.
 void setMessage(String message)
          Set Message property.
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, 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, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE

public static final String MESSAGE
Provide default valuie for Message property.

See Also:
Constant Field Values
Constructor Detail

HelloWorld

public HelloWorld()
Method Detail

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception

getMessage

public String getMessage()
Return Message property.

Returns:
Message property

setMessage

public void setMessage(String message)
Set Message property.

Parameters:
message - Text to display on HelloWorld page.


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