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