Hi,
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 logout.java 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(),
SystemGlobals.getValue(ConfigKeys.SERVLET_EXTENSION),
request,
response
);
ex.setForumContext(forumContext);
JForumExecutionContext.set(ex);
UserAction us=new UserAction();
us.logout();
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 UserAction.java
logout(){
JForumExecutionContext.setRedirect(this.request.getContextPath()+"/logoutAdminUser.do")
}
"logoutAdminUser.do" 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,
Gopal.G
[originally posted on jforum.net by gopal.g]