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. logic:messagesPresent message=true property=search /logic:messagesPresent I also need to display

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. logic:messagesPresent message=true property=search

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Samere, Adam J
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 -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
is for. -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 -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

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

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
[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 -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under

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. logic:messagesPresent message=true property=search

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

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 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 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 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 search

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 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 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 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 people to just

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 (eg 'search').

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_MESSAGE, or

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 forces