XMLViewResolverに慣れようとしているので、m*-servlet.xmlに以下を含めました。
<bean class="org.springframework.web.servlet.view.XmlViewResolver">
<property name="location">
<value>/WEB-INF/spring-views.xml</value>
</property>
<property name="order" value="0" />
</bean>
Spring-views.xmlは次のようになります(単なるスニペット):
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="insertEntryForm" class="org.springframework.web.servlet.view.JstlView">
<property name="url" value="/WEB-INF/views/admin/insertEntryForm.jsp"></property>
</bean>
....
このjspをロードしようとすると、次のエラーが発生します。
"NetworkError: 404 Not Found - http://localhost:8080/LiteratureVisualization/admin/insertEntryForm.html"
どうすればこの問題を解決できますか?XMLViewResolverを使用したいのは、複数のフォルダー(views-directory内)を個別にマップできるためです...またはこれに対する別の解決策はありますか?