Java Reference
In-Depth Information
Figure 3.7: Viewing the full contact information
<tr>
<td class="label"> First name: </td>
<td class="value"> ${actionBean.contact.firstName} </td>
</tr>
<tr>
<td class="label"> Last name: </td>
<td class="value"> ${actionBean.contact.lastName} </td>
</tr>
<tr>
<td class="label"> Email: </td>
<td class="value"> ${actionBean.contact.email} </td>
</tr>
<tr>
<td class="label"> Phone number: </td>
<td class="value"> ${actionBean.contact.phoneNumber} </td>
</tr>
<tr>
<td class="label"> Birth date: </td>
<td class="value"> ${actionBean.contact.birthDate} </td>
</tr>
</table>
<p>
<s:link beanclass="stripesbook.action.ContactListActionBean">
Back to List
</s:link>
</p>
</s:layout-component>
</s:layout-render>
Excellent. Since the contact list and contact view pages are so closely
related, we were able to combine the code for both pages in the same
action bean and add the contact view page with just a JSP.
 
 
Search WWH ::




Custom Search