Struts and request.getAttribute()
843836Mar 31 2004 — edited Mar 31 2004Hi all
in my action class i set the following request attribute. Either
request.setAttribute("allowed", "true"); or request.setAttribute("allowed", "false");
Now i want to receive this attribute in my JSP page. I tried these variants:
<bean:write name= "allowed" /> and <%= request.getAttribute("allowed") %>
which both return the value. But i want to use this attribute in a <logic:equal> tag. This is the way i tried to receive the value:
<logic:equal parameter="allowed" value="true">
But it doesn't work (null is returned). Could somebody please explain me how i can receive this attribute in my logic:equal tag?
Thanks a lot