
Originally Posted by
ericdeng
thanks for your reply ^-^
then , maybe I can't put the "view.properties" in "web-inf/view"
no, because then it won't be in the classpath as Omar already explained. WEB-INF/classes and any jar file in WEB-INF/lib is automatically added to the classpath by the servlet container. This is standard Java and servlet API semantics.
If you are averse to storing your config file in the classpath, consider using XmlViewResolver - you can store the file anywhere you like.
Code:
<bean
id="viewResolver"
class="org.springframework.web.servlet.view.XmlViewResolver">
<property name="location">
<value>/WEB-INF/views.xml</value>
</property>
</bean>
Regards,
Darren Davison.
Public Key: 0xE855B3EA