Logout from applcation

I have logout button in menu bar on click of that it has go to jsp file called login.jsp how to call jsp class in java class and the logout button has to come in top right corener of menu bar like sinout in gmail example .i have google it but no links are much help full.please guide me Thanks in advance you can see screen as attched below.
11862.bmp (3.75 MB)

You can implement the logout by closing your application. You need to do two things, first you need to define to which URL you will be forwarded after logging you


After this you can close your application, which will terminate the session and forward you to the page you defined with setLogoutUrl


Thanks for quick Replay it works :slight_smile:

How to get instance of application from CustomComponent?