webwork.examples.events
Class Login
java.lang.Object
webwork.action.ActionSupport
webwork.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
Constructor Summary |
Login()
|
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 |
Login
public Login()
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.