Results 1 to 5 of 5

Thread: webflow exception handling

Threaded View

  1. #1
    Join Date
    Apr 2007
    Posts
    14

    Default webflow exception handling

    i'm pretty new to webflow and in fact spring mvc in general and was having trouble getting exception handling working in a flow. i can't seem to find good examples of this.

    basically what i want to do is pretty simple.. when a flow completes (end-state is reached) and the user presses the back button, i want to catch the nosuchflowexecution/nosuchconversation exception and display an error page. this doesn't seem to work:

    a bunch of view/action states

    <view-state id="error" view="error" />

    <end-state id="completed" view="externalRedirect:redirectURL" />

    <global-transitions>
    <transition on-exception="org.springframework.webflow.execution.r epository.NoSuchFlowExecutionException" to="error" />
    <transition on-exception="org.springframework.webflow.conversatio n.NoSuchConversationException" to="error" />
    </global-transitions>


    can someone show me a simple example of how to do this or point out what im doing wrong?

    thanks
    Last edited by fadetoblack; Apr 5th, 2007 at 12:28 PM.

Posting Permissions

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