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.setAttribute

843835Jun 29 2002 — edited Jun 29 2002
Hi,

I have the following in an Action class:

req.setAttribute("action", action);

Which struts tag can retrieve the value of the "action" attribute?

I tried "<bean:parameter id="anAction" name="action" />" but it only seems to work with request parameters (not request attributes). So far, I have to use the following scriplet in my JSP page to retrieve the value but I want to avoid that:

String anAction = (String)request.getAttribute("action");

Thanks.

Christian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2002
Added on Jun 29 2002
1 comment
357 views