Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.taglibs.rdc.sampleapps.mortgage.struts
Class MortgageAction  view MortgageAction download MortgageAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.apache.taglibs.rdc.sampleapps.mortgage.struts.MortgageAction

public class MortgageAction
extends org.apache.struts.action.Action

Struts action class for mortgage data collection (mortgage sample app)


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
MortgageAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.
private  java.lang.String getMortgagePayment(org.apache.taglibs.rdc.MortgageData mortgage, double amount)
          Get the monthly installment for the given mortgage
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MortgageAction

public MortgageAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.lang.Exception
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.


getMortgagePayment

private java.lang.String getMortgagePayment(org.apache.taglibs.rdc.MortgageData mortgage,
                                            double amount)
Get the monthly installment for the given mortgage