RE: ActionErrors and ActionMessages not included in the result generated by org.apache.struts2.json.JSONResult

2010-11-22 Thread Alfredo Manuel Osorio Martinez
I found out looking at the code that in order that properties of superclass get included in the json output you need to set ignoreHierarchy param to false: false Alfredo Osorio -Mensaje original- De: Alfredo

Re: [DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor

2008-04-03 Thread Al Sutton
m: "Chris Pratt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, April 03, 2008 4:42 PM Subject: Re: [DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor On Thu, Apr 3, 2008 at 1:03 AM, Al Sutton <[EMAIL PROTECTED]> wrote: Chris,

Re: [DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor

2008-04-03 Thread Chris Pratt
On Thu, Apr 3, 2008 at 1:03 AM, Al Sutton <[EMAIL PROTECTED]> wrote: > Chris, > > I'm familiar with the code, but the main problem is that there is a "paper > wall" between the StoreInterceptor and the jsp tags, so that one does not > know or rely on how the other works. > > As far as I'm aware t

[DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor

2008-04-03 Thread Al Sutton
truts Users Mailing List" Sent: Thursday, April 03, 2008 7:31 AM Subject: Re: Actionerrors & the Store Interceptor On Wed, Apr 2, 2008 at 11:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote: Chris, I've used the StoreInterceptor and my opinion is that it just isn't flexibl

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
On Wed, Apr 2, 2008 at 11:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > Chris, > > I've used the StoreInterceptor and my opinion is that it just isn't > flexible enough to use. > > To illustrate the point, consider try following; > > 1) You have a View Action which displays all of the data of a

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Al Sutton
ROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, April 02, 2008 10:55 PM Subject: Re: Actionerrors & the Store Interceptor Sorry Lucas, I'm still not seeing how that will help differentiate between which result's need the messages collected and which don

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
Sorry Lucas, I'm still not seeing how that will help differentiate between which result's need the messages collected and which don't? And I have to agree with Laurie, that I don't understand the difference between the store interceptor and what you're proposing. (*Chris*) On Wed, Apr 2, 2008 a

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Lukasz Lenart
> Umm, that's what the Store Interceptor is. Not exactly, you have to specify for which action store the messages, and for which retrieve them back. There is no magic, everything hand coded ;-) Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
Thanks Laurie, any ideas on the original problem? (*Chris*) On Wed, Apr 2, 2008 at 2:19 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Lukasz Lenart wrote: > > > Hi, > > > > I think the best solution is to develop two Interceptors, one will run > > after action invocation and will store messages

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Laurie Harper
Lukasz Lenart wrote: Hi, I think the best solution is to develop two Interceptors, one will run after action invocation and will store messages in session or some other objects from given request key. And second one, which will be run before action invocation, that will retrieve such stored mess

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Lukasz Lenart
Hi, I think the best solution is to develop two Interceptors, one will run after action invocation and will store messages in session or some other objects from given request key. And second one, which will be run before action invocation, that will retrieve such stored messages from session and p

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Okay that actually works , I had some problem else where that resulted in what I saw. So the solution to my original problem works if anybody needs it. On Jan 11, 2008, at 4:06 PM, Mufaddal Khumri wrote: Apparently thats not working any pointers as to how i could get my errors out manually

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Apparently thats not working any pointers as to how i could get my errors out manually: In my action I am doing: this.addFieldError("email", "Please enter the email address.") and on my ftl: fieldErrors['key']?if_exists This is not working out , what am I missing. On Jan 11, 2008, at 3:38

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Anyone who needs it: You can access ${fieldErrors['your-field-name']} -Mufaddal. On Jan 11, 2008, at 2:53 PM, Mufaddal Khumri wrote: I am using ftl templates for the view and want to have access to the collection that has all the error messages in the view. (<@s.actionerror/> just lists all

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Madhav Bhargava
quot; validate="true"> > > > > > > > > > > In the jsp i specified as before . > > Please tel me if there is any error in my code. > > > > David Friedman wrote: > > Can you post a code snipper for your ActionForm? Do you invoked the > > f

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Medicherla Lakshmi
ookupForm" validate="true"> > > > > > > > > > > In the jsp i specified as before . > > Please tel me if there is any error in my code. > > > > David Friedman wrote: > > Can you post a code snipper for your ActionForm? Do you invoked t

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Madhav Bhargava
y in your Action or do you have the mapping set > with validate="true" ? > > Regards, > David > > -Original Message- > From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 21, 2006 12:19 AM > To: Struts Users Mailing List >

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Medicherla Lakshmi
; > David Friedman wrote: > Can you post a code snipper for your ActionForm? Do you invoked the > form's > validate() method directly in your Action or do you have the mapping set > with validate="true" ? > > Regards, > David > > -Original Message- >

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Madhav Bhargava
the mapping set with validate="true" ? Regards, David -Original Message- From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 12:19 AM To: Struts Users Mailing List Subject: Re: ActionErrors not being displayed in jsp Hi, Am not using validator.xml for v

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
Can you post a code snipper for your ActionForm? Do you invoked the form's validate() method directly in your Action or do you have the mapping set with validate="true" ? Regards, David -Original Message- From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 2

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread David Friedman
, June 21, 2006 12:19 AM To: Struts Users Mailing List Subject: Re: ActionErrors not being displayed in jsp Hi, Am not using validator.xml for validation. But just the Actionform validate method to validate the username and password submitted without values. I tried to use even ActionMess

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
Hi, Am not using validator.xml for validation. But just the Actionform validate method to validate the username and password submitted without values. I tried to use even ActionMessage in place of ActionError, but, my jsp is not showing the error message. Please Help. Thank an

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Pankaj Gupta
Use ActionMessages in place of ActionErrors. See: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 regards, Pankaj [EMAIL PROTECTED] wrote: Hi, public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { Act

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread mansooraks
Hi, public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { ActionErrors errors = new ActionErrors(); if ((username == null) || (username.length() == 0)) { errors.add("username", ne

Re: ActionErrors and ActionMessages

2005-12-05 Thread Laurie Harper
burnayev wrote: I'm trying to validate a sign in form with 2 fileds: email and password. I'm using standard "required" and "email" validators to check the validity of the email. As far as I can tell from the debugger output all the errors are added under org.apache.struts.action.ERROR key like

Re: ActionErrors and ActionMessages struts 1.2.4 confusion

2004-09-21 Thread Muhammad Momin Rashid
Thanks, that certainly seems helpful, I'll try to follow the guidlines given in the URL you've provided. Hopefully that is enough information I will need to end the initial confusion. I'll bug you guys again if I get stuck again. Once again thanks for your help. Regards, Muhammad Momin Rashi

Re: ActionErrors and ActionMessages struts 1.2.4 confusion

2004-09-21 Thread Matt Bathje
Muhammad Momin Rashid wrote: Hello All, I have recently migrated our application from struts 1.1 to 1.2.4. There is some confusion in my mind over use of ActionErrors and ActionMessages. 1. Since ActionError is depricated, I have changed ActionError to ActionMessage in my code as recommended.

RE: ActionErrors and ActionMessages struts 1.2.4 confusion

2004-09-21 Thread Allistair Crossley
i use for ActionMessages saved with saveErrors(request, actionMessages). ADC > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Muhammad > Momin Rashid > Sent: 21 September 2004 14:45 > To: [EMAIL PROTECTED] > Subject: ActionErrors and ActionMessages struts 1.2.4 con

Re: ActionErrors

2004-09-16 Thread Richard Tuquet Laburre
[EMAIL PROTECTED]> Sent: Thursday, September 16, 2004 5:35 PM Subject: Re: ActionErrors On Thu, 16 Sep 2004 12:25:26 -0400, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: But the one and only method of ActionErrors, add, is deprecated. And so is ActionErrors.GLOBAL_ERROR.

Re: ActionErrors

2004-09-16 Thread Niall Pemberton
ds using a deprecated object isn't on. Hence the decission to not deprecate it. Niall - Original Message - From: "Pavel Kolesnikov" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, September 16, 2004 5:35 PM Subject:

Re: ActionErrors

2004-09-16 Thread Pavel Kolesnikov
On Thu, 16 Sep 2004 12:25:26 -0400, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > But the one and only method of ActionErrors, add, is deprecated. And so is > ActionErrors.GLOBAL_ERROR. > > I thought we were supposed to not use ActionError or ActionErrors, instead > handle error messages with A

RE: ActionErrors

2004-09-16 Thread Slattery, Tim - BLS
> According to the Javadoc ActionErrors is not deprecated, > ActionError is (you should use ActionMessage instead, > deprecated since 1.2.0) But the one and only method of ActionErrors, add, is deprecated. And so is ActionErrors.GLOBAL_ERROR. I thought we were supposed to not use ActionError or

RE: ActionErrors

2004-09-16 Thread Leung, Albert
which means html:errors is not? -Original Message- From: Pavel Kolesnikov [mailto:[EMAIL PROTECTED] Sent: Thursday, September 16, 2004 12:15 PM To: Struts Users Mailing List Subject: Re: ActionErrors On Thu, 16 Sep 2004 11:58:17 -0400, Leung, Albert <[EMAIL PROTECTED]> wrote:

Re: ActionErrors

2004-09-16 Thread Pavel Kolesnikov
On Thu, 16 Sep 2004 11:58:17 -0400, Leung, Albert <[EMAIL PROTECTED]> wrote: > Does anybody know what to do with ActionErrors now that it is deprecated? > I want to be able to list the errors in the same as way with the html:errors According to the Javadoc ActionErrors is not deprecated, ActionErr

RE: ActionErrors

2004-09-16 Thread Durham David R Jr Contr 805 CSPTS/SCE
> Does anybody know what to do with ActionErrors now that it is deprecated? I > want to be able to list the errors in the same as way with the html:errors > tag. Someone correct me if I'm wrong, but you can still use the "addErrors" method within your action, but you pass it an ActionMessages obje

Re: ActionErrors and ActionMessages

2004-07-25 Thread jthompson
Please excuse the question - turns out I'm using Struts 1.1 Regards, John [EMAIL PROTECTED] Ph (09) 372-5010 |-+> | | [EMAIL PROTECTED]| | | o.nz | | || | |

RE: ActionErrors and the example code

2004-05-20 Thread christopher
m: "Matthias Wessendorf" <[EMAIL PROTECTED]> Date: Thu, 20 May 2004 16:32:52 +0200 Subject: RE: ActionErrors and the example code hi christopher, if i understand you right, you watch RegistrationForm.java note, that this class extends ValidatorForm and not ActionForm. ActionForm.validat

RE: ActionErrors and the example code

2004-05-20 Thread Matthias Wessendorf
hi christopher, if i understand you right, you watch RegistrationForm.java note, that this class extends ValidatorForm and not ActionForm. ActionForm.validate() returns NULL ValiForn.validate() returns an ActionErros-Objekt (see CVS-code): http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/sh

Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-23 Thread Niall Pemberton
- From: "bOOyah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 23, 2004 12:49 PM Subject: Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL? > Niall Pemberton wrote: > > > It should be > > > > > >

Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-23 Thread bOOyah
Takhar, Sandeep wrote: Craig McLanahan wrote something about this recently. I may be wrong since I haven't done this, but you may need '' quotes around the property since there are '.'s in it. No Sandeep, wrapping single quotes around the property didn't seem to make any difference. Not even wr

Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-23 Thread bOOyah
Niall Pemberton wrote: It should be .. or even Sorry for the delay in replying Niall...my wife MADE ME down tools for a day. Yes, indeed both your suggestions work perfectly. I'm using the 2nd one. Am I right then in guessing that would display

RE: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-22 Thread Takhar, Sandeep
y, April 21, 2004 8:52 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL? It should be .. or even - Original Message - From: "bOOyah" <[EMAIL PROTECTED]&g

Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-21 Thread Niall Pemberton
It should be .. or even - Original Message - From: "bOOyah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 22, 2004 1:31 AM Subject: ActionErrors in my JSP: how can I rewrite this RT snippet as EL? > Hi > > I'm displaying valida