You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ganesh g <ga...@yahoo.com> on 2004/04/29 06:19:32 UTC
Getting Dynamic Messages Struts
Hi List!
how r u?
I want a solution in struts1.1
i want to display a message in such a way that it should be Dynamic.
i mean when a particular action is completed(create employee,upload
successful,...some server tasks..),a screen with a relevant message should
be popup.
i did it in global forwards.But it is the common message to success
"your request successfully completed" or "your request failed please
retry".
so i don't want like that.i want generic and dynamic.
Is there any possibility in action errors or any other methods.
Your suggesions are always greatefully received.
awaiting ur reply
Ganesh G
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
Re: Getting Dynamic Messages Struts
Posted by Jonathan Wright <jo...@aboutit.co.nz>.
In the ActionError constructor there is provision for dynamically adding
strings to a message stored in your resource bundle. A typical answer being
'errors.invalid={0} is invalid' where {0} is replaced by the second argument
you pass to you pass to the ActionErrors constructor.
I hope this helps.
Jonathan
----- Original Message -----
From: "ganesh g" <ga...@yahoo.com>
To: "user" <us...@struts.apache.org>
Sent: Thursday, April 29, 2004 4:19 PM
Subject: Getting Dynamic Messages Struts
> Hi List!
> how r u?
> I want a solution in struts1.1
>
> i want to display a message in such a way that it should be Dynamic.
> i mean when a particular action is completed(create employee,upload
> successful,...some server tasks..),a screen with a relevant message should
> be popup.
>
> i did it in global forwards.But it is the common message to success
> "your request successfully completed" or "your request failed please
> retry".
>
> so i don't want like that.i want generic and dynamic.
> Is there any possibility in action errors or any other methods.
>
> Your suggesions are always greatefully received.
>
> awaiting ur reply
> Ganesh G
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org