Announcement Announcement Module
No announcement yet.
PageNotFound WARN, with end-state and back button Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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.
    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.
     <end-state id="signIn" view="externalRedirect:/account/app/Login" />


    • #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.


      • #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.
          <bean id="flowController" name="/contactUs.action"
            <property name="flowExecutor" ref="flowExecutor" />
            <property name="defaultFlowId" value="contactUsFlow" />
        the end-state is this.
        <end-state id="thankyou"
            view="externalRedirect:/contactus/thankyouContactUs.action" />


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


          • #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.