Announcement Announcement Module
Collapse
No announcement yet.
PageNotFound WARN, with end-state and back button Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • PageNotFound WARN, with end-state and back button

    I have an end-state with a view. Specifically a view that is an externalRedirect.

    If the end-state occurs, and the externalRedirect is executed the page is show correctly. However, if the back button is then pressed there is a org.springframework.web.servlet.PageNotFound WARN thrown because the mapping cannot be found.
    Code:
    No mapping for [/WEB-INF/views/externalRedirect:/contactUs.action] in DispatcherServlet
    Anyway of stopping this happening?

    The only thing I can think of right now is creating my own view resolver to work with mappings that contain "externalRedirect" which is ugly.

  • #2
    This is my end state definition.
    Code:
     <end-state id="signIn" view="externalRedirect:/account/app/Login" />

    Comment


    • #3
      Not sure to understand between your two posts, but is it a redirect to /contactUs.action or a redirect to /account/app/Login ?

      Anyway, don't you think that you can't avoid having your end state a view ?

      In my point of view a end state should not be a view state.

      Comment


      • #4
        I have serveral end states and they all do the same thing.

        My flow executes an end-state with a externalRedirect and the back button is pressed. I get the following warning message.

        No mapping for [/WEB-INF/views/externalRedirect:/contactUs.action]

        the flow mapping is.
        Code:
          <bean id="flowController" name="/contactUs.action"
            class="org.springframework.webflow.executor.mvc.FlowController">
            <property name="flowExecutor" ref="flowExecutor" />
            <property name="defaultFlowId" value="contactUsFlow" />
          </bean>
        the end-state is this.
        Code:
        <end-state id="thankyou"
            view="externalRedirect:/contactus/thankyouContactUs.action" />

        Comment


        • #5
          Is it any "better" if you don't use the redirect? I have a similar problem, which Keith responded to explaining the situation:

          http://forum.springframework.org/showthread.php?t=53122

          Comment


          • #6
            I found my error.

            In the exception handler I was mapping to a webflow type view. That is, using the externalRedirect signal. But SimpleMappingExceptionResolver does not know what to make of externalRedirect:url and therefore could find a mapping.

            Changed the mapping to redirect:/contactus.action and it worked.

            Comment

            Working...
            X