123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
- <!--
- - Application context definition for "contacts" DispatcherServlet.
- - $Id$
- -->
- <beans>
- <!-- ========================== WEB DEFINITIONS ======================= -->
- <bean id="publicIndexController" class="sample.contact.PublicIndexController">
- <property name="contactManager"><ref bean="contactManager"/></property>
- </bean>
- <bean id="secureIndexController" class="sample.contact.SecureIndexController">
- <property name="contactManager"><ref bean="contactManager"/></property>
- </bean>
- <bean id="secureDeleteController" class="sample.contact.DeleteController">
- <property name="contactManager"><ref bean="contactManager"/></property>
- </bean>
- <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
- <property name="mappings">
- <props>
- <prop key="/hello.htm">publicIndexController</prop>
- <prop key="/secure/add.htm">secureAddForm</prop>
- <prop key="/secure/index.htm">secureIndexController</prop>
- <prop key="/secure/del.htm">secureDeleteController</prop>
- </props>
- </property>
- </bean>
- <bean id="addValidator" class="sample.contact.WebContactValidator"/>
- <bean id="secureAddForm" class="sample.contact.WebContactAddController">
- <property name="sessionForm"><value>true</value></property>
- <property name="commandName"><value>webContact</value></property>
- <property name="commandClass"><value>sample.contact.WebContact</value></property>
- <property name="validator"><ref bean="addValidator"/></property>
- <property name="formView"><value>add</value></property>
- <property name="successView"><value>index.htm</value></property>
- <property name="contactManager">
- <ref bean="contactManager"/>
- </property>
- </bean>
- <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
- <property name="prefix"><value>/WEB-INF/jsp/</value></property>
- <property name="suffix"><value>.jsp</value></property>
- </bean>
- </beans>
|