Java Reference
In-Depth Information
Listing 3-35. WEB-INF/jsp/createClaim.jsp
<html>
<head>
<title>New Claim</title>
</head>
<form action="saveClaim.do" method="POST">
Claimant Name <input type="text" name="claimantName" value="" /><br/>
Policy Number <input type="text" name="policyNo" value="" /><br/>
Product Code<input type="text" name="productCd" value="" /><br/>
<input type="submit" value="Save" />
</form>
</body>
</html>
Finally, the controller needs to be added in the Spring configuration, as shown in
Listing 3-36.
Listing 3-36. insurance-servlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" http://www.springframework.org/schema/beans"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
>
<!- - Other beans - ->
<bean name="/saveClaim.do"
class="com.apress.insurance.web.controller.SaveClaimController" />
</beans>
Search WWH ::




Custom Search