hi...I am using struts2 to create an application and using JSP for the view. Now i have created a welcome page on which there is a login link. Whenever user clicks that link, a login form appears after filling the right credentials user can log into application and the welcome page gets opened again.
Now, i want when the user logs in, instead of login link, logout link should appear and user name gets displayed on login page. When the user logs out the session variables must get cleared and again the login link must appear and user name should get disappeared.
What should i use to do this? Thanks in advance for the help.