hairinwind
Dec 11th, 2006, 07:24 PM
Some pages are displayed in Tiles. so I have the setting
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResou rceViewResolver">
<property name="order" value="2" />
<property name="requestContextAttribute">
<value>rc</value>
</property>
<property name="viewClass">
<value>
org.springframework.web.servlet.view.tiles.TilesJs tlView
</value>
</property>
</bean>
But I have some other pages which are not displayed in Tiles. So I have the setting below
<bean id="jspViewResolver"
class="org.springframework.web.servlet.view.InternalResou rceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
But they cannot work together...Only the view for tiles can work.
I hope spring lookup in Tiles at first. If nothing matched, it will looup in jsp files. But it does not work as I wanted.
Please help!
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResou rceViewResolver">
<property name="order" value="2" />
<property name="requestContextAttribute">
<value>rc</value>
</property>
<property name="viewClass">
<value>
org.springframework.web.servlet.view.tiles.TilesJs tlView
</value>
</property>
</bean>
But I have some other pages which are not displayed in Tiles. So I have the setting below
<bean id="jspViewResolver"
class="org.springframework.web.servlet.view.InternalResou rceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
But they cannot work together...Only the view for tiles can work.
I hope spring lookup in Tiles at first. If nothing matched, it will looup in jsp files. But it does not work as I wanted.
Please help!