Groups
Groups
Sign in
Groups
Groups
OpenSocial Enterprise Container
Conversations
About
Send feedback
Help
Adding logout functionality
3 views
Skip to first unread message
spirit
unread,
May 30, 2011, 12:18:25 PM
5/30/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenSocial Enterprise Container
Hello,
to add logout functionality could be done as follows:
1. let's add in web.xml
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/j_spring_security_logout</url-pattern>
</filter-mapping>
...
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/j_spring_security_logout</url-pattern>
</servlet-mapping>
2. let's add in globals.ftl
<#global logoutURL="/portal/j_spring_security_logout" >
3. let's add in header.ftl
<a href="${.globals.logoutURL}" />Logout</a>
Reply all
Reply to author
Forward
0 new messages