Results 1 to 4 of 4

Thread: Logout issue

  1. #1
    Join Date
    Mar 2009
    Posts
    10

    Default Logout issue

    Hi All,

    Can any one help me put with sample code on how to implement logout functionality in spring web flow.

    I am not supposed to use spring security.

    Also i have a link logOff for which i have a separate flow.
    In the flow.xml file
    <var name="menuLinkFlowAction" class="dk.tdc.kvikoc.web.actions.MenuLinkFlowActio n" />
    <on-start>
    <evaluate expression="menuLinkFlowAction.logOff(flowRequestC ontext)" />
    </on-start>

    <end-state id="index.view" view="redirect:/logout.html"></end-state>


    But end state view page is never coming. Also in logOff method i am invalidating the session.

    Please suggest me with solution.

  2. #2

    Default

    do you have any transition to your endstate, otherwise you wont reach it I think.

  3. #3
    Join Date
    Mar 2009
    Posts
    10

    Default

    No as of now i dont have any. can you help me out with a sample code.

  4. #4

    Default

    Hmm maybe I replied a bit too fast, the end state is the first state, so it should go there.

    Can't you make the end state a view state? Or is your view not known within webflow.

    Otherwise perhaps you should use externalRedirect. I use in some places:

    <view-state id="myview" view="externalRedirect:${bean.getUri()}"/>

Posting Permissions

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