does anyone know whether the Action static final variables would then get
deprecated in 1.1 or 1.2?

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


... which should be revised to:  org.apache.struts.Globals.MESSAGE_KEY 
or org.apache.struts.Globals.MESSAGES_KEY  (I haven't looked to know for 
certain what is stored under which, but I bet you're after one of these)

I understand the constants living in o.a.s.a.Action will be deprecated 
eventually ...

Taylor, Jason wrote:

>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("use
r
>.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?
>

-- 
Eddie Bush




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

Reply via email to