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
, 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
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
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
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
[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
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
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
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
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,
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
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
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
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
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
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
: 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
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
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
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
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
|| -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
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
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
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
.
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
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
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
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
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
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
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
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
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!!
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
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
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
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]
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
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
/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
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
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
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:
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
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
46 matches
Mail list logo