sorry, the code would be like:
ActionErrors errors = new ActionErrors();
errors.add(super.validate(mapping, request));
don't forget to add the errors from the commons validator.
El lun, 16-07-2007 a las 10:05 +0200, Jorge Martín Cuervo escribió:
> if you are not using dyna action forms, you c
if you are not using dyna action forms, you can overwrite the method
validate in the ActioForm bean. Or even extend this dyna validation
action form and implemente your own validate like:
[...]
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
super.valudate(mappin
I am validating a form using the XML validate file. The built in
validators are great for very basic validation but I need to write a
validation too see if a value already exists in the database. I am
not sure how to go about doing this. All the validation examples I
found only show how to use
ogrammatically. The same goes with "quantity"...
it must be an integer
- Complex validation that involves both "name" and "quantity". Say.. where
"quantity" is specified,
the "name" has to be specified as well. Again, the only solution I can
thi
ateMask()
Harsh.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday, April 28, 2006 4:37 PM
To: user@struts.apache.org
Subject: Re: complex validation problem.
Jakub Milkiewicz wrote:
> Hi
> I have a problem with conditional validation. Curre
uts-action/struts-core/apidocs/index.html
Look for a method: validateMask()
Harsh.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday, April 28, 2006 4:37 PM
To: user@struts.apache.org
Subject: Re: complex validation problem.
Jakub Milkiewicz w
Jakub Milkiewicz wrote:
Hi
I have a problem with conditional validation. Currently i am working with
struts 1.1 - because of its WSAD support but i am thinking of migrating to
the newest one.
My problem is that on my jsp page i have 2 radio buttons:
I am using struts validator and in my validat
Hi
I have a problem with conditional validation. Currently i am working with
struts 1.1 - because of its WSAD support but i am thinking of migrating to
the newest one.
My problem is that on my jsp page i have 2 radio buttons:
I am using struts validator and in my validation.xml i want to have
pas
ddressLine1 == null))
>
>
>
> Niall
>
> - Original Message -----
> From: "Todd Nine" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> Sent: Friday, February 25, 2005 7:21 PM
> Subject: Complex Validation with validwhen and
d Nine" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, February 25, 2005 7:21 PM
Subject: Complex Validation with validwhen and large condition
> Hi all,
>I'm having some issues getting validwhen to perform the way I want
> it to. I would li
Hi all,
I'm having some issues getting validwhen to perform the way I want
it to. I would like the following general functionality.
1. The user can input an aseAddress.
2. The address as a whole is nullable, however if they fill in any of
the fields, they must filling ALL of the address fie
On Wed, 26 Jan 2005 20:37:08 -0800 (PST), Norris Shelton
<[EMAIL PROTECTED]> wrote:
> I'm trying to ensure that the start date is less than the end
> date.
>
>
>
>
>test
>((endDate > startDate) or (*this*
> == null
As far as I know you need to implement your own pluggable validator (not
difficult) -- unless Struts has a new feature that automates this (I
don't know of one but I'm not using the latest version).
Erik
Norris Shelton wrote:
I'm trying to ensure that the start date is less than the end
date.
I'm trying to ensure that the start date is less than the end
date.
test
((endDate > startDate) or (*this*
== null))
I already have validations to ensure that they are valid dates
dator generally is a good thing
(and crucial when using DynaActionForms), but
upon finding out it also has definite lackings
when doing complex validation, I dropped the
entire DynaActionForm approach and went
back to traditional ActionForms. For I found
that I finally was spending more time on
Validato
Validator does not provide client-side (JavaScript) validation for
"requiredif" and "validwhen". It is my understanding that it is not
practical to create a JavaScript reusable, generic function for these
validations that plays in the Validator framework.
However, if you really need this valid
Hi everyone. I need to perform conditional validation in one of my forms. I have
a drop-down list and a text field. The validation applied to the text field
should be dependent on the value selected on the drop-down list. Is this
possible, using the Struts validator? I've taken a look at the "valid
17 matches
Mail list logo