File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes logout for SSO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "logout for SSO" Watch "logout for SSO" New topic

logout for SSO

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424

I have implemented Logout for My Application when u r press logout it must logout forum and as well as my application aslo. For this i have implemented as in my application as follows

I have implemented in Struts
Procedure 1.

HttpServletRequest req = ServletActionContext.getRequest();
HttpServletResponse res = ServletActionContext.getResponse();;
JForumExecutionContext ex = JForumExecutionContext.get();
RequestContext request = (RequestContext)req;
ResponseContext response = (ResponseContext)res;
JForumContext forumContext = null;
forumContext = new JForumContext(req.getContextPath().toString(),

UserAction us=new UserAction();

it gives NullpointerException in JForumExecutionContext. and some time it give can't cast struts context to "jforumcontext" message also.

Procedure 2.

I have written when user click logout .
in html as " /user/logout" in my and



"" for my application logout.(i am trying to redirect to my application logout )

This is give "/" Name space Exception.

Any body plz Help how to implement logout for SSO.

Thank you,
[originally posted on by gopal.g]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
from a HttpServletRequest and HttpServletResponse, you should create an instance of WebRequestContext and WebResponseContext - you're getting a cast excetion because you're, in fact, casting it to the wrong object.

[originally posted on by Rafael Steil]
I agree. Here's the link:
subject: logout for SSO
It's not a secret anymore!