-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re: Validator Problem
Hi Siva,
on a related problem, can you see what is wrong this the following xml,
because I get the error message "title cannot be less t
the arg0 shuld also
contain a property called name="required"
Please let me know whether it works,
Sivakumar
[EMAIL PROTECTED] wrote:
Hi,
I am using struts validator in the logon.jsp of my application. If I don't
enter the username & click on submit the message displayed is &
Hey all,
I'm having trouble getting some simple Validator "required" fields working
on a DynaValidatorForm being used in an Action extending a descendant of
DispatchAction.
The action is attached, but it behaves something like this:
Dispatch method: read -
Reads information
cc:
[EMAIL PROTECTED]Subject: Re: Validator Problem
ote:
> Hi,
> I am using struts validator in the logon.jsp of my application. If I don't
> enter the username & click on submit the message displayed is "null is
> required". Instead it should be "Username is required".
> The part of the code in
Hi,
I am using struts validator in the logon.jsp of my application. If I don't
enter the username & click on submit the message displayed is "null is
required". Instead it should be "Username is required".
The part of the code in the validator-rules.xml
ns. Some of these are required. Some are 'at least one of 2
checked' required (for which I added a custom Validator method and
associated JavaScript).
Problem: When I submit, Struts returns an error on the server side
because fields that aren't included in the JSP are mark
Yes. Struts Validator comes with only the basic type validation. You can
extend it both on the server side and client side(in your case).
-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: July 21, 2003 12:07 PM
To: Struts Users Mailing List
Subject: Re: Using
On Jul 21, 2003, "Yansheng Lin" <[EMAIL PROTECTED]> wrote:
|You can call validateDate, etc anywhere in your form, provide that you loaded
|then correctly.
|
|Something like onblur="validateInteger()" will validate whether they are
|integers:
Yansheng,
So, what you are saying is that stru
s valid as well.
-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: July 21, 2003 8:49 AM
To: Struts Users Mailing List
Subject: Using the validator for client side field modifications
Hi. I've been reading through some of the documentation and I haven't
found exa
of the
fields.
I have been reading about the validator and the "validator:javascript
formname=myForm" / "onSubmit=validateMyForm" tag combo, but I'm not sure
it does what I want as it seems to be doing a *form* validation.
Could someone point me in the correct direc
mentioned it
in the last. is it the way the validator works or can i mention the
sequence elsewhere
TIA
--nagi
Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 5
Thanks any way, I have already the solution.
Hi!
I'm trying to evaluate how to move my ActionForm's to Validator one's.
I found a problem for which I don't see the solution.
In basic (Dyna)ActionForm we have the reset() method, where we have
access to the request, and f
Hi!
I'm trying to evaluate how to move my ActionForm's to Validator one's.
I found a problem for which I don't see the solution.
In basic (Dyna)ActionForm we have the reset() method, where we have access to
the request, and from there we can set some request.Atributes (fo
On Thursday 17 July 2003 13:15, Michael Nascimento Santos wrote:
Hi,
> You must define a datePattern var in your validation.xml config, such as:
>
>
>
> datePattern
> MM-dd-
>
>
Same error, but if I change it to...
var-name>datePatternStrict
..it works. Also, accor
You must define a datePattern var in your validation.xml config, such as:
datePattern
MM-dd-
This way, the validator knows when the value entered is valid according to
your pattern. In my example, 07-17-03 would be valid, but not 17-07-03.
[]s
Michael Nascimento
Hi,
I am having problems with client side date validation in 1.1. If I set the
depends value to include 'date', there seems to be a problem in the
javascript generated. I get the following error..
Error: Length is null or not an object.
The Error seems to be in the validation-rules.xml for t
Thanx for the reply,
But earlier i had tried "requiredif" value in the depends attribute and i got the
following stack trace.
[ERROR] Validator - -reflection: null java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
hi,
"validwhen" is not defined in ur validator-rules..
and i guess u have gone thro' the 1.1 release docs.. which talks
about implementing the validwhen validator in the next release..
as of now it does't have validwhen rule
Have you declared "validwhen" in validator-rules.xml?
For ex., the following is an example of 'required'. Similarly, you need to declare
'validwhen'.
-Original Message-
From: Prashant Samant [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 2:
Hello everybody,
I am trying to run a small application which validates a field.
But when i run the appilcation, i am getting the following error
" Validator - -No ValidatorAction called validwhen found for field method"
The following is my struts.c
hardcoding the multi-page
> validations in your
> validate
> routine you're doing it wrong. That information is
> already contained in
> the validation.xml file.
>
> -Michael
>
> -Original Message-
> From: Kearney, Michael
> [mailto:[EMAIL PROTECTED
g it wrong. That information is already contained in
the validation.xml file.
-Michael
-Original Message-
From: Kearney, Michael [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 7:46 AM
To: 'Struts Users Mailing List'
Subject: RE: Use of Validator in a Wizard
rite the code inside
the braces.
-Original Message-
From: Ludovic Maitre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 8:34 AM
To: Struts Users Mailing List
Subject: Re: Use of Validator in a Wizard Validator
Hello,
I use do my validations in the brackets.
For example i test
ns, like dontSatisfyValidation, for verifiy that each field
concerned by the page which is actually checked.
For automatic validation, driven by rules defined in
validator-config.xml (or validator-rules, check the 2 files), (i think
you think to this when you say "what is the method call I use to
Hmmm, no response. Let me rephrase the question.
How do you perform field validation in your wizards?
Thanks, Michael
-Original Message-
From: Kearney, Michael [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:28 PM
To: '[EMAIL PROTECTED]'
Subject: FW: Use of Vali
The "Struts in Action" book describes how to do multipage validations in
chapter 12.10.1
by using the following code:
if (page == 1) {
//Check page 1 properties
}
if (page == 2) (
// And so on.
Unfortunately, it doesn't go into detail about what goes inside the braces.
What
Hi,
Having a snag using Validator, DynaValidatorForm and simple java beans.
An overview of the current application my team is currently building; We
use 2 Action classes for one jsp if the jsp has a html form in it else
we use 1 Action. Example, for changePassword.jsp we have
I feel a little embarrased asking this question... it seems so simple...
I'm having a problem when the Validator framework actually finds a
validation error. My form contains a dynamically created drop-down. For
correct data, the form works just fine.
When the user submits bad data, ho
Hello,
I'm currently working on a framework for a special kind of
web-applications. These applications all require some questionnaires.
These questionnaires are defined using a bundle of business objects.
These business classes include logic for validating user input values.
The vali
I suggest you write your own JavaScript validations; Validator has many
problems.
Mark
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:34 AM
To: '[EMAIL PROTECTED]'
Subject: Struts Validator Errors - urgent!!
H i, This is a repo
H i, This is a repost. I'm in need of a solution to the following problem. Pl. suggest
!
I'm tying to incorporate client-side validations using struts validator.
I've downloaded all related .jar files and placed them in /WEB-INF/lib.
I'm using c
I'm tying to incorporate client-side validations using struts validator.
I've downloaded all related .jar files and placed them in /WEB-INF/lib.
I'm using commons-validator.jar (1.0.2).
When I'm trying to display the. jsp page in web browser. it's showing some HTML
g displayed properly. What could be the reason?
-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12:32 PM
To: [EMAIL PROTECTED]
Subject: RE: What should be in validate() method when using struts validator package
HI again
this pdf gives
HI again
this pdf gives u good start to the validator framework
http://www.manning.com/husted/chap12.pdf
also u can deploy the struts-validator.war that comes with the struts
release and go thro' the jsps, validator.xml, validator-rule
Can you please explain how to use validator for client side validations? Any sample
code on the web (links would be helpful).
Thanks
Sriram
-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:59 AM
To: [EMAIL PROTECTED]
Subject
hi,
struts validator provides both client side as well as server side
validations.
if u want to use the serverside validations , u have to extend the
validatorForm instead of ActionForm and remove the validate() method all
together.
but, in my
What should be in validate() method when we use Struts Validator package?
Should it be an empty method?
My current validate() method (without using Struts Validator) is as follows:(What
should it be if I implement validations in validator-rules.xml and validations.xml)?
Pl. suggest.
public
ginal Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:56 AM
To: Struts Users Mailing List
Subject: Re: validator validwhen not working?
Are you using a nightly build after 1.1 final? ValidWhen was not included
with 1.1.
David
--- "Poon, Johnn
Are you using a nightly build after 1.1 final? ValidWhen was not included
with 1.1.
David
--- "Poon, Johnny" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use validwhen, so that it's only valid when either all
> three
> related fields are empty or are filled, it's valid; otherwise not.
>
Hi,
I'm trying to use validwhen, so that it's only valid when either all three
related fields are empty or are filled, it's valid; otherwise not. ssn_1,
ssn_2, and ssn_3 are the field names. For some reason, when I put this in,
none of the validation takes place, not even required, minlength, ma
I am trying to use validator with validator-rules.xml (for struts1.0). When I deploy
the .ear file on JBoss, I'm getting the following error:
10:07:15,247 INFO [Engine] validator: Skipping validation rules file from '/WEB
-INF/validator-rules.xml'. No stream could be o
Hi,
I'm using Validator. Can anyone tell me if there's a way to only show one
general error message when there are errors on several fields on the page?
Further, how to change the font on the title and move focus to of all the
error field?
What I want to do when validation comes back
actually the javadocs say it all. If you've got dynaactionforms or
validatorforms then it's not a huge step.
[EMAIL PROTECTED] wrote:
I am new to Dyna Validator and its working. Any useful resources on the
working of a Dyna Validator Form/Dyna Action Validator will be
appreciated.
than
I am new to Dyna Validator and its working. Any useful resources on the
working of a Dyna Validator Form/Dyna Action Validator will be
appreciated.
thanx
--mohan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I am new to Dyna Validator and its working. Any useful resources on the
working of a Dyna Validator Form/Dyna Action Validator will be
appreciated.
thanx
--mohan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
It seems to me like it should work.
I have used submit() on forms and it will go to the
action element of the form tag. So this is just html
specs here.
Don't know why the validation is not being called.
There should be some onSubmit="" somewhere in the form
tag probably...
sandeep
--- "Poon,
Sandeep,
The validateEnterAppInfo1(form) method gets called with the submit button
hardcode w/i the .
If I remove the validateEnterAppInfo1(this) call, no javascript validation
will take place, while the server-side validation still works.
There is always going to be only one form per page, so
form.
>
> JP
>
> -Original Message-
> From: Sandeep Takhar
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2003 10:48 AM
> To: Struts Users Mailing List
> Subject: Re: Validator using instead of
>
>
>
> should it be a validatorForm?
>
>
truts Users Mailing List
Subject: Re: Validator using instead of
should it be a validatorForm?
sandeep
--- "Poon, Johnny" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using trying to use ValidatorActionForm and
> tile, but the submit button
> is outside of the for
orm indirectly using a link and javascript (see
> code below). Neither the
> client-side javascript nor the server-side
> validation get called. But if I
> hardcode a submit button WITHIN the form, the
> javascript will get called.
>
> So, does this mean that validator
alled. But if I
hardcode a submit button WITHIN the form, the javascript will get called.
So, does this mean that validator will not work with
document.forms[0].submit(); ? Is there a workaround this? I'm sure there
are someone out there doing similar thing.
Thanks!
JP
My a
it's the attribute you use to set the validation tests you want
validator to carry out, e.g. required, maxlength, creditCard
Kelvin wu wrote:
> Hi,
> could anyone tell me the meaning of depends attribute of validator element
> in validator-rules.xml?
>
>
>
&
Hi,
could anyone tell me the meaning of depends attribute of validator element
in validator-rules.xml?
- Original Message -
From: "Kelvin wu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 6:40 PM
I'm using struts validator and when I deploy the application, I'm getting the
following error.
18:05:00,957 INFO [Engine] validator: Loading validation rules file from '/WEB-
INF/validator-rules.xml'
18:05:00,957 INFO [Engine] validator: Skipping validation rules
Hi, i am using struts validator and want to add a validation rule by myself.
i want the required validator only do validation when my custom validator
return true.
How can i do this?
What is the meaning of depends attribute of validator element in
validator-rules.xml
itself is coming out of the resources
just fine.
I'm having a problem I'm presently unable to figure out. I've got
the following validator rules:
maxlength
12
--- "Wu, Feng" <[EMAIL PROTECTED]> wrote:
> Thanks, I have opened a bug report on item one, it is at
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21254. Regarding the
> second item, is there a paticular reason that the validator is designed
> to "stops v
Hello *,
Summary: My arguments are always showing up as null (even when its'
not a resource), but the message itself is coming out of the resources
just fine.
I'm having a problem I'm presently unable to figure out. I've got the
follo
Thanks, I have opened a bug report on item one, it is at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21254. Regarding the second item,
is there a paticular reason that the validator is designed to "stops validating a list
of values on the first failure"? This morning I actuall
e out why there is only ActionError (for property
> nameList[0].value) is in request scope when I should have three, since
> nameList[1].value and nameList[2].value are blank and should fail
> validation.
This is a current limitation of the validator. It stops validating a list
of valu
, Feng
Sent: Monday, June 30, 2003 5:08 PM
To:
Subject: Validator indexed property not working in Struts 1.1 Final
Release
Hi,
First, great works on Struts 1.1 final release. Just in time since we are designing a
major project using Struts.
Got a couple questions regarding validator and indexed
MaFai írta:
Hello, Gemes Tibor,
why?I only need the "require" function.
This line of yours contradicts the above statement:
and which validator must be add in validator-rules.xml?
Why cannot be all of them there? Easier to maintain. A new version comes
out, and y
Hello, Gemes Tibor,
why?I only need the "require" function.
and which validator must be add in validator-rules.xml?
=== At 2003-06-30, 13:31:00 you wrote: ===
>MaFai írta:
>
>>validator-rules.xml
>>> "-//Apache Software Foundation//DTD C
MaFai írta:
validator-rules.xml
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
This file should be much-much longer. about 40k in size. You should not
edit this without a good reas
Hello, struts-user,
Attemptto implement the simplest validator in 3 days,I nearly exhuasted.
Pls give me a hand.
My strut project as the following:
validator-rules.xml
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
validationi.xm
Hi,
Can somebody pls tell me why the following validation is not firing?
(see xml snippet below)
contact.phoneBHVisible and contact.phoneBHRequired are booleans.
Essentially, what I want to do is that validate only when
contact.phoneBHVisible == true && contact.phoneBHRequired == true
Other fi
This exception appears when Validation Plugin is not added to
struts-config.xml.
- Original Message -
From: "Frances Aleah Z. de Guzman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 6:44 PM
Subject: resources not defined for validator
Is it possible to unit test the Validator with the StrutsTestCase, if so
does anyone know were I could see an example of it. thanks
Marty
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
when im running my application im having this error: Resources not defined for
validator...but my application is working fine. how can fix such error? what
is the effect of this? im using validatorform
--
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http
Hi Keith,
just about to try using the validator myself. If I get to frustration
point like this, I sometimes grab the struts source and put some logging
statements in it to make sure it's doing what it's meant to. If you're
put off by the idea of dabbling with the struts source,
: RE: Damn Validator...
That looks ok to me. Override the validate() method in your ActionForm
and see if it gets called. Then have it call the super.validate() method
to see if the validator returns any errors. Does anything at all happen
when you submit the form? Are you using both java
My boss had me plug the Validator into a sample application for practice.
It was all cut and paste though, so there wasn't much real learning. It
worked no problem.
I just copied the validator-rules.xml, and validation.xml into my app, and
changed the validation.xml. I followed al
Does the validator example app work?
David
--- "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote:
> Nope, no server errors when I run the app. I'm not getting any errors
> period, it just seems like the validator isn't doing anything, or
Nope, no server errors when I run the app. I'm not getting any errors
period, it just seems like the validator isn't doing anything, or is passing
when it shouldn't.
- Keith
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2
Is it possible to unit test the Validator with the StrutsTestCase, if so
does anyone know were I could see an example of it. thanks
Marty
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Is it possible to unit test the Validator with the StrutsTestCase, if so
does anyone know were I could see an example of it. thanks
Marty
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
That looks ok to me. Override the validate() method in your ActionForm
and see if it gets called. Then have it call the super.validate() method
to see if the validator returns any errors. Does anything at all happen
when you submit the form? Are you using both javascript and server side
sday, June 24, 2003 11:34 AM
To: 'Struts Users Mailing List'
Subject: RE: Damn Validator...
Sure thing, thanks for checking it out. Here's my validation.xml:
http://jakarta.apache.org/commo
0.dtd";>
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 11:14 AM
To: Struts Users Mailing List
Subject: Re: Damn Validator...
Can you post the relevant form definition in validat
Can you post the relevant form definition in validation.xml? I'm having a
hard time downloading the attachment.
David
--- "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote:
> Hey everyone,
> I posted recently regarding my issues with the Validator pl
Hey everyone,
I posted recently regarding my issues with the Validator plugin. There were
a few suggestions, but I had already checked everything that was mentioned.
I'm going crazy, I've been trying for a several days to get this thing
working, but have gotten nowhere. I'm pos
Hello All.
I'm using Struts 1.1rc2 with the Validator Frame work.
I have some conditional validation that has to be
done (if this option is selected, then some other
field must be filled out).
Everything works fine when I mess around with the
validate method of the action form, but I don
Or you can call validate directly from your action.
-Tim
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 11:07 AM
To: 'Struts Users Mailing List'
Subject: RE: Validator
Also, when using the validator, I have to se
Setting validate="true" for an action means that the form bean's vaildate()
method will be called. This will invoke the Struts Validator if you're
using ValidatorForm.
David
Also, when using the validator, I have to set validate="true" for each
applicable action
Also, when using the validator, I have to set validate="true" for each
applicable action in my struts config.xml right?
- Keith
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:27 AM
To: 'Struts Users Mailin
Sent: Friday, June 20, 2003 3:20 PM
To: Struts Users Mailing List
Subject: Re: Validator
For client-site validation you can omit steps 9, 10, 11, 12
However couple more steps are required:
9a) in page header
10a) for form tag: onsubmit="return validate(this)"
So, 10 < 12 :-)
Also,
iour that much...the way you describe it..
sandeep
--- Nick <[EMAIL PROTECTED]> wrote:
> Sandeep,
>
> I'm not sure I understand why you think we're
> overriding default
> behaviors. We generally allow the Struts, Tiles, &
> Validator frameworks
> to do t
hi,
i agree with you , but i guess there is a bug in the validator.
since i have observed the same kind of problem with my
application.
-nagi
---Original Message---
From: Struts Users Mailing
Subject: RE: Validator
HI keith,
comment your dtd declarations in both ur validator.xml & validator-rules.xml
and try.
this should work for u..
-nagi
---Original Message---
From: Struts Users Mailing List
Date: Friday, Jun
HI keith,
comment your dtd declarations in both ur validator.xml &
validator-rules.xml and try.
this should work for u..
-nagi
---Original Message---
From: Struts Users Mailing
List
Adam,
Yes I agree. But I still do not see how to integrate nested objects with
form beans and use Validator at the same time.
Can anyone show us what we are missing?
-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 10:31 PM
To: 'Struts
Hi Richard,
I've been thinking about this too and as far as I can figure it out, it
seems that Validator and Nested are mutually exclusive techniques for
the View. Sorry, that's not quite true. I was looking at
DynaValidatorActionForm.
What I would like to know is what most people
I've searched the archives with several combinations of the above keywords
to no avail.
Is it possible to nest a collection of ValidatorForm beans within a main
ValidatorForm bean ... and then have Validator handle validations of the
nested properties?
I've not been able to figure out
Sandeep,
I'm not sure I understand why you think we're overriding default
behaviors. We generally allow the Struts, Tiles, & Validator frameworks
to do their thing without modification.
Currently, we only have one modification to Struts' general behaviors.
That modificati
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 11:22 AM
Subject: Re: Validator
> I would have suggested just the oppostite ;-). How does client-side
validation
> take fewer steps?
My experience has been that the
r a
> given user action. There will be a second mapping
> that will handle
> Validation failures. The second will use the same
> action class as the
> first, but it won't invoke validator.
>
> In the form, we'll override validate(). When the
> form fails the
>
On Friday, June 20, 2003, at 01:22 PM, Kris Schneider wrote:
I'm almost in a state of shock over the statement, "I wish my boss
would just
let me use the validate method of the ActionForms." Come again?
Hey, give his boss credit for knowing that the validate() method
can be called by the form o
alidation working.
>
>
> - Original Message -
> From: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, June 20, 2003 10:41 AM
> Subject: RE: Validato
: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 10:41 AM
Subject: RE: Validator
> Thanks for the input.
> I'm pretty sure I've got all that though. Th
601 - 700 of 1868 matches
Mail list logo