Hi,
I'am using validator to validate data on client side and server side.
It works fine, but when I validate on server side when there are errors
detected I go back to the html but without user data (the form is reseted).
Have you got any idea ?
Thanks in advance,
Jean-Marie.
-Me
: Re: Messages and Validator
There's no reason a database-backed message bundle can't load all its
messages in one go and cache them. That's all the standard property
file-backed implementation does.
To provide an alternate message bundle implementation, you just need to
config
Thanks, Eric.
From: "Givler, Eric" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: validate integer with a comma thousands seperator using
Validator
Date: Thu, 3 Aug 2006 11:45:28 -0400
You could
idate
} // Page_6_Form
-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 6:10 PM
To: Struts Users Mailing List
Subject: Validator not getting called and I can't see why
I'm either missing something stupid (which is always poss
either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over the place and it's working fine in all my other actions but for
this one action it is simply not getting called.
I can't see any difference b
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over the place and it's working fine in all my other actions but for
this one action it is simply not getting called.
I can't see an
this issue and it took me almost a week to track down
what was going on between the validator and his code.
Yeah, essentially I'm covering all the bases (null pointers, index out
of bounds, etc.) so no RuntimeExceptions can be thrown either. If
anything doesn't look right to the tr
it took me almost a week to track down what
was going on between the validator and his code.
-adam
Scott Van Wart wrote:
Adam Gordon wrote:
IIOC, the only way you can do this with the stock validator is to use
"mask"
rather than "date" as the validator. Then, you can use a rege
with the stock validator is to use
"mask"
> rather than "date" as the validator. Then, you can use a regex to
dictate
> your mask. I'll warn you though, if you use a regular expression it's
going
> to be VERY long because it will also need to validate that the d
Adam Gordon wrote:
IIOC, the only way you can do this with the stock validator is to use "mask"
rather than "date" as the validator. Then, you can use a regex to dictate
your mask. I'll warn you though, if you use a regular expression it's going
to be VERY lon
You could create another validator, and inside that perform a stripping of
non-numeric characters (stripCommas), then
execute code similar to the existing "long range" validator like this:
/**
* Determines if a formatted numeric value is between a range as defined by
IIOC, the only way you can do this with the stock validator is to use "mask"
rather than "date" as the validator. Then, you can use a regex to dictate
your mask. I'll warn you though, if you use a regular expression it's going
to be VERY long because it will also
can someone help me with this please?
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: validate integer with a comma thousands seperator using Validator
Date: Wed, 02 Aug 2006 10:09:19 -0400
Using
[EMAIL PROTECTED]>:
Hello,
I am using Validator framework with a Struts application.
I would like to know if it is possible to use message provided by a
database (or java class) rather than a propertie file ?
Thank you,
Jean-Marie.
---
Email Disclaimer
http://www
I have a requirement in my project that I be able to accept two
different date masks. One with slashes (thus, 10 characters) and one
without (8 digits). Is there any way to do this with the stock date
validator, or do I need to roll my own wrapper?
Thanks,
Scott
interesting question , but u will suffer low performance i think ( one
database access for each message ? ) .
i think if it's in a property file it's for simulate a static class .
2006/8/2, Jean-Marie Pitre <[EMAIL PROTECTED]>:
Hello,
I am using Validator framewo
Using struts validator.
have to validate the user entered value.
The value entered should be a positive integer with a comma thousands
seperator. the number need not be in thousands.
I have as below to check for positive integer without comma seperator. but
not sure how to validate if the
Hello,
I am using Validator framework with a Struts application.
I would like to know if it is possible to use message provided by a
database (or java class) rather than a propertie file ?
Thank you,
Jean-Marie.
---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php
Hi,
Iam trying to validate a simple form which has a name, password & email
field. I have validated that name field(html:text) should contain only
characters, password field(html:text) contains only numbers & email
field(html:text) should contain proper email id.
When i enter only numbers
alidwhen."
I fought with "validwhen" for two days before just using the validate()
method on the ValidatorForm. Since server-side validation has to be
done anyway, it's not like this detracts from the functionality.
-Adam
Jeremy Jardin wrote:
> -Adam,
>
> first, thanks for
-Adam,
first, thanks for all those explications. but I've still a problem with
my
validator using 'validwhen'.
I've seen first, that I don't have any "errors.validwhen = mymessage"
line
in my messageResource file ?
I guess I need to add it and I di
If I have a look at my generatated js source code, I can't see the validwhen
method :
function validateStartSubscriptionForm(form) {
if (bCancel) {
return true;
} else {
var formValidationResult;
formValidationResult = validateRequired(form) &&
va
I've change my validwhen rule into this :
test
(((subscriptionType !=1)AND(*THIS*!=null)) OR
(subscriptionType==1))
but it still
-Irwan,
Thank you myuch for your help, but I don't have any problem regarding those
show/hide method !
I'm just wondering if the fact of removing some fields in the form could be
at the origin of my validation matters ??
On 7/26/06, Irwan Nurwandi <[EMAIL PROTECTED]> wrote:
Dear Jeremy ..
Dear Jeremy ..
According to your code below, it seems that for the first time the jsp
page load you're initialiaze the var variable into string "1". So the
three object you've mention before automatically will not visible.
try this and hope you can learn more ..
Modify your jsp code
<%
String
appear or not.
> "if select value > 1, some input:text tags appears, and there aren't
present
> is select value=1."
>
> Maybe should I "hide" fields rather than "not display" fields.. ??
>
> thx
>
>
>
>
>
>
>
> On 7/25/0
ake sure your field names are all spelled
> correctly. Also, are any errors being output to the form? I had errors
> displaying and it turned out that the validator was doing exactly what I
> was asking it to do and the problem was that I just didn't understand
> the "validwhen&q
-Adam,
first, thanks for all those explications. but I've still a problem with my
validator using 'validwhen'.
I've seen first, that I don't have any "errors.validwhen = mymessage" line
in my messageResource file ?
I guess I need to add it and I did it.
Oth
Jeremy-
Ok, sanity-check time. Make sure your field names are all spelled
correctly. Also, are any errors being output to the form? I had errors
displaying and it turned out that the validator was doing exactly what I
was asking it to do and the problem was that I just didn't under
you validate that
subscriptionType is an integer on [1,4]. Also, you don't need quotes
around the numbers. Struts is smart enough to try numbers first and
then if that doesn't work, it resorts to Strings. Besides, I'm not sure
the functionality you want is to compare Strings using ineq
s to compare Strings using inequalities...
Hope this helps.
-Adam
Jeremy Jardin wrote:
Hi,
I'm trying to use struts plugin validator to check a big form.. and it
works
well.. but I've a little pb with validwhen constraint;
I've written something like this :
Hi,
I'm trying to use struts plugin validator to check a big form.. and it works
well.. but I've a little pb with validwhen constraint;
I've written something like this :
test
((subscript
ped through
validator-rules.xml). I'd like to be able to pass two fields to my
routine rather than just one. Is there any way of doing this?
- Scott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
I have a custom validation routine (class mapped through
validator-rules.xml). I'd like to be able to pass two fields to my
routine rather than just one. Is there any way of doing this?
- Scott
-
To unsubscribe, e
Hi,
I'm trying with another action path in my validation.xml file, even if I'm
quite doubting..
So, my validator-rules.xml file is the default one.. with basics validators
tag.
By the way, my struts-config file :
It still does not
hat method and return the ActionErrors instance that it returns you're
ok, otherwise, you'd be ignoring any errors the validator framework may
find. (you can add your own errors to this ActionErrors if you need to do
more complex validation than the validation framework allows). By
A couple of things:
1. Not sure what version of Struts you're using, but at least according
to
http://struts.apache.org/1.2.9/userGuide/building_view.html#validator,
the "property" attribute for the validator should have the value of
"pathnames" and not the path of
: user@struts.apache.org
Subject: pb using validator it does not work !
Hi,
I'm trying to use validator plugin in my application, and it does not work
at all !
First, I've just add in my jsp.
I've written a basic validation.xml file like this :
Then, I've also a cl
Hello Jeremy and Doctor Yee-
-we need to see your validator-rules.xml
-need to see your Form declaration in struts-config.xml specifically
http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html
HTH
Martin
On 7/20/06, Jeremy Jardin <[EMAIL PROTECTED]> wrote:
That looks odd. Try setting the 'pathnames' property instead.
--
Wendy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Jeremy-
A couple of things:
1. Not sure what version of Struts you're using, but at least according
to
http://struts.apache.org/1.2.9/userGuide/building_view.html#validator,
the "property" attribute for the validator should have the value of
"pathnames" and not th
Jeremy-
A couple of things:
1. Not sure what version of Struts you're using, but at least according
to
http://struts.apache.org/1.2.9/userGuide/building_view.html#validator,
the "property" attribute for the validator should have the value of
"pathnames" and not the
age itself.
-Richard
-Original Message-
From: Kim Brianne Go [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 12:15 AM
To: Struts Users Mailing List
Subject: Re: Problem with Validator it does not reload request attributes
Thanks for the suggestions.
I tried this and it works if the
What class is your sapinscription.form.StartSubscriptionForm extending?
-Richard
-Original Message-
From: Jeremy Jardin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 3:05 AM
To: user@struts.apache.org
Subject: pb using validator it does not work !
Hi,
I'm trying t
Hi,
I'm trying to use validator plugin in my application, and it does not work
at all !
First, I've just add in my jsp.
I've written a basic validation.xml file like this :
Then, I've also a classic validation-rules.xml file, with usefull rules.
Thoses
te()) forwarded to a jsp form page and once a form has
> been submitted or validated then returns with error messages the values
> from
> request.setAttribute() is no longer accessible.
>
> Here's an example...
>
> A form has an OptionsCollections populated using the
> r
On 7/19/06, harriquitawn tawn tawn <[EMAIL PROTECTED]> wrote:
I have configured 2 struts-config.xml files (struts-config1.xml and
struts-config2.xml), two validation.xml files (validation1.xml and
validation2.xml), one validator-rules.xml and the web.xml file.
...
When I execute it, I
I have configured 2 struts-config.xml files (struts-config1.xml and
struts-config2.xml), two validation.xml files (validation1.xml and
validation2.xml), one validator-rules.xml and the web.xml file.
Web xml file:
...
/WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml
...
In struts
A form has an OptionsCollections populated using the
request.setAttribute()...
from an action class. I applied the Validator (Server-side) to perform
input validations, everything works well aside from the problem specific
to
the OptionCollections... since it requires the values sent to the jsp
page
prio
: Wednesday, July 19, 2006 10:23 AM
To: Struts Users Mailing List
Subject: Problem with Validator it does not reload request attributes
Good Day,
I was just wondering if anyone has a clue on how to retain request values (
request.setAttribute()) forwarded to a jsp form page and once a form h
;s an example...
A form has an OptionsCollections populated using the request.setAttribute()...
from an action class. I applied the Validator (Server-side) to perform
input validations, everything works well aside from the problem specific to
the OptionCollections... since it requires the values se
arun kumar wrote:
Hi all,
I am using struts1.1 and i am using validator framework.I have a problem
regarding branching of validation and optional validation of some fields.
The situation is like...
I have a search form which contains two tabs search by number and search by
name .I am using
ding zeros might mean it gets treated as hex.
Also did you mean "00,01" because it doesn't accept a "comma"
character - needs to be a "." for decimal points. From memory Struts
1.3 / Validator 1.3.0 has some localized versions that do accept ","
for c
Hi people, I´m newbie in Struts World...
I´m trying to configure the Struts validator.xml with floatRange argument
but it don´t work correctly. The validator doesn´t check the decimal value
of the 'min' and
me) to compare
the
strings...
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
"Raghuveer" <[EMAIL PROTECTED]>
14/07/2006 05:18 PM
Please respond to "Struts Users Mailing List&
05:18 PM
Please respond to "Struts Users Mailing List"
To:
cc:
Subject: Compare two strings in Validator frame work
How to Compare two strings in validator framework?
What i ne
How to Compare two strings in validator framework?
What i need to do in validation.xml.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I am using struts1.1 and i am using validator framework.I have a problem
regarding branching of validation and optional validation of some fields.
The situation is like...
I have a search form which contains two tabs search by number and search by
name .I am using a single action
{1}
will replace {0}
will replace {1}
The elements are a completely separate thing - each validator
has specific requirements to be configured with certain variables - so
for example the "mask" validator needs a "mask" var, the "intRange"
validator needs "m
At some point in the past, my log files would include nicely indented
information on all of my validation rules. I can't seem to get that
to happen anymore with Struts 1.3.5-SNAPSHOT and Validator 1.3.0.
log4j.properties has:
log4j.category.org.apache.commons.validator=DEBUG,
.
Is there any solution for it?
Thanks for your help.
--
View this message in context:
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5314885
Sent from the Struts - User forum at Nabbl
I'm reading the validator 1.1.3 DTD file and I'm trying to understand the
purpose of the "position" attribute in the element and the
element itself. According to the DTD: 'The "arg" element defines a
replacement value to use with the message template for
.
Thanks for your help
--
View this message in context:
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5291882
Sent from the Struts - User forum at Nabble.com.
-
To unsubscribe, e-mail
Hi,
mosho schrieb:
I have another question, I was just trying to use LookupDispatchAction. It
looks like if I am extending LookupDispatchAction, I don't have to use
excute method. Is that right?
That's right.
I can do all the processing in the respective
previous and next methods.
Previous
ou are right my application is a wizard.
--
View this message in context:
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5290575
Sent from the Struts - User forum at Nabble.com.
-
To unsubscribe,
e and use client
side script to set the page request parameter.
I am new to this, all your help is appreciated.
Mosho
--
View this message in context:
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5290199
Sent from the Struts - User forum at Nabbl
#x27;s available
in Struts 1.2.9
http://struts.apache.org/1.2.9/api/org/apache/struts/actions/EventDispatchAction.html
I have few concerns using lookupdispatch action,
1. Will I be able to validate using struts validator?
2. I need to validate only when next button is hit, is that possible?
Yes,
]
Sent: Wednesday, July 12, 2006 10:20 AM
To: Struts Users Mailing List
Subject: Re: Does validator work with Lookup dispatch action
mosho wrote:
> I have few concerns using lookupdispatch action, 1. Will I be able to
> validate using struts validator?
> 2. I need to validate only when next
mosho wrote:
I have few concerns using lookupdispatch action,
1. Will I be able to validate using struts validator?
2. I need to validate only when next button is hit, is that possible?
Is there any tutorial avialable for using lookup dispatch action.
I've done something similar by expli
Hi,
I am using struts for my application. I have 3 buttons in my form i.e
prev,next,clear.
I read few articles and found that Lookup dispatch action will be the best
option to use.
I have few concerns using lookupdispatch action,
1. Will I be able to validate using struts validator?
2. I need
On 6/29/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
On 6/29/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:
> David Friedman wrote:
> > And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF
> > file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF
> >
On 6/29/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:
David Friedman wrote:
> And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF
> file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF
> file with this in it:
>
I've found that this isn't always relia
David Friedman wrote:
And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF
file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF
file with this in it:
I've found that this isn't always reliable -- commons-beanutils.jar in
struts 1.2.9, for example,
Struts 1.2.9 is compatible with Validator 1.3.0 (I have that deployed
in production) .
Validator 1.3.0 was primarily a bug fix for Validator 1.2.0 and was
going to be version 1.2.1 - but as there was a whole set of new
classes (which don't currently affect Struts because it doesn'
I believe the minimum java build it is compatible with is under the
"Build-Jdk" unless you are using 1.5 with a compatibility flag. I'm just
not sure if or how that would be indicated in the MANIFEST.MF file. As for
the later versions of the commons validator, I can only guess f
You know, I saw that, but a co-worker told me that it was the version of
Java that the package was compatible with so I didn't give it a second
thought...he has been flogged and beaten. :-)
Any idea of the ramifications of using validator 1.3.0 w/ Struts 1.2.9?
-adam
David Friedman
ckage: org.apache.commons.validator
Build-Jdk: 1.4.2_05
Extension-Name: commons-validator
Specification-Title: Commons Validator
Specification-Vendor: The Apache Software Foundation
Implementation-Title: org.apache.commons.validator
Implementation-Vendor: The Apache Software Foundation
Implementation-Version:
I think I've answered the first part of my question: looking in the
commons-validator.jar file that comes with Struts 1.2.9, the class files are
dated 12 NOV 2004 and the source package for validator 1.1.4 on the mirrors
have the same date, so I think I can assume that Struts 1.2.9 comes
Hi-
Quick question:
What is the version of the commons-validator that comes with Struts
1.2.8 and 1.2.9? Also, if, for Struts 1.2.9, the version of the
validator is not 1.3.0, would there be any problems if I were to replace
the commons-validator.jar file that comes with Struts 1.2.9 w/ the
Add the three validator formset like:
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
"Mississippi John Hurt" <[EM
Hi,
How can I use the validator plugin to validate a property with a compound
rule such as the property must be both
1) 9 digits long
2) contains an uppercase letter
3) contains a symbol
I know how to do each individually, but how to make it validate where all 3
have to be true for success
David,
Thanks a lot! I understood the whole concept now.
It's working perfectly!!!
Thanks again!
Rosh
--
View this message in context:
http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5089649
Sent from the Struts - User forum at Nabbl
Rosh,
> I want to use struts validator and just control
> validation manually. Why do I need saveErrors()
> method and what does it do? Isn't the validator
> does all that. I am little confused.
If you are going to call the validation manually, then you will have to
perform t
I really appreciate all your help.
David,
I want to use struts validator and just control validation manually. Why do
I need saveErrors() method and what does it do? Isn't the validator does all
that. I am little confused.
I am pasting my execute method below, please let me know what sho
Hi just put the into the validator-rules.xml
of the Struts Validation Framework. And create a Java class contain the
validation method as I posted before. If you want to use it in your
code, do something like this:
Good luck
Pankaj Gupta wrote:
>
> Hi,
>
> I tried using y
rrors, Validator validator,
HttpServletRequest request) {
boolean result = true;
try {
String value = ValidatorUtils.getValueAsString(bean,
field.getProperty());
if (!GenericValidator.isBlankOrNull(value)) {
result = Pattern.matches("[0-2][\\d]
g
Subject: RE: Question about Struts validator
Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.
I am pasting part of my code for you to take a look and let me know where I
am goi
On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:
Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.
...
--Struts config part--
You need to set validate="false" in the actio
alidate( mapping, request );
}
return mapping.findForward("success");
---JSP file---
.
.
--
View this message in context:
http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074256
Sent from th
alidate( mapping, request );
}
return mapping.findForward("success");
---JSP file---
.
.
--
View this message in context:
http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074217
Sent from th
in the past, I thought I would emphasize the point for you. :)
Regards,
David
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 4:27 PM
To: Struts Users Mailing List
Subject: Re: Question about Struts validator
On 6/27/06, mosho <[EMAIL PRO
On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:
If I call validate method manually, can I still use validator framework and
use the input attribute in the config file to display the errors?
I need to validate only if form is submitted by clicking on a button.
If, yes can you show me w
Thanks David for your reply.
If I call validate method manually, can I still use validator framework and
use the input attribute in the config file to display the errors?
I need to validate only if form is submitted by clicking on a button.
If, yes can you show me with an example how to call
onday, June 26, 2006 4:20 PM
To: user@struts.apache.org
Subject: Question about Struts validator
Hi All,
I want to validate a form by using struts validator, it is working fine. It
validates the form if I click submit button, and it also validates the form
if I pass it as a url
for example: http:
Hi All,
I want to validate a form by using struts validator, it is working fine. It
validates the form if I click submit button, and it also validates the form
if I pass it as a url
for example: http://111.22.80.244:8989/eNOI/test.do
I want to validate the form only if I hit submit button not by
day, June 22, 2006 10:50 AM
To: Struts Users Mailing List
Subject: Re: Struts Validator: form value1 < form value2
The struts validator guide says you can only join 2 values with and or
or. I'm guessing that means you either have to put in a lot more
parentheses or that you can't use and
On 6/22/06, The Jasper <[EMAIL PROTECTED]> wrote:
The struts validator guide says you can only join 2 values with and or
or. I'm guessing that means you either have to put in a lot more
parentheses or that you can't use and or or more than once. I would
first try parenthesizing e
The struts validator guide says you can only join 2 values with and or
or. I'm guessing that means you either have to put in a lot more
parentheses or that you can't use and or or more than once. I would
first try parenthesizing everything.
mvg,
Jasper
On 6/22/06, Jeremy Nix <[EM
thwest Financial Services, Ltd.
(513) 621-6699 x1158
-Original Message-
From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 4:01 AM
To: Struts Users Mailing List
Subject: Re: Struts Validator: form value1 < form value2
Yeah validwhen can do it. anyway these an
Yeah validwhen can do it. anyway these antlr expressions are not very
intuitive.
If You have a problem let me kow i will try to help
2006/6/22, The Jasper <[EMAIL PROTECTED]>:
hi,
the validwhen validator can do what you want.
mvg,
Jasper
On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTE
701 - 800 of 1919 matches
Mail list logo