Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts and request.getAttribute()

843836Mar 31 2004 — edited Mar 31 2004
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2004
Added on Mar 31 2004
7 comments
1,011 views