So in your validation-rules.xml you have something like...
In your properties file you define "errors.myRule"
In your "MyValidator" class you have something like
public static boolean validateMyRule(Object bean,
ValidatorAction va,
Hi Suresh,
I checked the name of the form in my validation.xml and varified that I am using the
same name in my JSP also.
I am able to get the Error object from my form bean but I am unable to display it on
my JSP.Is there anything else that I am missing ???
Thanks for your help
Cheers..
hi venkatesh
You are saying that using lower frame
so see which to which form this page belongs to and put that form name in the
validate.xml
then it will display easily
i am think this is the problem of placing the form name correctly
suresh
-Original Message-
From: VENKATESH
Joe,
I'd like to try your duplicate action mapping suggestion, but I'm not
sure how to specify the different paths. If my dispatchAction
NotesAction.java
has two methods - SaveNotes and CreateNotes, with CreateNotes needing the
validation.
what would the action mappings look like?
I'm sorry, I may
Thanks for all the suggestions.
Joe,
I'd like to try your duplicate action mapping suggestion, but I'm not
sure how to specify the different paths. If my dispatchAction
NotesAction.java
has two methods - SaveNotes and CreateNotes, with CreateNotes needing the
validation.
what would the action mapp
ntreal, QC
H1N1J4 - Étage RC
-Message d'origine-
De : Ghanakota, Vishu [mailto:[EMAIL PROTECTED]
Envoyé : lundi 15 décembre 2003 17:06
À : 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Objet : RE: struts validation and dispatch action
>From what I h
lto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 4:06 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: struts validation and dispatch action
>From what I have done before, you can sub-class the action and override the
validate to do a conditional validatio
At 4:56 PM -0500 12/15/03, Sonam Belbase wrote:
Hi,
I've noticed that since validation is defined in the action mapping, it
will apply to all methods of
a dispatch action. But what if only one method in the dispatch action
requires field X to
be populated/selected and another method doesn't care.
>From what I have done before, you can sub-class the action and override the
validate to do a conditional validation, this way you still get to keep the
validation in action mapping or you can move the entire validation to your
action.
-Original Message-
From: Sonam Belbase [mailto:[EMAIL
Hi Luci,
As you mentioned in your expression there a in-build function called
"email" which will make use of
"org.apache.commons.validator.GenericValidator.isEmail(String arg)" but the problem
here is it does accepts even invalid email address also (eg) [EMAIL PROTECTED] would
rather
I'm experiencing some peculiar error in the validation framework..
I hv tested the validation for two different fields in different pages using pattern
matching maskfield in some page it does working...but other doesn't...I just
wondering what was the problem with me..?
It does working
Subject: Re: Struts-Validation
Ramadoss Chinnakuzhandai wrote:
> yesI should restrict the user to enter both fields i.e they should enter anyone
> of the fields and not both.
These option I think is to use the validate method in your
ActionForm and then first call your validation fra
Ramadoss Chinnakuzhandai wrote:
yesI should restrict the user to enter both fields i.e they should enter anyone of the fields and not both.
These option I think is to use the validate method in your
ActionForm and then first call your validation framework and then do
the check for the custom
: Struts Users Mailing List
Subject: RE: Struts-Validation
yesI should restrict the user to enter both fields i.e they should enter
anyone of the fields and not both.
>>That's a self-contradiction if you want to use them at the same time.
>>You will need to write your own va
pt or whatever to validate this condition...???
-Ram
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 5:29 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Validation
So you are saying you need something like
not
So you are saying you need something like
notRequireIf
for field2, right?
That's a self-contradiction if you want to use them at the same time.
You will need to write your own validation for that.
-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent:
arald
-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Montag, 04. August 2003 17:01
To: 'Struts Users Mailing List'
Subject: RE: struts validation
> the validators i used are required, minlength, maxlength etc... but do
> we have problem in
> the validators i used are required, minlength, maxlength etc...
> but do we have problem in displaying the error messages in java script
> window bcos of validators???
I do not have that problem I do not know why you do. Check to see if the
JavaScript even gets to your browser.
Ceck your gener
MAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: struts validation
Date: Mon, 4 Aug 2003 10:41:36 -0400
Is your browser JavaScript enabled?
What validators are you using? Some of them do not have JavaScript
countrparts.
> -Original M
Is your browser JavaScript enabled?
What validators are you using? Some of them do not have JavaScript
countrparts.
> -Original Message-
> From: Laksh Narasimhan [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 10:35 AM
> To: [EMAIL PROTECTED]
> Subject: struts validation
>
> H
D]>
Sent: Monday, June 02, 2003 7:32 PM
Subject: RE: Struts Validation Question
>
> What does your action mapping look like in the struts-config? Also, I
> believe, by the time you are in the action validation will already be
> performed (once you have it working properly). So you do
What does your action mapping look like in the struts-config? Also, I
believe, by the time you are in the action validation will already be
performed (once you have it working properly). So you don't have a call to
validate() or anything to do with validation in the action.
-Original Messa
On 25 Feb 2003 Dave "The Dope" Newton wrote:
> [ Wh, it doesn't go back to the action's input param page ]
> [ when the DynaValidatorActionForm has a validation issue ]
Well, that would be because I had the following in my struts-config.xml:
I guess that'd do it. Man, I tell ya', t
Check if your float validator depends on required. Removing this dependency
should solve your problem.
-Padma
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 8:24 PM
To: [EMAIL PROTECTED]
Subject: Struts Validation Required and Float
This has come up before as a "bug". I don't believe you can but there is
talk of changing the validator to support that.
Dave
>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Struts Validation Required and Float
>Date: Tue, 1
>I really like the foundation of the Validator framework but I don't
>see some basic features
>that I constantly require.
Hm. Sounds like a golden opportunity for you to increase your
commitment to open source software?
Validator is part of the Commons project at Jakarta. Odds are good
that
Are you using javascript validation? If not,
disregard this message.
If so, the javascript rendered by the
JavascriptValidatorTag performs each required
validation before checking for the float validation.
Since an error is found in validateRequired,
validateFloat is not called. if you check out
Subject: Re: Struts Validation - Stop on fail?
From: "Andrej Sobkowski" <[EMAIL PROTECTED]>
===
Hello,
Padma Ginnaram replied to me directly (thanks!) so here is the message in
case someone was having a similar problem:
--- From Padma's message
[...]
If a validator depend
Is there a solution for this problem ?
Thanks,
William.
>From: "Alok Ghosh" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: struts validation and multiple message resources files
>Date: Tue, 11 Jun 2002 13:24:04 -0400
>
>Hi,
>I am
It doesn't skip it just like if you define an
html:text on your JSP and the field doesn't exist it
causes an exception. I don't think it stops
validating though since all exceptions are caught.
David
--- Sandeep Takhar <[EMAIL PROTECTED]> wrote:
> when using the struts validator, what happens i
30 matches
Mail list logo