You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Bridge <mi...@bridgecanada.com> on 2001/09/04 05:23:10 UTC
request.setAttribute() can be retrieved in bean:message?
Should I be able to retrieve a string that has been set by
request.setAttribute from within a <bean:message/>?
For example, in an Action I have:
request.setAttribute("registeredemail",email);
return mapping.findForward("waitforconfirm");
in the jsp that the waitforconfirm points to, this works fine:
Your email was: <%= request.getAttribute("registeredemail") %>
However, the following tells me that "registeredemail" doesn't work:
<bean:message key="your.email.was" arg0="<%= request.getAttribute("registeredemail") %>" />
Is this the correct way to do this, or do I need to write this
another way?
Thanks,
-Mike
--
Mike Bridge
<mi...@bridgecanada.com>