According to source code, the attribute in the distribution I use is
"org.apache.struts.action.ACTION_MESSAGE", though it seems a bit odd to use
the syntax you're using.  

Why not do 
        userInfo =
((MessageResources)request.getAttribute(Action.MESSAGE_KEY).getMessage("user
.info.message");

to reap the benefits of encapsulation and compile-time checking of your
attribute name or 
        userInfo = getResources(request).getMessage("user.info.message");

if you happen to be within an Action class already?

-----Original Message-----
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 11:28 AM
To: Struts Users Mailing List
Subject: message code not working 


can anyone tell me what is wrong with this code in my jsp?  other than the
fact that i am not using a tag ;-)

userInfo =
((MessageResources)request.getAttribute("org.apache.struts.action.MESSAGE"))
.getMessage("user.info.message");

my jsp is not loading properly.  the text gets cut off some somewhere in the
page, making me think that this statement is sending some strange
chanracters along....

thanks,
mark

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

Reply via email to