webwork.examples.helloworld
Class Login
java.lang.Object
webwork.action.ActionSupport
webwork.examples.helloworld.Login
- All Implemented Interfaces:
- Action, CommandDriven, IllegalArgumentAware, java.io.Serializable, SessionAware
- public class Login
- extends ActionSupport
- implements SessionAware, CommandDriven
Login for the HelloWorld example.
- Version:
- $Revision: 1.5 $
- Author:
- Rickard Öberg (rickard@middleware-company.com)
- See Also:
- Serialized Form
Constructor Summary |
Login()
|
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, doDefault, 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 |
Login
public Login()
setName
public void setName(java.lang.String name)
setPassword
public void setPassword(java.lang.String password)
getName
public java.lang.String getName()
getPassword
public java.lang.String getPassword()
setSession
public void setSession(java.util.Map session)
- Specified by:
setSession
in interface SessionAware
doValidation
protected void doValidation()
- Description copied from class:
ActionSupport
- Subclasses may override this method to provide validation
of input data. The execute() method should call validate()
in the beginning of its code (which will delegate to this method),
so as to check input data
before doing the actual processing.
If any application errors arise these should be registered
by calling addErrorMessage or addError .
If the validation is dependent on whether a command has been issued,
and what that command is, then the isCommand() method should be used.
- Overrides:
doValidation
in class ActionSupport
doExecute
protected java.lang.String doExecute()
- Overrides:
doExecute
in class ActionSupport
Copyright © 2001-2003 WebWork All Rights Reserved.