1

I set a request attribute in my action class as follows:

request.setAttribute("xFg", Boolean.TRUE);

I want to retrive this in my JSP. I want to retrive them using JSTL tags. I tried this :

<c:if test="${requestScope.xFg}">
    <c:set var="showlist" value="true" />
</c:if>

But c:if didnt work, I mean it didn't go to c:set. I tried to print the same using c:out but nothing got displayed. What is wrong or how should I test request attribute value? I haven't used requestScope so far. Is requestScope the option to get the request value?

Geek
  • 3,187
  • 15
  • 70
  • 115

1 Answers1

0

Make sure to activate EL evaluation in your JSP page by specifying the attribute isELIgnored=”false” in the page directive as follows:

<%@ page isELIgnored="false" %>
Majd Odeh
  • 1
  • 2