I have two problems. The first one is that I'm using JSP and that I can't solve. The second one is that I'm getting an odd behavior.
When I put this in the doGet() method of my servlet
req.setAttribute("test", "SARASA");
req.getRequestDispatcher("WEB-INF/main.jsp").forward(req, resp);
And this in "WEB-INF/main.jsp":
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%= request.getAttribute("test") %>
<c:out value="${test}"/>
The output is:
SARASA ${test}
I don't know what I'm doing wrong... what can be the reason for this?
Update: I solved it adding
<%@ page isELIgnored="false" %>
In each JSP where I needed it. Oddly, I didn't needed that in another project using some very similar web.xml and pom.xml files (I'm using maven).