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
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
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
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
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
[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
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
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
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
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]
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]
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
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
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:
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
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
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').
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
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
19 matches
Mail list logo