<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean id="index" class="org.springframework.web.servlet.mvc.mapping.Controller"/>

	<bean id="welcome" class="org.springframework.web.servlet.mvc.mapping.WelcomeController"/>
	<bean id="admin" class="org.springframework.web.servlet.mvc.mapping.AdminController"/>
	<bean id="buy" class="org.springframework.web.servlet.mvc.mapping.BuyForm"/>
	
	<bean name="/myFile" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
	<bean name="/myFile2" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>

	<bean id="mapping" class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
		<!--
		We have to revert the default exclude for "org.springframework.web.servlet.mvc",
		since our test controllers sit in this package.
		-->
		<property name="excludedPackages"><list></list></property>
		<property name="excludedClasses" value="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
	</bean>

	<bean id="mapping2" class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
		<!--
		We have to revert the default exclude for "org.springframework.web.servlet.mvc",
		since our test controllers sit in this package.
		-->
		<property name="excludedPackages"><list></list></property>
		<property name="excludedClasses" value="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
		<property name="caseSensitive" value="true"/>
		<property name="pathPrefix" value="/myapp"/>
		<property name="basePackage" value="org.springframework.web.servlet"/>
	</bean>

	<bean id="mapping3" class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
		<!--
		We have to revert the default exclude for "org.springframework.web.servlet.mvc",
		since our test controllers sit in this package.
		-->
		<property name="excludedPackages"><list></list></property>
		<property name="excludedClasses" value="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
		<property name="caseSensitive" value="true"/>
		<property name="pathPrefix" value="/myapp"/>
		<property name="basePackage" value="org.springframework.web.servlet.mvc.mapping"/>
	</bean>

	<bean id="mapping4" class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
		<!--
		We have to revert the default exclude for "org.springframework.web.servlet.mvc",
		since our test controllers sit in this package.
		-->
		<property name="excludedPackages"><list></list></property>
		<property name="excludedClasses" value="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
		<property name="pathPrefix" value="myapp/"/>
		<property name="basePackage" value=""/>
	</bean>

</beans>
