public class

Login

extends ActionSupport
implements CommandDriven SessionAware
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ webwork.examples.helloworld.Login

Class Overview

Login for the HelloWorld example.

Summary

[Expand]
Inherited Constants
From interface webwork.action.Action
[Expand]
Inherited Fields
From class webwork.action.ActionSupport
Public Constructors
Login()
Public Methods
String getName()
String getPassword()
void setName(String name)
void setPassword(String password)
void setSession(Map session)
Protected Methods
String doExecute()
void doValidation()
Subclasses may override this method to provide validation of input data.
[Expand]
Inherited Methods
From class webwork.action.ActionSupport
From class java.lang.Object
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware
From interface webwork.action.SessionAware

Public Constructors

public Login ()

Public Methods

public String getName ()

public String getPassword ()

public void setName (String name)

public void setPassword (String password)

public void setSession (Map session)

Protected Methods

protected String doExecute ()

protected void doValidation ()

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.