-
Mar 23rd, 2011, 12:03 AM
#1
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.
-
Mar 29th, 2011, 10:03 AM
#2
do you have any transition to your endstate, otherwise you wont reach it I think.
-
Mar 29th, 2011, 01:35 PM
#3
No as of now i dont have any. can you help me out with a sample code.
-
Mar 30th, 2011, 02:54 AM
#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()}"/>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules