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
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
Thanks Niall, that took care of it. We just had to convert the ANDs
and ORs to lower case to conform to the grammer.
Todd
On Fri, 25 Feb 2005 20:14:54 -, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> The condition you have specified means that addressLine1 is only valid when
> everything is
The condition you have specified means that addressLine1 is only valid when
everything is not null. Thats why you always get the error - you need an OR
condition. In order to get appropriate "required" messages for the various
fields, how about something along the following lines
test
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.
On Thursday 15 April 2004 15:36, Diego wrote:
I admit having but limited experience with Validator,
and DynaActionForm, and the reason for that is
not that it's bad in itself, but I found that complex,
in particular application specific 'dependant' validation
can be performed much easier by using
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
11 matches
Mail list logo