<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc" 
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
    <context:annotation-config />
    
    
	<context:component-scan base-package="gov.va.med.pharmacy.web" />
	
	<mvc:annotation-driven />
    <mvc:default-servlet-handler default-servlet-name="inb-erx" />
	<mvc:resources mapping="/resources/**" location="/inbound/inb-erx/resources/, classpath:/META-INF/web-resources/" cache-period="31556926"/>
 

	 <bean id="conversionService"      class="org.springframework.format.support.FormattingConversionServiceFactoryBean"/>
	
	<mvc:interceptors>
		<bean class="gov.va.med.pharmacy.web.interceptor.LoginInterceptor" />
		<bean class="net.rossillo.spring.web.mvc.CacheControlHandlerInterceptor" />
	</mvc:interceptors>
	 
	
	<bean id="tilesConfigurer"		class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
		<property name="definitions">
			<list>
				<value>/WEB-INF/defs/tiles-defs.xml</value>
			</list>
		</property>
	</bean>
	<bean id="tilesViewResolver"		class="org.springframework.web.servlet.view.UrlBasedViewResolver">
		<property name="order" value="1"></property>
		<property name="viewClass"	value="org.springframework.web.servlet.view.tiles3.TilesView" />
	</bean>	
	
    <bean id="urlViewResolver"    class="org.springframework.web.servlet.view.UrlBasedViewResolver">
    <property name="viewClass"      value="org.springframework.web.servlet.view.JstlView" />
  </bean>
  
  <bean id="jspViewResolver"    class="org.springframework.web.servlet.view.UrlBasedViewResolver">
    <property name="viewClass"      value="org.springframework.web.servlet.view.JstlView" />
    <property name="prefix" value="/WEB-INF/" />
    <property name="suffix" value=".jsp" />
  </bean>
  
  
  <bean id="validator"      class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
  

    <!--  
	<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
		<property name="basenames">
			<list>
				<value>props/Reports</value>
				<value>props/UserRoles</value>
				
			</list>
		</property>
	</bean>
	-->
</beans>
