Re: How to retrieve all action messages in java code

2010-04-11 Thread dusty
When you are talking about action messages it is not a hash map with a key. It is a simple Collection. ActionSupport has a method getActionMessages() that returns this string collection. Field errors are a different matter. These come through as a Map>. You get that map thro

How to retrieve all action messages in java code

2010-04-09 Thread Emi Lu
Good afternoon, I'd like to know (1) how to get all action messages in java code (2) How to remove some action message from ActionMessages Something like (1) returns ActionMessage("key1") ActionMessage("key2") ... ActionMessage("keyN") (2) removes ke

RE: Preserving Action Messages during redirect action

2009-02-27 Thread Sundararaman, Anand
Thanks Felipe, This was quick. I will incorporate the Interceptor and check it out. Thanks, Anand -Original Message- From: Felipe Fraga [mailto:felipefr...@gmail.com] Sent: Friday, February 27, 2009 10:17 AM To: Struts Users Mailing List Subject: Re: Preserving Action Messages

Re: Preserving Action Messages during redirect action

2009-02-27 Thread Felipe Fraga
Glindholm solved this with an interceptor. http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ Best regards, Felipe On Fri, Feb 27, 2009 at 1:12 PM, Sundararaman, Anand wrote: > Hi, >   I want to redirect to another action but preserve the

Re: Preserving Action Messages during redirect action

2009-02-27 Thread SanJ.SANJAY
Please use a new thread for this issue. The problem addressed here is totally diffirent from yours. Sundararaman, Anand wrote: > > Hi, >I want to redirect to another action but preserve the action > messages/errors from the previous action. Is there any standard way to &g

Preserving Action Messages during redirect action

2009-02-27 Thread Sundararaman, Anand
Hi, I want to redirect to another action but preserve the action messages/errors from the previous action. Is there any standard way to achieve this functionality in Struts 2? Or do I have to write an Interceptor for this? I have a use case where the errors on a web screen needs to be shown

RE: Scope of action messages?

2008-04-01 Thread Allen, Daniel
Oh. Yeah, that one looks a lot more immediately applicable. :) Thanks! ~DVA -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 2:45 PM To: Struts Users Mailing List Subject: Re: Scope of action messages? None if you use the store interceptor

Re: Scope of action messages?

2008-04-01 Thread Chris Pratt
gt; make action errors & messages hang around until the corresponding > tag is rendered? > > > > > -Original Message- > From: Chris Pratt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 01, 2008 1:58 PM > To: Struts Users Mailing List > Subject: Re: Sc

RE: Scope of action messages?

2008-04-01 Thread Allen, Daniel
uts Users Mailing List Subject: Re: Scope of action messages? actionmessages, actionerrors and fielderrors are all request scope, so they'll be gone by the time the redirect comes back around. You might want to look into the scope interceptor, it can help bridge the gap. (*Chris*) -- Th

Re: Scope of action messages?

2008-04-01 Thread Chris Pratt
r the user creation is an > action-redirect, so by the time we get to the JSP that shows action > messages, another whole action has executed. Do action messages have a > limited scope, i.e. are they being lost because we started a new action? > > Thanks, > Dan Allen >

Scope of action messages?

2008-04-01 Thread Allen, Daniel
so by the time we get to the JSP that shows action messages, another whole action has executed. Do action messages have a limited scope, i.e. are they being lost because we started a new action? Thanks, Dan Allen -- This message may contain confidential, proprietary, or legally privileged

Re: struts + springs + action messages issue

2008-03-10 Thread Dave Newton
--- Sivaswamynatha K <[EMAIL PROTECTED]> wrote: > We are using struts 1.2.9 and springs. I have one issue. Action messages > (some error message and information to the user) of one user is > available to another user who is also working on the application. He may > do some oth

struts + springs + action messages issue

2008-03-10 Thread Sivaswamynatha K
Hi, We are using struts 1.2.9 and springs. I have one issue. Action messages (some error message and information to the user) of one user is available to another user who is also working on the application. He may do some other action. Regards, Siva Regards, K. Siva Swamynatha

Re: struts 2 action messages / action errors

2007-10-24 Thread Jim Cushing
Struts 2 allows you to style them, but using themes. Themes are both more powerful and more complicated than what Struts 1 offered. Before you dive into customizing a theme, see if you can style it entirely with CSS. You're best better is probably to "View source" in your browser to see the

struts 2 action messages / action errors

2007-10-24 Thread Brian Relph
Does struts2 handle the css-styling of action errors and messages the same as struts1? In struts 1, i defined some keys in the message bundle errors.prefix and errors.suffix that were automatically used to style the html generated by the actionerrors. Is this enabled in struts2? Thanks, Brian

Re: Query in action messages

