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
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,
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
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
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
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
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
> 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
-
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
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
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
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
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
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
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
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
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
>
;
> 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-
>
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
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
, 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
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
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
Hi,
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
ActionErrors errors = new ActionErrors();
if ((username == null) || (username.length() == 0)) {
errors.add("username", ne
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
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
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.
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
[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.
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:
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
> 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
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:
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
> 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
Please excuse the question - turns out I'm using Struts 1.1
Regards,
John
[EMAIL PROTECTED]
Ph (09) 372-5010
|-+>
| | [EMAIL PROTECTED]|
| | o.nz |
| ||
| |
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
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
-
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
> >
> >
> >
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
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
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
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
43 matches
Mail list logo