Announcement Announcement Module
Collapse
No announcement yet.
Why we need a resolver ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why we need a resolver ?

    Hi.
    If I'm using JSP and Servlets with Spring, why I have to use a view resolver such :
    Code:
    # The ResourceBundleViewResolver:
    <bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
      <property name="basename" value="views"/>
    </bean>
    
    # And a sample properties file is uses (views.properties in WEB-INF/classes):
    welcome.class=org.springframework.web.servlet.view.JstlView
    welcome.url=/WEB-INF/jsp/welcome.jsp
    
    productList.class=org.springframework.web.servlet.view.JstlView
    productList.url=/WEB-INF/jsp/productlist.jsp
    And if I want to use JSP&Servlets, which resolver I have to use (or when to use it) :
    org.springframework.web.servlet.view.ResourceBundl eViewResolver
    or
    org.springframework.web.servlet.view.InternalResou rceViewResolver
    Thanks.

  • #2
    Follow this link it will clear your query

    http://www.springframework.org/docs/...olver-resolver

    Comment

    Working...
    X