Struts and request.setAttribute
843835Jun 29 2002 — edited Jun 29 2002Hi,
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