Announcement Announcement Module
Collapse
No announcement yet.
Redirect To Another Page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Redirect To Another Page

    Hi,
    Does anyone experience this problem before?


    When the form is successful submit, I would like to redirect user to another page (successful form). However, the application always returns page is not found.

    I tried both Redirect View as well as "redirect" prefix. It doesn't help. All of my jsp (include successful form) locates under "WEB-INF/view". Here is my configuration for View Resolver
    Code:
       <bean id="viewresolver2" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
       		<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
        <property name="prefix" value="/WEB-INF/views/"/>
        <property name="suffix" value=".jsp"/>
        <property name="order" value="0"/>
    </bean>
       
       
      <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
            <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"></property>         
            <property name="prefix" value="/WEB-INF/views/"></property>
            <property name="suffix" value=".jsp"></property>
            <property name="order" value="1"/>        
        </bean>
    Thanks

  • #2
    Resolved. Thank for reading.

    Comment

    Working...
    X