Hello guys.. I'm a newbie to Struts2.and now i'm creating a small application by using it.
In this, i want to add username into session whenever i do login. and whenever i click logout link i need to destroy the username in session.
so that i will check whether the session is containing username or not and after that i will provide authorization to view the pages.
My question is ..
how to set username in session ?
how to access it in jsp page..?
and how to remove it .?
please explain it with corresponding syntax...