I use struts 1.1b.  Single quote works!
Escaping the double quote works as well.  Thanks all for your tips.

<bean:message key="<%= (String)request.getAttribute(\"status\") %>" />

- boon

-----Original Message-----
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:55 AM
To: [EMAIL PROTECTED]
Subject: Re: dynamic bean message


Subject: Re: dynamic bean message
From: "Morten Raahede Knudsen" <[EMAIL PROTECTED]>
 ===
Hi

I had the exact same problem as you had. I came up with a solution which
isn't pretty, but it works.

<bean:message key='<%= (String)pageContext.getAttribute("_PARAM",
PageContext.REQUEST_SCOPE) %>' />

I think its a flaw that the bean:message doesn't support attributes in
scopes.

Regards

Morten Raahede Knudsen





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to