Is ActionMessages.GLOBAL_MESSAGE going to be deprecated? I use org.apache.struts.Globals.MESSAGE_KEY instead.

No!

Read the javadoc -- that constant is not used for the purpose of locating messages added to an ActionMessages object with no defined property. Instead, it's used to locate an ActionMessages object in request or session scope whose contents are of "message" priority for user display (as opposed to errors, warnings, or any other arbitrary grouping.)

http://struts.apache.org/struts-action/struts-core/apidocs/org/apache/struts/Globals.html#MESSAGE_KEY

At 5:32 PM -0400 6/7/06, Adam Samere wrote:
I agree that scriptlets are undesirable, but IMHO when compared with the consequences of having to track down and modify the key in every page that referenced it directly it's the lesser of two evils.

So the goal of the new attribute on the tags would be to display/test for only messages stored under the globals key? Which takes precedence then, name/property or global?

good question. I'd probably give "global" precedence, but really, as long as it's documented, I don't think it matters. There's also the matter of describing what [globals="false"] means -- I'd ignore it, but some might argue that it should throw an exception, or might argue that the mere question suggests that a different syntax is in order.

me, I just think someone who's been thinking about trying to contribute to Struts ought to take this one and run with it :-)

Joe




Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com
"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
        -- Robert Moog

Reply via email to