2006-11-15 Thread Hanmay Udgiri
.. eg:- errors.add(Error_FIELD_KEY,new ActionMessage(" error.required",getResources(request).getMessage("error.zipcode")); Regards, Nuwan - Original Message - From: "Hanmay Udgiri" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 15, 2006 8:25 AM Su

RE: Query in action messages

2006-11-15 Thread Anil Kumar T
I was wrong... ignore my earlier mail.. Thanks. Anil. -Original Message- From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 1:56 PM To: user@struts.apache.org Subject: Query in action messages Hi I am doing validation in my Action Form which is extending

RE: Query in action messages

2006-11-15 Thread Anil Kumar T
you... Anil. -Original Message- From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 1:56 PM To: user@struts.apache.org Subject: Query in action messages Hi I am doing validation in my Action Form which is extending ValidatorActionForm. In validate method,I am

RE: Query in action messages

2006-11-15 Thread Mano Chinthaka Dasanayaka
dgiri [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 1:56 PM To: user@struts.apache.org Subject: Query in action messages Hi I am doing validation in my Action Form which is extending ValidatorActionForm. In validate method,I am checking for mandatory field

Re: Query in action messages

2006-11-15 Thread Nuwan Chandrasoma
); Regards, Nuwan - Original Message - From: "Hanmay Udgiri" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 15, 2006 8:25 AM Subject: Query in action messages Hi I am doing validation in my Action Form which is extending ValidatorActionForm. In validate method,I

Re: Query in action messages

2006-11-15 Thread Nuwan Chandrasoma
Udgiri" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 15, 2006 8:25 AM Subject: Query in action messages Hi I am doing validation in my Action Form which is extending ValidatorActionForm. In validate method,I am checking for mandatory field and adding error. The error in Applicat

Query in action messages

2006-11-15 Thread Hanmay Udgiri
Hi I am doing validation in my Action Form which is extending ValidatorActionForm. In validate method,I am checking for mandatory field and adding error. The error in ApplicationResources.properties is like this. error.required=The {0) field is required field. error.notInRange=The {0} field should

Query in Action messages

2006-11-14 Thread Hanmay Udgiri
Hi I am doing validation in my Action Form which is extending ValidatorActionForm. In validate method,I am checking for mandatory field and adding error. The error in ApplicationResources.properties is like this. error.required=The {0) field is required field. error.notInRange=The {0} field should

not able to populate action messages; corrosponding entries made in web.xml and struts-config.xml

2005-10-14 Thread varun ahluwalia
Following is the piece of code i am using to populate action message. ActionMessages msgs = new ActionMessages(); msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(" error.notValidConfName")); saveMessages(request, msgs); I am not able to get the message for the key "error.notValidConfNam

Re: Related to Action Messages

2005-09-13 Thread Laurie Harper
Anuradha S.Athreya wrote: I have about 5 messages which will be passed on from my Action -> View (JSP) using ActionMessage. But at any time only one of these five messages will be displayed in the View. To accommodate every message in the JSP, Do I have to include this piece of code repeatedly .

Related to Action Messages

2005-09-12 Thread Anuradha S.Athreya
> I have about 5 messages which will be passed on from my Action -> View > (JSP) using ActionMessage. But at any time only one of these five messages > will be displayed in the View. > > To accommodate every message in the JSP, Do I have to include this piece > of code repeatedly . > property="<

Re: Action Messages

2005-05-28 Thread Dakota Jack
Hi, Ray, Why is what you are doing superior to the standard? The standard is something like the following and is very efficient, I think?

Re: Action Messages

2005-05-28 Thread Adam Hardy
Ray, it's not clear what you are trying to do that is different from standard. Struts puts the ActionErrors in the request by default. The Messages too. I used to know this inside out but it's been a year or so... but I think the key is like this: request.getAttribute(org.apache.struts.Glob

Action Messages

2005-05-27 Thread Ray Madigan
I am looking for the ability to handle the ActionMessage in a different way in my application. In the validate method of the form I create a new instance of ActionErrors and add ActionMessage instances to it. In the Action dispatch method I call validate and get a non empty ActionErrors instance.

Re: Action messages.

2004-06-03 Thread Frank Zammetti
ling List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: Action messages. Date: Thu, 3 Jun 2004 13:55:11 -0300 Thanks Frank, Do you have any sample code of using ? I think this is also good to avoid 2 submit´s click. Am I rig

Re: Action messages.

2004-06-03 Thread Marcelo Epstein
Thanks Frank, Do you have any sample code of using ? I think this is also good to avoid 2 submit´s click. Am I right? - Original Message - From: "Frank Zammetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 03, 2004 11:57 AM Subjec

RE: Action messages.

2004-06-03 Thread Frank Zammetti
. Obviously, if faking it is good enough, as it usually is in these cases, that's by far the better choice. Frank From: "Marcelo Epstein" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" &

Action messages.

2004-06-03 Thread Marcelo Epstein
Hi, I have a Action that takes 10s to execute. Is there any way to display messages in the browser during execution? Thx, Marcelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]