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?