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 CollectionString. ActionSupport has a method getActionMessages() that returns this string collection. Field errors are a different matter. These come through as a MapString, ListString. You get

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 key1...key9 Thanks a lot! -- Lu Ying

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: 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 achieve

Re: Preserving Action Messages during redirect action

2009-02-27 Thread Felipe Fraga
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 on a different screen to which I want

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

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: Scope of action messages?

2008-04-01 Thread Chris Pratt
-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 -- This message may contain confidential, proprietary, or legally

RE: Scope of action messages?

2008-04-01 Thread Allen, Daniel
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*) -- This message

Re: Scope of action messages?

2008-04-01 Thread Chris Pratt
hang around until the corresponding s:action___/ 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: Scope of action messages? actionmessages, actionerrors

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

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 + 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 other action. What's

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

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

Re: Query in action messages

2006-11-15 Thread Nuwan Chandrasoma
] To: user@struts.apache.org 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 ApplicationResources.properties

Re: Query in action messages

2006-11-15 Thread Nuwan Chandrasoma
- Original Message - From: Hanmay Udgiri [EMAIL PROTECTED] To: user@struts.apache.org 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

RE: Query in action messages

2006-11-15 Thread Mano Chinthaka Dasanayaka
: 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 and adding error. The error in ApplicationResources.properties

RE: Query in action messages

2006-11-15 Thread Anil Kumar T
: 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 checking for mandatory field and adding error

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 Hanmay Udgiri
:- errors.add(Error_FIELD_KEY,new ActionMessage( error.required,getResources(request).getMessage(error.zipcode)); Regards, Nuwan - Original Message - From: Hanmay Udgiri [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, November 15, 2006 8:25 AM Subject: Query in action messages

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

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.notValidConfName,

Related to Action Messages

2005-09-13 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 . html:messages

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 .

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:

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? table tr td !-- ERRORS -- logic:messagesPresent ul html:messages

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

RE: Action messages.

2004-06-03 Thread Frank Zammetti
, 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 [EMAIL PROTECTED] Subject: Action messages. Date: Thu, 3 Jun 2004 11:46:44 -0300 Hi, I have a Action

Re: Action messages.

2004-06-03 Thread Marcelo Epstein
Thanks Frank, Do you have any sample code of using SPAN ? 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 Subject: RE: Action messages

Re: Action messages.

2004-06-03 Thread Frank Zammetti
[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 SPAN ? I think this is also good to avoid 2 submit´s click. Am I right? - Original Message - From