Greetings,
Is there any Spring variable for Web application folder?
I want to assign a bean property as following.
Where ${WEBAPP-FOLDER} is the absolute path of the web-app folder.
Any tips?
<bean id="compass" class="org.compass.spring.LocalCompassBean">
.
.
<prop key="compass.engine.connection">file:///${WEBAPP-FOLDER}/WEB-INF/searchIndex</prop>
</bean>
No, but you can obtain it through a
ServletContextListener, by callingYou can now set it in a
staticvariable (which will logically be a constant), or get the spring application context and set it manually (viaWebApplicationUtils) in the bean.