On Fri, Nov 19, 2010 at 11:43 AM, Greg Lindholm wrote:
> I wrote this to solve the problem of preserving messages across a redirect:
>
> http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/
>
Thanks Greg. That looks like exactly what I was looking for. On
I wrote this to solve the problem of preserving messages across a redirect:
http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/
On Fri, Nov 19, 2010 at 11:36 AM, Greg Akins wrote:
> Thanks for the response
>
> On Fri, Nov 19, 2010 at 11:28 AM, Maurizio C
Thanks for the response
On Fri, Nov 19, 2010 at 11:28 AM, Maurizio Cucchiara
wrote:
> As far I can remember actionError are stored in struts stack, so I guess
> they are per-request.
That's what I thought.
> Also, redirect action create a new request, so you can share AE in a
> standard flow.
As far I can remember actionError are stored in struts stack, so I guess
they are per-request.
Also, redirect action create a new request, so you can share AE in a
standard flow.
Can't you do without redirect for the input result?
2010/11/19 Greg Akins
> I've written an action, with validation,
I've written an action, with validation, that uses a redirectAction
instead of a .jsp for the INPUT result.
When the final INPUT jsp is displayed, the actionErrors aren't
present. I believe this is because the action I'm redirecting to
"clears" the actions before the jsp is displayed. If I save
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
OrganisationFo
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
OrganisationFo
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
Organisati
: user@struts.apache.org
> Subject: Re: Can't obtain object in POJO using AJAX and problem with
> validation
>
> Hi Francisco,
>
> Issue number 2 takes precedence over Issue number 1 as if there's no
> user info available, then validation fails, errors appear
Hi Francisco,
Issue number 2 takes precedence over Issue number 1 as if there's no
user info available, then validation fails, errors appear on every field
and the fields are empty.
Which implies the properties are not being set on your action (you can
verify that).
Which implies Dojo is no
Hi,
I define in my menu.jsp page two . On the left the menu which always
appears. On the right, the part which is updated after every action.
Then I have another jsp with a form, the xml validation file and the POJO.
The action definition is:
/src/jsp/crear/usuarioCrear.jsp
> class="com.intuit.sbfw.action.mc.UserLookupAction">
UserLookupAction-validation.xml is in the same path as class above?
> 2) I see this message when I invoke my very first action: INFO
> [ActionValidatorManagerFactory] Detected AnnotationActionValidatorManager,
> initializing it...
> Does t
HI
I hope that this will help you
http://struts2issues.blogspot.com/
BR,
sanj
-Original Message-
From: Pranav [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 24, 2008 6:32 AM
To: user@struts.apache.org
Subject: Problem with Validation framework
Hi All,
I am having a problem with
Hi All,
I am having a problem with validation framework. This is the first time I am
trying to use struts2 validation. Here's different code pieces that I have.
UserLookupAction-validation.xml
You must enter a value for Memb
Heh, it happens to the best of us. Happy coding.
-Adam
-Original Message-
From: Sebastian Stein [mailto:[EMAIL PROTECTED]
Sent: Sunday, 16 July 2006 10:20
To: Struts Users Mailing List
Subject: Re: Problem with validation rule
Sebastian Stein <[EMAIL PROTECTED]> [060716 11:50]:
Sebastian Stein <[EMAIL PROTECTED]> [060716 11:50]:
> Adam Gordon <[EMAIL PROTECTED]> [060715 09:50]:
> > What happens if you remove the "requireList" dependency and just use "mask?"
>
> It is driving me crazy. I removed the requireList dependency and nothing
> changed. I removed the complete vali
Adam Gordon <[EMAIL PROTECTED]> [060715 09:50]:
> What happens if you remove the "requireList" dependency and just use "mask?"
It is driving me crazy. I removed the requireList dependency and nothing
changed. I removed the complete validation for menuForm from validation.xml
and nothing changed. I
Sebastian-
What happens if you remove the "requireList" dependency and just use "mask?"
-Adam
Sebastian Stein wrote:
Hi,
I have a form, which should also use validation based on a mask. I already
enabled this kind of validation in another form and there it works. So I
guess I just have a type
Hi,
I have a form, which should also use validation based on a mask. I already
enabled this kind of validation in another form and there it works. So I
guess I just have a type or did something wrong during copy&paste. Here is
the form definition in the struts-config.xml:
Hi Laurie,
Thanks for the suggestion!
After digging into the Tomcat console logs, I've finally found out
what the problem is. Seems like my copy of validation-rules.xml was
corrupted. The arguments for the validateRequired method were wrong.
Corrected that and now it works fine :-)
Thanks for th
You probably need your form to be declared as type
org.apache.struts.action.DynaActionForm (rather than DynaValidatorForm).
The difference between their behaviour is a little subtle so it's easy
to get them mixed up. Try changing it and see if it works.
L.
Weng Kong Lee wrote:
Hi all,
I've j
Hi all,
I've just started exploring the use of Struts DynaValidatorForms. I've
tried to set-up a very simple login form with a username and password
fields, where both are required. Here's the relevant details:
1. struts-config.xml
The application message resource bundle has been configured with t
> -Original Message-
> From: aris [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 09, 2004 11:23 AM
> To: Struts Users Mailing List
> Subject: Re: Problem with validation (?)
>
>
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
>
> > F
From: "Derek Broughton" <[EMAIL PROTECTED]>
> On Thursday 09 December 2004 14:28, Wendy Smoak wrote:
> > From: "aris" <[EMAIL PROTECTED]>
> >
> > > > Use String (and occasionally Boolean) for form fields and things
will
> >
> > work
> >
> > > > the way you need them to.
> > >
> > > I don't underst
From: "Wendy Smoak" <[EMAIL PROTECTED]>
> From: "aris" <[EMAIL PROTECTED]>
>
> > > Use String (and occasionally Boolean) for form fields and things will
> work
> > > the way you need them to.
> >
> > I don't understand your answer... If I need an Integer field for my
> > ActionForm derived class w
On Thursday 09 December 2004 19:09, Laconia Data Systems wrote:
> Derek-
> Any conversions (String to Integer or whatever) need to happen in your
> Business Bean layer
Not me... I just replied to a reply. :-)
--
derek
-
To unsub
On Thursday 09 December 2004 18:02, Wendy Smoak wrote:
> From: "Derek Broughton" <[EMAIL PROTECTED]>
>
> > > What happens when somebody types "ABCDE" into your Integer field on the
> > > form, and it fails validation? Can you re-display the incorrect user
>
> input
>
> > > so they can see what the
that about teaching a man to fish?
Hope this helps,
Martin=
- Original Message -
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 5:02 PM
Subject: Re: Problem with validati
Wendy Smoak wrote:
From: "Matt Bathje" <[EMAIL PROTECTED]>
What do you mean by "must be there for a reason"? As far as I know, a
form property can be any class type that you want it to be.
Sorry, I think only in terms of dynamic forms, and there is a list of
allowed field types:
http://struts.apac
From: "Matt Bathje" <[EMAIL PROTECTED]>
> What do you mean by "must be there for a reason"? As far as I know, a
> form property can be any class type that you want it to be.
Sorry, I think only in terms of dynamic forms, and there is a list of
allowed field types:
http://struts.apache.org/userGui
Wendy Smoak wrote:
From: "Derek Broughton" <[EMAIL PROTECTED]>
What happens when somebody types "ABCDE" into your Integer field on the
form, and it fails validation? Can you re-display the incorrect user
input
so they can see what they typed and why it was wrong?
Or more concisely, because HTML on
One situation I might consider this acceptable is when it's for a
field that uses a drop down as the control, and I'm sure that my users
won't try to be smart with me by submitting the form using their own
hand made HTML. In this case, I don't have to worry about the
typos/invalid values.
In my ac
From: "Derek Broughton" <[EMAIL PROTECTED]>
> > What happens when somebody types "ABCDE" into your Integer field on the
> > form, and it fails validation? Can you re-display the incorrect user
input
> > so they can see what they typed and why it was wrong?
>
> Or more concisely, because HTML only
On Thursday 09 December 2004 14:28, Wendy Smoak wrote:
> From: "aris" <[EMAIL PROTECTED]>
>
> > > Use String (and occasionally Boolean) for form fields and things will
>
> work
>
> > > the way you need them to.
> >
> > I don't understand your answer... If I need an Integer field for my
> > ActionFo
From: "aris" <[EMAIL PROTECTED]>
> > Use String (and occasionally Boolean) for form fields and things will
work
> > the way you need them to.
>
> I don't understand your answer... If I need an Integer field for my
> ActionForm derived class why I've to use a String?
What happens when somebody typ
From: "Wendy Smoak" <[EMAIL PROTECTED]>
> From: "aris" <[EMAIL PROTECTED]>
> > When I submit the form, after the validation process I have value="0"
(the
> > field is an Integer) but I haven't set validation rules on this field :|
>
> Use String (and occasionally Boolean) for form fields and thing
ay, December 09, 2004 6:48 PM
Subject: Problem with validation (?)
> Hi all,
>
> I've a strange behaviour with my application and I suppose the reason is
the
> ValidatorPlugIn.
>
> I've an html form with an hidden field and the pre-population lets its
> valu
From: "aris" <[EMAIL PROTECTED]>
> When I submit the form, after the validation process I have value="0" (the
> field is an Integer) but I haven't set validation rules on this field :|
Use String (and occasionally Boolean) for form fields and things will work
the way you need them to.
> In my opi
Hi all,
I've a strange behaviour with my application and I suppose the reason is the
ValidatorPlugIn.
I've an html form with an hidden field and the pre-population lets its
value="" (this is right because the value of the field in the associated
ValidatorForm is null).
When I submit the form, aft
Bill,
I like how you think! Hats off to you for that good idea.
Regards,
David
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Thursday, December 02, 2004 10:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with validation using both minlength and
alidations" it does say that
these are required.
Niall
- Original Message -
From: "David G. Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 02, 2004 2:12 PM
Subject: RE: Problem with validation
---
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 4:24 AM
To: Struts Users Mailing List
Subject: Re: Problem with validation using both minlength and maxlength
on the same field
David,
Its not a bug, its not designed to work that way.
For the minlength validator you ha
PROTECTED]
Sent: Thursday, December 02, 2004 4:24 AM
To: Struts Users Mailing List
Subject: Re: Problem with validation using both minlength and maxlength
on the same field
David,
Its not a bug, its not designed to work that way.
For the minlength validator you have to specify a minlength otherwise
vid G. Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 02, 2004 6:09 AM
Subject: RE: Problem with validation using both minlength and maxlength on
the same field
> Niall,
>
> Derek isn't crazy
g from a
zero array index position)
b) Initialization for each object is in one place. Since the JavaScript
appears to look for an object matching the first name of the Array anyway,
wouldn't this be cleaner and less redundant?
S
; <[EMAIL PROTECTED]>
Sent: Thursday, December 02, 2004 12:46 AM
Subject: RE: Problem with validation using both minlength and maxlength on
the same field
> Derek,
>
> I'm seeing the same thing you described. I'm sorry I didn't believe you.
> Sadly, I'm having
04 1:18 PM
To: Struts Users Mailing List
Subject: Re: Problem with validation using both minlength and maxlength
on the same field
On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wrote:
> I'm trying to validate a simple field. I want to validate that the field
> is an integer,
e omitted a "not"), anyway...
> -Original Message-
> From: Derek Broughton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 01, 2004 1:18 PM
> To: Struts Users Mailing List
> Subject: Re: Problem with validation using both minlength and maxlength
> on the same
--Original Message-
From: Derek Broughton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 1:18 PM
To: Struts Users Mailing List
Subject: Re: Problem with validation using both minlength and maxlength
on the same field
On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wr
On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wrote:
> I'm trying to validate a simple field. I want to validate that the field
> is an integer, and meets the min and max length requirements. In the same
> application I am able to correctly validate a date field so I'm confident
> my ove
: [EMAIL PROTECTED]
Subject: Problem with validation using both minlength and maxlength on
the same field
I'm trying to validate a simple field. I want to validate that the
field
is an integer, and meets the min and max length requirements. In the
same
application I am able to correctly val
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 01, 2004 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: Problem with validation using both minlength and maxlength on
> the same field
>
I'm trying to validate a simple field. I want to validate that the field
is an integer, and meets the min and max length requirements. In the same
application I am able to correctly validate a date field so I'm confident
my overall struts setup is correct. However when I try to do both a min
53 matches
Mail list logo