ScalateViewResolver expose context beans as attributes
Spring MVC's InternalResourceViewResolver can expose application context beans to JSP. Would be great to have this with ScalateViewResolver as well.
It's used like this in InternalResourceViewResolver,
It's used like this in InternalResourceViewResolver,
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/views/" />
<property name="suffix" value=".jsp" />
<property name="exposedContextBeanNames">
<list>
<value>nameOfABeanInApplicationContext</value>
</list>
</property>
</bean>
Leave a comment