title: Checking a session value in Struts 2 web application
body: <p>I am creating a web application using Struts 2. I have a login page in it. As the user click the login button after entering the username and password, the credentials are checked and if the credentials are found correct, then a session is created and its attributes are set and control is redirected to WELCOME JSP. </p>
  
  <p>Now before the <code>welcome.jsp</code> is opened, I want to check, if the session attributes are set. How to do it in Struts 2?</p>
  
  <p>Can anyone clear me the concept of interceptors. I read that we create interceptors to perform any function before or after an action is called. Can I create an interceptor that checks if the session is set, every time before WELCOME JSP is called. </p>