webwork.examples.events
Class Login

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bywebwork.examples.events.Login
All Implemented Interfaces:
Action, CommandDriven, IllegalArgumentAware, java.io.Serializable, SessionAware

public class Login
extends ActionSupport
implements SessionAware, CommandDriven

This code is an adaptation of the EventHandler example from the Rocks homepage by Christian Cryder http://xmlc.enhydra.org/EventHandler/

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
Login()
           
 
Method Summary
protected  java.lang.String doExecute()
           
 java.lang.String execute()
          Execute will first check the request for a result exception.
 boolean getAutoLogin()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String password)
           
 void setSession(java.util.Map session)
           
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doValidation, 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
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Constructor Detail

Login

public Login()
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setPassword

public void setPassword(java.lang.String password)

getPassword

public java.lang.String getPassword()

getAutoLogin

public boolean getAutoLogin()

setSession

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

execute

public java.lang.String execute()
                         throws java.lang.Exception
Description copied from class: ActionSupport
Execute will first check the request for a result exception. If one is found, then it will add its message as an error message and throw the ResultException. If there no exception is found, then it will invoke the "command" - invokeCommand(). If we are not invoking a command, it will call validate() and then doExecute().

Specified by:
execute in interface Action
Overrides:
execute in class ActionSupport
Returns:
view
Throws:
java.lang.Exception

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.