Results 1 to 6 of 6

Thread: PageNotFound WARN, with end-state and back button

  1. #1
    Join Date
    Apr 2007
    Posts
    20

    Default 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. #2
    Join Date
    Apr 2007
    Posts
    20

    Default

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

  3. #3

    Default

    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.
    mic

  4. #4
    Join Date
    Apr 2007
    Posts
    20

    Default

    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" />

  5. #5
    Join Date
    May 2005
    Location
    California, US
    Posts
    735

    Default

    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

  6. #6
    Join Date
    Apr 2007
    Posts
    20

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •