Java Reference
In-Depth Information
<property name="formView"
value="createPolicy" />
<property name="commandName"
value="policydetails" />
<property name="successView"
value="policydetails" />
<property name="commandClass"
value="com.apress.insuranceapp.web.formbean.PolicyFormBean" />
</bean>
</beans>
Finally, Listing 3-29 shows the success view. It uses JSTL tags to retrieve model data.
Listing 3-29. WEB-INF/jsp/policydetails.jsp
<%@ taglib prefix="c" uri=" http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri=" http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<title>Underwriting</title>
</head>
<body>
<form >
<table>
<tr>
<td>First Name:</td>
<td><c:out value="${policydetails.firstName}"/></td>
</tr>
 
Search WWH ::




Custom Search