I'm facing the following problem, I'm doing the following redirect:
response.sendRedirect("../../index.jsp?NA=1");
Where the url looks like this:
http://localhost:9095/Controle_de_Materiais/index.jsp?NA=1
But when I try to get the attribute, it only gives null:
<%
Object obj = request.getAttribute("NA");
System.out.println("Atributo == " + obj);
if( obj != null){
if(Integer.parseInt(obj.toString()) == 1){
out.println("<p style='float: right;' class='text-danger'><i class='glyphicon glyphicon-asterisk'></i> Credênciais Inválidas!");
}
}
%>
Could anyone help me please? Thank you!