Announcement Announcement Module
Collapse
No announcement yet.
How to config multiple View Resolver Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    any body in this world to help me ???

    Comment

    Working...
    X