Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/8/06, Adam Samere <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > On 6/7/06, Adam Samere <[EMAIL PROTECTED]> wrote: >> This works fine if you handle it in the manner you described previously, >> but does not account for any messages added by the framework, other >> developers, etc. and f

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
Niall Pemberton wrote: On 6/7/06, Adam Samere <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote: >> At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >> >In my actions I have messages stored in the session either under >> >ActionMessages.GLOBAL_M

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/7/06, Adam Samere <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote: >> At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >> >In my actions I have messages stored in the session either under >> >ActionMessages.GLOBAL_MESSAGE, or my own key (e

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/8/06, Joe Germuska <[EMAIL PROTECTED]> wrote: >AFAIK there is no actual processing related to >ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute >just adds confusion with global="true" being an alias for >property="org.apache.struts.action.GLOBAL_MESSAGE". Better for peopl

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
AFAIK there is no actual processing related to ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute just adds confusion with global="true" being an alias for property="org.apache.struts.action.GLOBAL_MESSAGE". Better for people to just use their own simpler property names to achiev

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
On 6/7/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: The first approach seems more logical to me. After all, the first parameter in ActionMessages.add() is supposed to be a property name. Hmmm that changes my perspective a little. Thanks for the comments Michael. Chris ---

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
I like the second approach better as it means I only have to keep track of one message collection in each individual action. It just means that I don't use the GLOBAL_MESSAGE constant, but I think I can live with that. Thanks Niall :) Chris On 6/7/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Michael Jouravlev
On 6/7/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 6/7/06, Chris Cheshire <[EMAIL PROTECTED]> wrote: > In my actions I have messages stored in the session either under > ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). > > In my jsp I have a section to display the search specific

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
Niall Pemberton wrote: On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote: At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >In my actions I have messages stored in the session either under >ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). > >In my jsp I have a section to display the se

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread George.Dinwiddie
Scott Van Wart moaned > Wish Eclipse had a Search/Replace in Files... Search | File... | Replace... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote: At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >In my actions I have messages stored in the session either under >ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). > >In my jsp I have a section to display the search specific messages.

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart
Scott Van Wart wrote: Wish Eclipse had a Search/Replace in Files... Wait, it does. Again, I didn't look hard enough. - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart
Joe Germuska wrote: 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

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
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 Ac

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/7/06, Chris Cheshire <[EMAIL PROTECTED]> wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search specific messages. I also need to display the global messages

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
e; Struts Users Mailing List Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a sect

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart
Joe Germuska wrote: technically, you would use property="org.apache.struts.action.GLOBAL_MESSAGE"> It has been observed that this is kind of cumbersome. A nice enhancement (that just about any willing volunteer could do, hint hint :-) ) would be to enhance the logic:messagesPresent,

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
le keeping scriptlet expressions out of your page! Joe -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 3:55 PM To: Chris Cheshire; Struts Users Mailing List Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only At 12:47 PM -0

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
t: Wednesday, June 07, 2006 3:55 PM To: Chris Cheshire; Struts Users Mailing List Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >In my actions I have messages stored in the session either under >ActionMessages.GLOBAL_MESSAGE

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Samere, Adam J
re; Struts Users Mailing List Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >In my actions I have messages stored in the session either under >ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). > &

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search specific messages. I also need to display the global messages at t

displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search specific messages. I also need to display the global messages at the top of the page, however this displays everyth