webwork.examples
Class NumberGuess

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bywebwork.examples.NumberGuess
All Implemented Interfaces:
Action, IllegalArgumentAware, PrepareAction, java.io.Serializable, SessionAware

public class NumberGuess
extends ActionSupport
implements SessionAware, PrepareAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages, log
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
NumberGuess()
           
 
Method Summary
protected  java.lang.String doExecute()
           
 NumberGuessBean getGuessBean()
           
 void prepare()
          This method is called to allow the action to prepare itself before receiving parameters through its set-methods.
 void setBegin(java.lang.String begin)
           
 void setGuess(java.lang.String guess)
           
 void setSession(java.util.Map session)
           
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doValidation, execute, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberGuess

public NumberGuess()
Method Detail

getGuessBean

public NumberGuessBean getGuessBean()

setGuess

public void setGuess(java.lang.String guess)

setBegin

public void setBegin(java.lang.String begin)

setSession

public void setSession(java.util.Map session)
Specified by:
setSession in interface SessionAware

prepare

public void prepare()
             throws java.lang.Exception
Description copied from interface: PrepareAction
This method is called to allow the action to prepare itself before receiving parameters through its set-methods. All *Aware interfaces are checked before this, so the action can rely on addition information to have been sent through the callbacks (e.g. the application session, or user session)

Specified by:
prepare in interface PrepareAction
Throws:
java.lang.Exception - thrown if a system level exception occurs.

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Overrides:
doExecute in class ActionSupport
Throws:
java.lang.Exception


Copyright © 2001-2003 WebWork All Rights Reserved.