Results 1 to 2 of 2

Thread: How to config multiple View Resolver

  1. #1
    Join Date
    Dec 2012
    Posts
    2

    Default 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. #2
    Join Date
    Dec 2012
    Posts
    2

    Default

    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
  •