Java Reference
In-Depth Information
protocol-specific details. Finally, I will wire up everything in the Spring configuration file.
Since this handler adapter is not a default one, I will need to explicitly declare it as part of
the configuration information. Because I am using handler adapter chaining, the default
handler adapter also has to be explicitly configured. Listing 3-41 shows all of this.
Listing 3-41. 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 ">
<bean name="throwawayHandlerAdapter"
class="com.apress.insurance.web.handleradpter.api. å
SimpleFormThrowawayControllerHandlerAdapter" />
<bean name="simpleControllerHandlerAdapter"
class="org.springframework.web.servlet.mvc. å
SimpleControllerHandlerAdapter" />
<bean name="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
<bean name="/createClaim.do"
class="com.apress.insurance.web.controller.DisplayNewClaimController" />
<bean name="/saveClaim.do"
class="com.apress.insurance.web.controller.SaveClaimController" />
<bean name="underwritingBusinessDelegate"
class="com.apress.insurance.view.delegate.UnderWritingBusinessDelegate" />
</beans>
 
Search WWH ::




Custom Search