title: JSP - Can't retrive data from an attribute. (request.setAttribute)
body: <p>Redirecting to login.php action if <code>role!='user'</code>. Redirection works good, but the content of <code>msg</code> attribute is not displayed.
  Code for index page:</p>
  
  <pre><code>&lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
      &lt;c:if test="${sessionScope.role ne 'user'}"&gt;
      &lt;%
          request.setAttribute("msg", "Please Login to select Theme");
          response.sendRedirect("login.php");
      %&gt;
   &lt;/c:if&gt;
  </code></pre>
  
  <p>Code for login page:</p>
  
  <pre><code>&lt;h1&gt;${requestScope.msg}&lt;/h1&gt;
  </code></pre>
  
  <p><em>Kindly help on this.</em></p>