We'll now create screens for the loan approval process (another vertical slice of the application). This consists of a loan request form, task list screen, task manipulation (claim a task, start a task, complete a task), and final supervisor's approval. In this case we'll do a top-down approach starting with the presentation layer.
The following screenshot shows the Loan Request form:
Let's start with the implementation of the loanRequest.jsp
file, which will display the loan request form. We can copy the customerSave.jsp
file and just replace the form section with the following:
<form:form method="post" modelAttribute="loanRequest"> <table width="100%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5"> <tr> <td align="right">Amount:</td> <td><form:input path="amount" /></td> </tr> <tr> <td align="right">Duration...