Use Request Attribute in message tag

2001-11-16 Thread Rooms, Christoph

Hi, 

I'm using Struts 1.0.

I want to put a localized message on the error.jsp. Therefor when I have an
error in my action, I will fill up an attribute in the request with the
locale key. And then use this tag in my error.jsp ...


bean:message key=%=request.getAttribute(errorMessage%)/


But ... It doesn't work ... 

Anyone knows how do this ?

Thanks! 

Christoph Rooms




Rooms, Christoph.vcf
Description: Binary data

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


RE: Use Request Attribute in message tag

2001-11-16 Thread MacKellar, Kimberly

Is it because of the typo?

bean:message key=%=request.getAttribute(errorMessage)%/

Kimberly MacKellar

-Original Message-
From: Rooms, Christoph [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 9:03 AM
To: 'Struts Users Mailing List'
Subject: Use Request Attribute in message tag


Hi, 

I'm using Struts 1.0.

I want to put a localized message on the error.jsp. Therefor when I have an
error in my action, I will fill up an attribute in the request with the
locale key. And then use this tag in my error.jsp ...


bean:message key=%=request.getAttribute(errorMessage%)/


But ... It doesn't work ... 

Anyone knows how do this ?

Thanks! 

Christoph Rooms


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




RE: Use Request Attribute in message tag

2001-11-16 Thread Matt Raible

Or try:

bean:message key=%=request.getAttribute('errorMessage')%/


--- MacKellar, Kimberly [EMAIL PROTECTED] wrote:
 Is it because of the typo?
 
 bean:message key=%=request.getAttribute(errorMessage)%/
 
 Kimberly MacKellar
 
 -Original Message-
 From: Rooms, Christoph [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 9:03 AM
 To: 'Struts Users Mailing List'
 Subject: Use Request Attribute in message tag
 
 
 Hi, 
 
 I'm using Struts 1.0.
 
 I want to put a localized message on the error.jsp. Therefor when I have an
 error in my action, I will fill up an attribute in the request with the
 locale key. And then use this tag in my error.jsp ...
 
 
 bean:message key=%=request.getAttribute(errorMessage%)/
 
 
 But ... It doesn't work ... 
 
 Anyone knows how do this ?
 
 Thanks! 
 
 Christoph Rooms
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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