custom validator question

2004-02-26 Thread Anderson, James H [IT]
I'm creating a custom validator to enforce a = relationship between 2 date fields and am having a problem. A validator method gets a Field arg for the field with which it's associated in validation.xml, but I need to also get the Field object for the other date field. I need this so that I can

RE: custom validator question

2004-02-26 Thread Anderson, James H [IT]
, but that's just an assumption... -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 10:18 AM To: Struts Users Mailing List Subject: Re: custom validator question Specify the second field as var field property=myFirstDate depends=date

RE: custom validator question

2004-02-26 Thread Anderson, James H [IT]
I wasn't aware of it--I'm using Struts 1.1. I'll check it out. Thanks. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 10:20 AM To: Struts User Jakarta Subject: Re: custom validator question Also, what about using the existing

RE: custom validator question

2004-02-26 Thread claire knowles
this helps Claire -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: 26 February 2004 14:54 To: [EMAIL PROTECTED] Subject: custom validator question I'm creating a custom validator to enforce a = relationship between 2 date fields and am having a problem

Re: custom validator question

2004-02-26 Thread Niall Pemberton
: Re: custom validator question Specify the second field as var field property=myFirstDate depends=date,dateCompare var var-namedatePattern/var-name var-valuedd/MM//var-value /var var var-namecompareDate/var-name var-valuemySecondDate

Re: custom validator question

2004-02-26 Thread Niall Pemberton
[IT] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:54 PM Subject: custom validator question I'm creating a custom validator to enforce a = relationship between 2 date fields and am having a problem. A validator method gets a Field arg for the field with which it's

Validwhen validator question

2004-02-02 Thread Andriy Ruzhevych
Hi. Can I use global constants from constant element in validwhen validator? If I can, how can I do that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Validwhen validator question

2004-02-02 Thread Andriy Ruzhevych
validator question Hi. Can I use global constants from constant element in validwhen validator? If I can, how can I do that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Validator question

2004-01-26 Thread Andriy Ruzhevych
Hi. I have a sum field that can have different values (money or percent), depending on the other field isPercent. I want to validate money and percent type through the mask validator. I am not sure , whether I can set two mask validators with different masks on the same field. Maybe, somebody has

Re: Validator question

2004-01-26 Thread Markus
Hi. I have a sum field that can have different values (money or percent), depending on the other field isPercent. I want to validate money and percent type through the mask validator. I am not sure , whether I can set two mask validators with different masks on the same field. Maybe,

RE: Validator question

2004-01-26 Thread Andriy Ruzhevych
Thanks Markus Did you write your custom validator? I always use DynaValidatorForm and don't want to write custom java beans for this. -Original Message- From: Markus [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:04 PM To: Struts Users Mailing List Subject: Re: Validator

RE: Validator question

2004-01-26 Thread Markus
Thanks Markus Did you write your custom validator? I always use DynaValidatorForm and don't want to write custom java beans for this. Hi, No, for this solution you can't use DynaForms. You have to write an ActionForm. Kind regards, Markus

Struts Validator question

2003-11-24 Thread LACKEY,DAVID (HP-PaloAlto,ex1)
All, I posted this a few hours ago on the jakarta-commons list and have not come up with a solution yet. I decided to commit the sin of x-posting it here since this may very well be a struts issue. I hope this is not a newbie question. I have RTFM several times. I suspect I must be missing

RE: Struts Validator question

2003-11-24 Thread David Friedman
AM To: Struts Users Mailing List Subject: Struts Validator question All, I posted this a few hours ago on the jakarta-commons list and have not come up with a solution yet. I decided to commit the sin of x-posting it here since this may very well be a struts issue. I hope this is not a newbie

RE: Struts Validator question

2003-11-24 Thread LACKEY,DAVID (HP-PaloAlto,ex1)
on the Struts site. Its late and I know I must be staring at the issue and just not realizing it. David -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2003 11:09 PM To: Struts Users Mailing List Subject: RE: Struts Validator question Two

Validator question for radio buttons.

