Re: Struts-Validation and Property file

2004-03-11 Thread Niall Pemberton
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,

Re: Struts Validation + Frames

2003-12-29 Thread VENKATESH GANGAL
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..

RE: Struts Validation + Frames

2003-12-29 Thread Suresh Korvi
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

Re: struts validation and dispatch action

2003-12-15 Thread Joe Germuska
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

Re: struts validation and dispatch action

2003-12-15 Thread Sonam Belbase
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

RE : struts validation and dispatch action

2003-12-15 Thread Menard . Jean-Francois
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

RE: struts validation and dispatch action

2003-12-15 Thread Hookom, Jacob
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

Re: struts validation and dispatch action

2003-12-15 Thread Joe Germuska
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.

RE: struts validation and dispatch action

2003-12-15 Thread Ghanakota, Vishu
>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

RE: Struts Validation

2003-11-19 Thread Ramadoss Chinnakuzhandai
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

RE: Struts-Validation Error

2003-11-11 Thread Ramadoss Chinnakuzhandai
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

RE: Struts-Validation

2003-11-06 Thread Ramadoss Chinnakuzhandai
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

Re: Struts-Validation

2003-11-05 Thread Rick Reumann
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

RE: Struts-Validation

2003-11-05 Thread Yansheng Lin
: 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

RE: Struts-Validation

2003-11-05 Thread Ramadoss Chinnakuzhandai
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

RE: Struts-Validation

2003-11-05 Thread Yansheng Lin
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:

RE: struts validation

2003-08-05 Thread Harald Tomio
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

RE: struts validation

2003-08-04 Thread Alex Shneyderman
> 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

RE: struts validation

2003-08-04 Thread Laksh Narasimhan
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

RE: struts validation

2003-08-04 Thread Alex Shneyderman
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

Re: Struts Validation Question

2003-06-03 Thread Shashank Dixit
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

RE: Struts Validation Question

2003-06-03 Thread Bailey, Shane C.
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

Re: Struts validation error not returning to action's input?

2003-02-25 Thread Dave Newton
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

RE: Struts Validation Required and Float

2002-10-02 Thread Padma Ginnaram
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

Re: Struts Validation Required and Float

2002-10-01 Thread David Graham
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

Re: Struts Validation Framework

2002-08-01 Thread Joe Germuska
>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

Re: Struts Validation - Stop on fail?

2002-07-08 Thread Peter Onthrops
 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

Re: Struts Validation - Stop on fail?

2002-07-05 Thread @Basebeans.com
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

Re: struts validation and multiple message resources files

2002-06-14 Thread William W
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

Re: Struts Validation question

2001-10-31 Thread David Winterfeldt
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