I have a servlet, and I want to print some data from the servlet with a JSP file, and I have to use compulsory the Expression Language.
I have this code in the servlet:
String saludo="hi";
req.setAttribute("exito",saludo);
And I have this in my JSP file:
${exito}
And I also tried with this:
${requestScope.exito}
But when I try to see it with my browser (Google Chrome), instead of seeing hi
, I see
${exito}
What am I doing wrong?