public class

LoanCalc

extends ActionSupport
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ webwork.examples.LoanCalc

Summary

Nested Classes
class LoanCalc.MonthlyDue  
Constants
int MAXTERMS
[Expand]
Inherited Constants
From interface webwork.action.Action
[Expand]
Inherited Fields
From class webwork.action.ActionSupport
Public Constructors
LoanCalc()
Public Methods
float getInstalment()
float getInterestRate()
List getMonthlyDues()
float getPresentValue()
void setInstalment(float instalment)
void setInterestRate(float interestRate)
void setPresentValue(float presentValue)
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.IllegalArgumentAware

Constants

protected static final int MAXTERMS

Constant Value: 100 (0x00000064)

Public Constructors

public LoanCalc ()

Public Methods

public float getInstalment ()

public float getInterestRate ()

public List getMonthlyDues ()

public float getPresentValue ()

public void setInstalment (float instalment)

public void setInterestRate (float interestRate)

public void setPresentValue (float presentValue)

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.