Announcement Announcement Module
Collapse
No announcement yet.
Logout issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    do you have any transition to your endstate, otherwise you wont reach it I think.

    Comment


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

      Comment


      • #4
        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()}"/>

        Comment

        Working...
        X