2003-10-16 Thread mohan
I have 3 radio buttons representing a property called paymentdetail.paymentTypeId, like this table width=80% border=0 cellspacing=4 cellpadding=4 name=paymentOptions align=center tr bgcolor=#CC td bgcolor=#efefef html:radio

RE: Validator question for radio buttons.

2003-10-16 Thread Saul Q Yuan
: Thursday, October 16, 2003 10:35 AM To: [EMAIL PROTECTED] Subject: Validator question for radio buttons. I have 3 radio buttons representing a property called paymentdetail.paymentTypeId, like this table width=80% border=0 cellspacing=4 cellpadding=4 name=paymentOptions align=center

Simple validator question

2003-10-03 Thread Jeroen Breedveld
Hi all, Is it possible to supply the msg element with the value the user entered in the form as the content of the arg element? My key errors.login.email.invalid is: {0} is an invalid email address So when a user enters 'foo' as an email adres I want an error message saying: 'foo is an invalid

Re: Simple validator question

2003-10-03 Thread Jeff Kyser
Here's roughly what you want to do to get 'Foo is an invalid email address': Make sure you've added this to you ApplicationResources.properties file as the 'email' rule expects a message named 'errors.email' - check the code for it and you will see. errors.email={0} is an invalid e-mail

RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld
Hi Jeff, || -Original Message- || From: Jeff Kyser [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 14:24 || To: Struts Users Mailing List || Subject: Re: Simple validator question || ... || field property=emailField depends=email

RE: Simple validator question

2003-10-03 Thread Fenderbosch, Eric
Mailing List' Subject: RE: Simple validator question Hi Jeff, || -Original Message- || From: Jeff Kyser [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 14:24 || To: Struts Users Mailing List || Subject: Re: Simple validator question || ... || field

RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld
|| -Original Message- || From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 15:19 || To: Struts Users Mailing List || Subject: RE: Simple validator question || || || I haven't tried it, but would something like this work? || || field

RE: validator question: show value of a field in error

2003-09-17 Thread Jean-Michel Garnier
Wang [mailto:[EMAIL PROTECTED] Sent: 16 September 2003 22:13 To: Struts Users Mailing List Subject: validator question: show value of a field in error I asked this earlier and did not receive any response, so i'll post it one more time with more supporting info... In validation.xml, how

newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I have a dumb question re: struts validator: How do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types in foo, how do I show 'foo' is not a valid email address as opposed to the more

RE: newbie validator question: show value of a field in error

2003-09-16 Thread Naveen Mudgal
PM To: Struts Users Mailing List Subject: newbie validator question: show value of a field in error I have a dumb question re: struts validator: How do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email

Re: newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
. daniel - Original Message - From: Naveen Mudgal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 2:50 AM Subject: RE: newbie validator question: show value of a field in error u catch the username field value using bean:write tag

validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I asked this earlier and did not receive any response, so i'll post it one more time with more supporting info... In validation.xml, how do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types

validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I asked this earlier and did not receive any response, so i'll post it one more time with more supporting info... In validation.xml, how do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types

Re: Validator Question

2003-02-24 Thread richardtandoh [EMAIL PROTECTED]
K Pullin Upgrading from 1.1 beta 2 to beta 3 got rid of this problem for me. However upgrading to RC1 introduced a further problem - see my message to the group of a few minutes ago. rt. --- In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: I've got 3 fields on a form and in the validation.xml

Validator Question

2003-02-20 Thread kpullin
I've got 3 fields on a form and in the validation.xml file I have all 3 fields as required. I also have other criteria on the fields - range checks, masks, number of characters, etc... When I submit the form, it first checks to see if the required fields have values in them. If so, it then goes

Validator Question

2003-02-08 Thread Swish
I was wondering, is there a way to configure the validator to perform a validation on a field only if value of another field is equal to a specific value? If so, how would one go about doing so? Can I write my own validator component to do this if not and how do I go about doing that (are

RE: Validator Question

2003-02-08 Thread James Turner
From: Swish [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 08, 2003 3:51 PM To: Struts Users Mailing List Subject: Validator Question I was wondering, is there a way to configure the validator to perform a validation on a field only if value of another field is equal

Validator question

2003-02-07 Thread Jamal Najmi
I am developing my Struts first application with Strus 1.3b. I am using Validator Frameqork that is a part of Struts Commons. I intend to use Validator Framework with the ValidatorActionForm instead of usual DynaActionForm. What I have done is really try to follow the registration example

Re: Validator question

2003-02-07 Thread Rob Leland
Did you 'new HashMap()' all your HashMap's in you ActionForm ? Any ideas why I am getting this error? I will really appreciate the help. It looks like I am not defining the error properly and the MessageTag is throwing excetpion. I will really appreciate any help I can get. Thanks!!

Re: Validator question

2003-02-07 Thread Jamal Najmi
I found the error - I had not copied the basic error resources from validator_rules.xml into my application resource file. Thanks for looking into it though!! Jamal Rob Leland [EMAIL PROTECTED] wrote: Did you 'new HashMap()' all your HashMap's in you ActionForm ? Any ideas why I am

RE: Validator Question

2003-01-10 Thread Siggelkow, Bill
Doesn't the 'required' validation rule do this? -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 12:37 AM To: [EMAIL PROTECTED] Subject: Validator Question Hi, I need to validate that the user does not enter only spaces

Re: Validator Question

2003-01-10 Thread Dan Tran
Question Doesn't the 'required' validation rule do this? -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 12:37 AM To: [EMAIL PROTECTED] Subject: Validator Question Hi, I need to validate that the user does not enter only spaces

Validator question

2003-01-09 Thread Zsolt Koppany
Hi, how can I define a validator that for example the e-mail must NOT match a regular expression? -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Validator question

2003-01-09 Thread James Childers
you're probably used to for boolean expressions. -= J -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 12:23 PM To: struts mail list Subject: Validator question Hi, how can I define a validator that for example the e-mail must

Validator Question

2003-01-09 Thread Suresh Addagalla
Title: Message Hi, I need to validate that the user does not enter only spaces in a particular text field. Validator framework doesn't seem to providing any validation directly to achieve this. Do I need to write custom _javascript_, or is something already available? Thanks, Suresh

Re: web.xml/validator question

2002-12-17 Thread David Graham
/validator question Date: Tue, 17 Dec 2002 12:09:42 -0500 Based on the installation instructions at: http://home.earthlink.net/~dwinterfeldt/installation.html, I added this code to web.xml: servlet servlet-namevalidator/servlet-name servlet

RE: Validator question

2002-12-04 Thread ROSSEL Olivier
Hello, I am new to using Struts' Validator framework and am trying to write a sample application based on the example distributed with Validator download from D. Winterfeldt's site. In the file jsRegistration.jsp, there are the following lines: html:form action=registration

Validator question

2002-12-03 Thread Michelle Harris
Hello, I am new to using Struts' Validator framework and am trying to write a sample application based on the example distributed with Validator download from D. Winterfeldt's site. In the file jsRegistration.jsp, there are the following lines: html:form action=registration onsubmit=return

validator question

2002-12-02 Thread Andy Kriger
I have an app with multiple forms. Some fields appear on multiple forms (e.g. email). Instead of copy-pasting the field validataion definition, is there a way to define a field element once and refer to it multiple time in the validation.xml file? thx andy -- To unsubscribe, e-mail:

Re: 1.1-b2 html:javascript validator question

2002-08-27 Thread Donald Ball
On 8/26/2002 at 5:47 PM Richards, Devin N (Devin) wrote: When I navigate to /app2.do I end up with a bunch of JavaScript code dumped out on the page. When I look at the JSP source code when the form works the html:javascript is replaced by: snip/ It does not start with the normal SCRIPT tag

1.1-b2 html:javascript validator question

2002-08-26 Thread Richards, Devin N (Devin)
I am using 1.1-b2 for two forms. Each form has it's own Form, Action, Validation.xml, ApplicationResources.properties and JSP files. The JSP's use the html:javascript tag to utilize the client side JavaScript validation methods. When the plug-in is configured like this: plug-in