-
Dec 29th, 2012, 09:59 AM
#1
How to config multiple View Resolver
in my application I Have jsp & html files & I want to config 2 viewResolvers
I use Spring 3.2 relaease
myapp-servlet.xml
<bean id="viewResolver1" class="org.springframework.web.servlet.view.Intern alResourceViewResolver">
<property name="order" value="0"></property>
<property name="viewClass" value="org.springframework.web.servlet.view.JstlVi ew"></property>
<property name="prefix" value="/htmlfiles/"></property>
<property name="suffix" value=".html"></property>
</bean>
<bean id="viewResolver" class="org.springframework.web.servlet.view.Intern alResourceViewResolver">
<property name="order" value="1"></property>
<property name="viewClass" value="org.springframework.web.servlet.view.JstlVi ew"></property>
<property name="prefix" value="/jspfiles/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
but faild
what sholud be the problem
-
Dec 30th, 2012, 05:14 AM
#2
any body in this world to help me ???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules