Question: Is it possible to have two view technology in Spring MVC.

Let's say i want to have a JSP and Velocity,

on my dispatcher-servlet.xml

```
<bean class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
    <property name="basename" value="spring-views"/>
</bean>

```

on my spring-views.properties

```
item-list.(class)=org.springframework.web.servlet.view.JstlView
item-list.url=/WEB-INF/pages/add-item.jsp

image-list.(class)=org.springframework.web.servlet.view.velocity.VelocityView
image-list.url=/WEB-INF/velocity/image-list.vm
image-list.exposeSpringMacroHelpers=true

```

I've been search a whole day and I cannot find any answer. Any help is appreciated. Thanks!

Answer: 
Add a Velocity config to your dispatcher servlet:

```
<bean id="velocityConfig" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
    <property name="resourceLoaderPath" value="/WEB-INF/velocity/"/>
</bean>

```
You can use as many view technologies in the application as you want, provided you have configured view resolvers for each and there is no conflict between them (in terms of which should pick up a view returned by a controller). [Here](https://github.com/jreijn/spring-comparing-template-engines/tree/master/src/main/webapp/WEB-INF) is an excellent example with full XML configuration and actual views.