public class

ExprFormTest

extends ActionSupport
implements CommandDriven
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ webwork.examples.ExprFormTest

Class Overview

A simple form that tests the expression language's ability to get and set properties.

Summary

[Expand]
Inherited Constants
From interface webwork.action.Action
[Expand]
Inherited Fields
From class webwork.action.ActionSupport
Public Constructors
ExprFormTest()
Public Methods
Person getPerson()
void setPerson(Person person)
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

Public Constructors

public ExprFormTest ()

Public Methods

public Person getPerson ()

public void setPerson (Person person)

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.