Validator lost data when go back to form

2006-08-04 Thread Jean-Marie Pitre
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 : Re: Messages and Validator

2006-08-04 Thread Jean-Marie Pitre
 : 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

RE: validate integer with a comma thousands seperator using Validator

2006-08-04 Thread fea jabi
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

RE: Validator not getting called and I can't see why

2006-08-04 Thread Givler, Eric
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

Re: Validator not getting called and I can't see why

2006-08-03 Thread Matt Kurjanowicz
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

Validator not getting called and I can't see why

2006-08-03 Thread Bart Busschots
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

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Scott Van Wart
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

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Adam Gordon
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

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Monkeyden
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

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Scott Van Wart
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

RE: validate integer with a comma thousands seperator using Validator

2006-08-03 Thread Givler, Eric
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

RE: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Adam Gordon
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

RE: validate integer with a comma thousands seperator using Validator

2006-08-03 Thread fea jabi
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

Re: Messages and Validator

2006-08-02 Thread Laurie Harper
[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

Accepting multiple date masks with the "date" validator

2006-08-02 Thread Scott Van Wart
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

Re: Messages and Validator

2006-08-02 Thread Romu
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

validate integer with a comma thousands seperator using Validator

2006-08-02 Thread fea jabi
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

Messages and Validator

2006-08-02 Thread Jean-Marie Pitre
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

Validating through validator framework

2006-08-01 Thread Rauf Khan
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

Re: pb using validator with struts1.2.9

2006-07-27 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Adam Gordon
-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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
I've change my validwhen rule into this : test (((subscriptionType !=1)AND(*THIS*!=null)) OR (subscriptionType==1)) but it still

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
-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 ..

Re: pb using validator with struts1.2.9

2006-07-26 Thread Irwan Nurwandi
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Irwan Nurwandi
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
-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

Re: pb using validator with struts1.2.9

2006-07-25 Thread Adam Gordon
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

Re: pb using validator with struts1.2.9

2006-07-25 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-25 Thread Adam Gordon
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 :

pb using validator with struts1.2.9

2006-07-25 Thread Jeremy Jardin
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

Re: Passing two fields to a custom validator

2006-07-21 Thread Niall Pemberton
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

Passing two fields to a custom validator

2006-07-21 Thread Scott Van Wart
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

Re: pb using validator it does not work !

2006-07-21 Thread Jeremy Jardin
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

RE: pb using validator it does not work !

2006-07-20 Thread Adam Gordon
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

Re: pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
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

Re: pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
: 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

Re: pb using validator it does not work !

2006-07-20 Thread Martin Gainty
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

Re: pb using validator it does not work !

2006-07-20 Thread Wendy Smoak
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:

RE: pb using validator it does not work !

2006-07-20 Thread Adam Gordon
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

Re: pb using validator it does not work !

2006-07-20 Thread Adam Gordon
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

RE: Problem with Validator it does not reload request attributes

2006-07-20 Thread Yee, Richard K CTR DMDC
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

RE: pb using validator it does not work !

2006-07-20 Thread Yee, Richard K CTR DMDC
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

pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
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

Re: Problem with Validator it does not reload request attributes

2006-07-20 Thread Kim Brianne Go
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

Re: Validator issue

2006-07-19 Thread Wendy Smoak
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

Validator issue

2006-07-19 Thread harriquitawn tawn tawn
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

Re: Problem with Validator it does not reload request attributes

2006-07-19 Thread Adam Gordon
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

RE: Problem with Validator it does not reload request attributes

2006-07-19 Thread Krishna, Hari
: 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

Problem with Validator it does not reload request attributes

2006-07-18 Thread Kim Brianne Go
;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

Re: Branching inside validator framework? [Needs Help........!]

2006-07-18 Thread Laurie Harper
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

Re: Problem with floatRange in Struts Validator

2006-07-15 Thread Niall Pemberton
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

Problem with floatRange in Struts Validator

2006-07-15 Thread Marcelo V. F. Menezes
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 &#

Re: Compare two strings in Validator frame work]

2006-07-14 Thread Adam Gordon
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&

Re: Compare two strings in Validator frame work

2006-07-14 Thread paz . periasamy
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

Compare two strings in Validator frame work

2006-07-14 Thread Raghuveer
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]

Branching inside validator framework? [Needs Help........!]

2006-07-13 Thread arun kumar
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

Re: Question on field/arg element in validator XML file

2006-07-13 Thread Niall Pemberton
{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

Verbose logging from Validator?

2006-07-13 Thread Wendy Smoak
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,

Re: Does validator work with Lookup dispatch action

2006-07-13 Thread mosho
. 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

Question on field/arg element in validator XML file

2006-07-13 Thread Adam Gordon
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

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
. 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

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread Juergen Kopper
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

RE: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
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,

RE: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
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

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread Wendy Smoak
#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,

RE: Does validator work with Lookup dispatch action

2006-07-12 Thread Samere, Adam J
] 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

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread David Durham
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

Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
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

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
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 > >

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
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

Re: Quick Struts/Validator version question

2006-06-29 Thread Scott Van Wart
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,

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
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'

RE: Quick Struts/Validator version question

2006-06-29 Thread David Friedman
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

Re: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
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

RE: Quick Struts/Validator version question

2006-06-29 Thread 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:

RE: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
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

Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
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

Re: Struts Validator, multiple checks on single property

2006-06-28 Thread paz . periasamy
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

Struts Validator, multiple checks on single property

2006-06-28 Thread Mississippi John Hurt
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

RE: Question about Struts validator

2006-06-28 Thread mosho
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

RE: Question about Struts validator

2006-06-28 Thread David Friedman
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

RE: Question about Struts validator

2006-06-28 Thread mosho
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

Re: Time validator

2006-06-28 Thread Truong Xuan Tinh
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

Re: Time validator

2006-06-27 Thread Pankaj Gupta
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]

RE: Question about Struts validator

2006-06-27 Thread David Friedman
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

Re: Question about Struts validator

2006-06-27 Thread Wendy Smoak
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

RE: Question about Struts validator

2006-06-27 Thread mosho
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

RE: Question about Struts validator

2006-06-27 Thread mosho
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

RE: Question about Struts validator

2006-06-27 Thread David Friedman
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

Re: Question about Struts validator

2006-06-27 Thread Wendy Smoak
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

RE: Question about Struts validator

2006-06-27 Thread mosho
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

RE: Question about Struts validator

2006-06-26 Thread David Friedman
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:

Question about Struts validator

2006-06-26 Thread mosho
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

RE: Struts Validator: form value1 < form value2

2006-06-22 Thread Jeremy Nix
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

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread Niall Pemberton
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

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread The Jasper
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

RE: Struts Validator: form value1 < form value2

2006-06-22 Thread Jeremy Nix
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

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread Jakub Milkiewicz
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

<    3   4   5   6   7   8   9   10   11   12   >