1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- les mappings de l'application-->
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/list.html">Personnes.ListController</prop>
<prop key="/delete.html">Personnes.DeleteController</prop>
<prop key="/edit.html">Personnes.EditController</prop>
</props>
</property>
</bean>
<!-- LES CONTROLEURS -->
<bean id="Personnes.ListController"
class="istia.st.springmvc.personnes.web.ListPersonnes">
<property name="service">
<ref bean="service"/>
</property>
</bean>
<bean id="Personnes.DeleteController"
class="istia.st.springmvc.personnes.web.DeletePersonne">
<property name="service">
<ref bean="service"/>
</property>
</bean>
<bean id="Personnes.EditController"
class="istia.st.springmvc.personnes.web.EditPersonne">
<property name="sessionForm">
<value>true</value>
</property>
<property name="commandName">
<value>personne</value>
</property>
<property name="validator">
<ref bean="Personnes.Validator"/>
</property>
<property name="formView">
<value>edit</value>
</property>
<property name="service">
<ref bean="service"/>
</property>
</bean>
<!-- le validateur -->
<bean id="Personnes.Validator"
class="istia.st.springmvc.personnes.web.ValidatePersonne"/>
<!-- le résolveur de vues -->
<bean class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
<property name="basename">
<value>vues</value>
</property>
</bean>
<!-- le gestionnaire d'exceptions -->
<bean
class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
<property name="exceptionAttribute">
<value>exception</value>
</property>
<property name="defaultStatusCode">
<value>200</value>
</property>
<property name="defaultErrorView">
<value>exception</value>
</property>
</bean>
<!-- le fichier des messages -->
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basename">
<value>messages</value>
</property>
</bean>
</beans> |
Partager