RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 8:55 PM To: Struts Users Mailing List Subject: Re: Struts Validator and Select boxes Posting whats in your validation.xml for the form and the bit of your jsp with your select fields would be helpfull. If you

Re: Struts Validator and Select boxes

2004-03-26 Thread Niall Pemberton
From: "Janarthan Sathiamurthy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 25, 2004 4:46 PM Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as "MM" "DD" "&quo

Any Takers ?RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
Any help/takers ? -Original Message- From: Janarthan Sathiamurthy Sent: Thursday, March 25, 2004 10:16 PM To: [EMAIL PROTECTED] Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as "MM" "DD" "Y

Struts Validator and Select boxes

2004-03-25 Thread Janarthan Sathiamurthy
Hi, I am using Struts validator. One page of mine has dates displayed as "MM" "DD" "". All the above 3 are displayed in seprate combo/select boxes. I need to do some custom validations on these fields. I wrote a custom class for the same Looks like - publi

RE: Struts validator Regular Expressions

2004-03-24 Thread Janarthan Sathiamurthy
Hi, This is a good one to get started - http://weblogtoolscollection.com/regex/regex.php Best Regards, Janarthan S -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 12:03 AM To: 'Struts Users Mailing List' Subject: Struts validat

Re: Struts validator Regular Expressions

2004-03-24 Thread Niall Pemberton
Validator does use ORO - There is an applet you can play with to test your regexp: http://jakarta.apache.org/oro/demo.html Choose the "contains" option and start/end your regular expressions with ^ and $ Niall - Original Message - From: "Takhar, Sandeep" &l

Re: Struts validator Regular Expressions

2004-03-24 Thread Frank Schaare
Hi, this should be very close to \d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3} I need to validate an IP address and I don't know how is the syntax in the validator config file. take your time to study this: http://java.sun.com/docs/books/tutorial/extra/regex/ It's worth the trouble,

RE: Struts validator Regular Expressions

2004-03-24 Thread Takhar, Sandeep
Struts Users Mailing List' Subject: Struts validator Regular Expressions Hello! Do you know any document where can I learn how to build regular expressions for Struts Validator? I need to validate an IP address and I don't know how is the syntax in the

Struts validator Regular Expressions

2004-03-24 Thread Joao Batistella
Hello! Do you know any document where can I learn how to build regular expressions for Struts Validator? I need to validate an IP address and I don't know how is the syntax in the validator config file. Thanks, JP

Validator and Resourcebundles and modules

2004-03-24 Thread hermod . opstvedt
Hi Is there a way of telling the Validator which Resourcebundle it should get its resources from? I have multi-module Strut application, each module has its own Resourcebundle (ApplicationResources-moda.poperties, ApplicationResources-modb.poperties etc). I have not been able to figure out how to

Re: Struts Validator

2004-03-24 Thread Niall Pemberton
Whats missing from your question is how are you identifying which "client" a user belongs to? Niall - Original Message - From: "Matthew Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 22, 2004 12:09 PM Subject: Struts Validator H

Struts Validator

2004-03-22 Thread Matthew Clark
Hi there, I am new to Struts and this mailing list but by no means new to Java. I have been reading the "Struts in Action" book and taken a quick look at the API etc and have a simple question regarding the Validator in my environment. We are an Application Service Provider and

Re: validator form and OR-relations between fields

2004-03-19 Thread Stefan Burkard
ok, i found myself some infos at http://jakarta.apache.org/struts/userGuide/dev_validator.html ist there any possibility to use the struts 1.2.0-validators without using a nightly build? something like a milestone-build perhaps? or by using the commons validator itself? thanks and greetings

validator form and OR-relations between fields

2004-03-19 Thread Stefan Burkard
hi struts-users is it possible with the validator-framework to check if ONE of TWO fields contains text? i just see the possibility to set both fields as required or not, but not to say "if in one of the two fields is text, the forms ok" thanks and greeti

Re: Validator: Validation based on action path and not by form name

2004-03-18 Thread Axel Groß
egards > Kamakshya > > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 18, 2004 7:19 PM > To: Struts Users Mailing List > Subject: Re: Validator: Validation based on action path and not by form > name > > Kamakshya, >

[partly answered] Re: Validator: Validation based on action path and not by form name

2004-03-18 Thread Axel Gross
Hi Kamakshya! yes it is provided. just make it a ValidatorActionForm instead of a ValidatorForm. (check docs for further info) If you use DynaFormBeans, there is a DynaValdaterActionForm, but it never worked for me... hope this help, Axel On 2004-03-18 at 13:40:27 +0900, Prasad, Kamakshya wrote:

RE: Validator: Validation based on action path and not by form name

2004-03-18 Thread Prasad, Kamakshya
Subject: Re: Validator: Validation based on action path and not by form name Kamakshya, if you use the ValidatorActionForm instead of the ValidatorForm, then you can do this. Adam On 03/18/2004 08:26 AM Prasad, Kamakshya wrote: > Hi All, > > Is it possible for validation.xml to ta

Re: Validator: Validation based on action path and not by form name

2004-03-18 Thread Adam Hardy
Kamakshya, if you use the ValidatorActionForm instead of the ValidatorForm, then you can do this. Adam On 03/18/2004 08:26 AM Prasad, Kamakshya wrote: Hi All, Is it possible for validation.xml to take action path attribute instead of form name for putting javascript validation rules for a page

Re: Map-backed Forms and Struts Validator

2004-03-18 Thread Adam Hardy
. Also it says you can't use validWhen until you upgrade to struts 1.2 or a nightly build. I admit, it doesn't look hopeful. Have you tried a simple test case using the syntax like in the ppt doc? Adam On 03/18/2004 12:56 AM Derek Richardson wrote: Read through the various Struts va

Validator: Validation based on action path and not by form name

2004-03-17 Thread Prasad, Kamakshya
Hi All, Is it possible for validation.xml to take action path attribute instead of form name for putting javascript validation rules for a page? I am having a page with lot of buttons, each mapping to a particular action path. I want to validate the screen elements based on these action paths

Validator: Validation based on action path and not by form name

2004-03-17 Thread Prasad, Kamakshya
Hi All, Is it possible for validation.xml to take action path attribute instead of form name for putting javascript validation rules for a page? I am having a page with lot of buttons, each mapping to a particular action path. I want to validate the screen elements based on these action paths

RE: [SOLVED] Struts Validator prints all javascript functions

2004-03-17 Thread Kunal H. Parikh
ruts Users Mailing List' Cc: 'Joe Germuska'; 'Theodosios Paschalidis' Subject: RE: [SOLVED] Struts Validator prints all javascript functions Hi All! After some debugging, I worked out that there are two variables "dynamicJavaScript" and "staticJavaScript"

RE: [SOLVED] Struts Validator prints all javascript functions

2004-03-17 Thread Kunal H. Parikh
e. to only display relevant JS methods, your tag should look like, cheers, kunal -Original Message- From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 08:55 To: 'Struts Users Mailing List' Subject: Struts Validator prints all javascrip

Map-backed Forms and Struts Validator

2004-03-17 Thread Derek Richardson
Read through the various Struts validator docs and the map-backed form faq but didn't see this. James Turner's "Indexed Properties and Validation" presentation (http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt) came close, but still not explicit enough

Re: Struts Validator prints all javascript functions

2004-03-15 Thread Theodosios Paschalidis
March 15, 2004 9:38 PM Subject: RE: Struts Validator prints all javascript functions Hi Guys ! Does anyone think that this could be happening because I am using Tiles ? Kunal -Original Message- From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 10:12 To: '

RE: Struts Validator prints all javascript functions

2004-03-15 Thread Kunal H. Parikh
Hi Guys ! Does anyone think that this could be happening because I am using Tiles ? Kunal -Original Message- From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 10:12 To: 'Struts Users Mailing List' Subject: RE: Struts Validator prints all javascript

RE: validator validwhen error (Repost)

2004-03-15 Thread Betty Koon
Anyone has any idea? I haven't seen anyone's reply. Thanks. -Betty -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 8:07 PM To: [EMAIL PROTECTED] Subject: validator validwhen error Hi, I got the following validator error, but no

FW: Insert arguments into Validator error messages?

2004-03-15 Thread Brendan Richards
Hi, I'm getting exactly this problem posted last year. I've seen many posts on validator resource bundles including this patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868 But have not found THE universally adopted solution. Just to restate the problem: I have

RE: Struts Validator prints all javascript functions

2004-03-14 Thread Kunal H. Parikh
:[EMAIL PROTECTED] On Behalf Of Marino A. Jonsson Sent: Monday, 15 March 2004 10:07 To: [EMAIL PROTECTED] Subject: Re: Struts Validator prints all javascript functions hmm ... that's not my experience - the dynamic parts are rendered as they should, but all the static javascript is then rendere

Re: Struts Validator prints all javascript functions

2004-03-14 Thread Marino A. Jonsson
ews:[EMAIL PROTECTED] > At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: > >Hi All! > > > >I am attempting to use Struts Validator. > > > >All works well, but I am only using the "required" validation in my code. > > > >However, the JavaScrip

Re: Struts Validator prints all javascript functions

2004-03-14 Thread Joe Germuska
At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: Hi All! I am attempting to use Struts Validator. All works well, but I am only using the "required" validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is thi

Struts Validator prints all javascript functions

2004-03-14 Thread Kunal H. Parikh
Hi All! I am attempting to use Struts Validator. All works well, but I am only using the "required" validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected behaviour? My

Re: Newbie needs help: Validator not working with Struts/Velocity

2004-03-14 Thread Marino A. Jonsson
I see nothing wrong - the actions look fine and #errorMarkup() should take care of displaying any form errors. Did you model this after the validator example in the velstruts appliction that comes with Velocity Tools 1.1-rc1? cheers, Marinó <[EMAIL PROTECTED]> wrote in message news:

Re: Newbie needs help: Validator not working with Struts/Velocity

2004-03-11 Thread Niall Pemberton
You say "No errors are appearing in either the catalina.out or localhost log file" - I don't think validator logs anything to those places and saying that makes me think "what are you expecting to happen when validation fails". The normal course of events when validation

Re: Newbie needs help: Validator not working with Struts/Velocity

2004-03-10 Thread Markus
> I'm fairly new to Struts, and have been trying to get my simple > application to work - using Struts 1.1, Velocity 1.3.1, Velocity > Tools 1.1-rc1, and Tomcat 4.1.29. The application (such as it is) > works as far as presentation and workflow - but _isn't_ working is >

Newbie needs help: Validator not working with Struts/Velocity

2004-03-10 Thread andy
I'm fairly new to Struts, and have been trying to get my simple application to work - using Struts 1.1, Velocity 1.3.1, Velocity Tools 1.1-rc1, and Tomcat 4.1.29. The application (such as it is) works as far as presentation and workflow - but _isn't_ working is the Validator frame

Re: Regarding Error in Validator - Urgent Help

2004-03-10 Thread Geeta Ramani
Hi Ramachandran: Here's a suggestion: look at line number 63 of the servlet (in your work directory) generated by your first.jsp. See what the code there is and that may give you an idea of what's going wrong.. (seems like a null pointer somewhere, so try to see what may be null in that line of c

Regarding Error in Validator - Urgent Help

2004-03-10 Thread Ramachandran
Hi Friends, I am using the validator to perform the validations. I am facing the error while perform such operations. Can anyone please help me regarding this one. I am having FirstForm conatins phone and email. For that i am performing the validation using validator. Please suugest me

Regarding Error in Validator

2004-03-09 Thread Ramachandran
Hi Friends, I am using the validator to perform the validations. I am facing the error while perform such operations. Can anyone please help me regarding this one. I am having LoginForm conatins username and password. For that i am performing the validation using validator. Please suugest me

validator framework / multibox and javascript validation

2004-03-09 Thread harm
Hi all, I have want to validate (client-side using javascript generated by the validator framework) if my user has at least selected one checkbox in my form item. Unfortunatly the javascript generator does not generate the JavaScript needed to validate this. I read somewhere on the

validator validwhen error

2004-03-08 Thread Betty Koon
Hi, I got the following validator error, but not sure why. here is my validator.xml and the exception: test ((actionType != 'x') or (*this* != null)) test ((editAction != &

Re: Validator classes and validator-rules.xml

2004-03-08 Thread Adam Hardy
n the NoSuchMethodException appears to match the validator-rules.xml file: apart from the fourth parameter (ActionMessages vs ActionErrors) but this is probably OK since ActionErrors is a subclass of ActionMessages. This parameter list also matches the javadoc. NB: This is the Nightly Build b

Re: Struts Validator

2004-03-08 Thread Niall Pemberton
They are in two places, the struts specific validator files are in the struts.jar - but validator is a commons component and its class files are in commons-validator.jar. Everything is shipped with the struts binary - look in the lib folder. - Original Message - From: "Ramacha

Validator classes and validator-rules.xml

2004-03-08 Thread Chris Searle
h the validator-rules.xml file: apart from the fourth parameter (ActionMessages vs ActionErrors) but this is probably OK since ActionErrors is a subclass of ActionMessages. This parameter list also matches the javadoc. NB: This is the Nightly Build binary download !!! I can't recall

Struts Validator

2004-03-08 Thread Ramachandran
Can any one please send me the URL of where struts validator files are. I want to use the validator in my project. So i am in the need pf such class files... Thanx, Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Validator doubt

2004-03-05 Thread Adam Hardy
On 03/05/2004 12:33 PM MOHAN RADHAKRISHNAN wrote: So if I input a value that is not a integer in this particular field I should see a message specified by Why are specifying a different msg key? There is a default one already 'error

Validator doubt

2004-03-05 Thread MOHAN RADHAKRISHNAN
Hi My validator only works for 'required' fields. Eventhough I have the following in the same XML it is not working. Is this right ? My configuration is right because the same validator works for 'required' fields.

Re: validator-rules.xml

2004-03-04 Thread Adam Hardy
OK, well I can't find the validator-rules.xml anywhere else, so I guess I'll have to download the struts 1.2 binary! I was looking through the validator's urlValidator class and it's pretty complicated with lots of perl-based pattern matching, so I'm not surpri

Re: validator-rules.xml

2004-03-04 Thread Niall Pemberton
validation-rules.xml is here http://cvs.apache.org/viewcvs.cgi/jakarta-struts/conf/share/ but, with struts 1.2 the javascript moved out of the XML into .js files in commons here: http://cvs.apache.org/viewcvs.cgi/jakarta-commons/validator/src/javascript/org/apache/commons/validator

RE: validator-rules.xml

2004-03-04 Thread Wendy Smoak
> From: Adam Hardy [mailto:[EMAIL PROTECTED] > Where can I get the latest validator-rules.xml from? In the 1.2.0 distribution, it's in the 'lib' subdirectory along with the .jar files. > Obviously I am assuming that this is a standard part of the > code base -

validator-rules.xml

2004-03-04 Thread Adam Hardy
Where can I get the latest validator-rules.xml from? I looked for it on jakarta-struts website and jakarta-commons, but can't find it. Even checked the archives before coming here to make myself look foolish. Obviously I am assuming that this is a standard part of the code base - or is

Re: Numeric validator

2004-03-04 Thread Mark Lowe
Mailing List; [EMAIL PROTECTED] Subject: Re: Numeric validator Your can either display all errors: or errors for a specific property. http://jakarta.apache.org/struts/userGuide/struts-html.html#errors - Original Message - From: "MOHAN RADHAKRISHNAN" <[EMAIL PROTE

RE: Numeric validator

2004-03-04 Thread MOHAN RADHAKRISHNAN
lies to is 'String'. Is that a problem ? Mohan -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 3:20 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Numeric validator Your can either display all errors: or e

Re: Numeric validator

2004-03-04 Thread Niall Pemberton
#x27;" <[EMAIL PROTECTED]> Sent: Thursday, March 04, 2004 9:08 AM Subject: Numeric validator > Hi > > There are the steps I am following for a numeric check with struts > validator. I don't see the proper message and the check is passing.

Numeric validator

2004-03-04 Thread MOHAN RADHAKRISHNAN
Hi There are the steps I am following for a numeric check with struts validator. I don't see the proper message and the check is passing. What could be the problem ? validation.xml in the properties

Re: JXPath Validator

2004-03-03 Thread Niall Pemberton
Sounds good to me. I don't know if the validator guys considered JXPath, but why don't you submit an enhacement request using bugzilla to commons with your JXPath validator attached (if you include JUnit tests you'll impress them even more). For some reason the 'validwhen&#

Re: Struts logic combined with the struts validator

2004-03-03 Thread Alexander Craen
is there anyone on this list who writes his own validators ? - Original Message - From: "Alexander Craen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 11:41 PM Subject: Re: Struts logic combined wi

JXPath Validator

2004-03-03 Thread Michael Nascimento Santos
Hi guys, I am just wondering: you guys have developed validwhen so we could have a more powerful validator, right? But, while using just commons-validator in a GUI (non-web) project, I noticed I could implement a very powerful validator using JXPath. Here is the code for the static method

Re: Struts logic combined with the struts validator

2004-03-02 Thread Alexander Craen
completely else? problem is that on the first page I ask 5 questions to the customer. Based on their choices the second form is built up. all business related stuff... I tried to write a validator like requiredif but based on beans from somewhere in your scope struts logic can work on beans from

Re: Struts logic combined with the struts validator

2004-03-02 Thread Alexander Craen
From: "Matt Bathje" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 3:24 PM Subject: Re: Struts logic combined with the struts validator > Alexander - > > Usually when I have this situation I just

Re: Struts logic combined with the struts validator

2004-03-02 Thread Matt Bathje
he requiredifpresent or something like that, but this always seemed much simpler. Matt Bathje - Original Message - From: "Alexander Craen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 8:14 AM Subject: Re: Struts logic combined with

Re: Struts logic combined with the struts validator

2004-03-02 Thread Alexander Craen
validator "requiredifpresent" ? or could I use the requiredif together with some logic based on values in other beans ? - Original Message - From: "Alexander Craen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 11:25 AM Subject

RE: Validator & multiple message-resources

2004-03-02 Thread Mainguy, Mike
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 7:42 PM To: [EMAIL PROTECTED] Subject: Validator & multiple message-resources Hi, I have successfully used validator with a single message resources file specified in the config file, everything works out fine. Since th

Validator & multiple message-resources

2004-03-01 Thread amind
Hi, I have successfully used validator with a single message resources file specified in the config file, everything works out fine. Since the project has gotten bigger, i created another message-resource file but when 'required' error happens, the message specifying the field name w

custom validator question

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

Re: custom validator question

2004-02-26 Thread Niall Pemberton
etVarValue("compareDate"); String compareDate = ValidatorUtils.getValueAsString(bean, compareDateProperty); Niall - Original Message - From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 26, 2004 2:54 PM Subject

Re: custom validator question

2004-02-26 Thread Niall Pemberton
rsday, February 26, 2004 3:17 PM Subject: Re: custom validator question > Specify the second field as > > > > datePattern > dd/MM/ > > > compareDate > mySecondDate > > > > Then in you

RE: custom validator question

2004-02-26 Thread claire knowles
I had a custom validator 'futureDate' for which I needed to pass in a date and time which were 2 different form fields, to check that the date was in the future. I passed 2 different values into a custom parameter using two args and vars:

RE: custom validator question

2004-02-26 Thread Anderson, James H [IT]
I guess I wasn't clear (also, I was a bit confused :) My validator is already working, and what you suggest below will get me the property name I need for display in an error msg. But how can I get the datePattern from mySecondDate? At the moment I'm assuming it'll be the same as

RE: custom validator question

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

Re: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread russo
Mike: I see what you're saying now. It's only showing all the errors of the same type at any one time dependending on the order the Validator functions are called. Sorry for the confusion. -Ryan ( <---darn newbies ) ---

Re: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread Mike Millson
se of Struts 1.1 I found that you can set this property on v1.1, but it doesn't do anything. Have you verified that you get both maxlength and required errors at the same time in one alert box? > > I assume you changed your calls to specific Validator functions to the > wra

Re: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread russo
Sorry: I missed the declarations at the top of my index.jsp The following precedes the tag: <%@ page session="false" %> <%@ page contentType="text/html;charset=windows-1252"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> -

Re: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread russo
Hi Mike: > Thank you. And if I understand correctly, this feature is not available > in the latest release build, v1.1. I guess I have to wait until v1.2 > comes out? > I'm using stable release of Struts 1.1 I assume you changed your calls to specific Validator functions to the

Re: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread Mike Millson
Thank you. And if I understand correctly, this feature is not available in the latest release build, v1.1. I guess I have to wait until v1.2 comes out? On Wed, 2004-02-25 at 14:18, [EMAIL PROTECTED] wrote: > File = struts-config.xml >> Validator plugin elements: > >

Re: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread russo
File = struts-config.xml >> Validator plugin elements: File = login.jsp >> form declaration: ... ... Where [BLAH] is the name of the action which handles your form submition. I'm a newbie, so if there's a better way fire away people. -Ryan On Wed, 25

RE: Bug in Validator javascript, not showing all errors?

2004-02-25 Thread Paul, R. Chip
ebruary 25, 2004 12:58 PM To: Struts Users Subject: Bug in Validator javascript, not showing all errors? I have a form with 1 text field and 1 password field: username: required and maxlength 10 password: required The return statement for the validateLoginForm function generated in the dynamic

Bug in Validator javascript, not showing all errors?

2004-02-25 Thread Mike Millson
I have a form with 1 text field and 1 password field: username: required and maxlength 10 password: required The return statement for the validateLoginForm function generated in the dynamic javascript: return validateMaxLength(form) && validateRequired(form); If I enter a username that is too l

validator + pre processing before foward

2004-02-21 Thread Felipe Nascimento
Hi all, I am using struts validator. I have a form that needs a object in the request to populate some bean:write outputs and some form input elements values. When I submit this form to an action mapping that has validate=true and the validation is not successfull, the user returns to the

Validator Order with custom validations

2004-02-20 Thread Ameer Ahmed
Hi All, I have the following setup for validating certain fields. I have written a custom validator for validating certain date logic. validation-rules.xml validator.xml datePatternStrict MM/dd/ secondProperty

RE: Validator and DispatchAction

2004-02-18 Thread Nicholas L Mohler
| | To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> | | cc: | | Subject: RE: Validator and DispatchAction

RE: Validator and DispatchAction

2004-02-18 Thread Barnett, Brian W.
Wednesday, February 18, 2004 6:43 AM To: 'Struts Users Mailing List' Subject: Validator and DispatchAction I'm quite new to the validator framework, and was trying to figure out how to use it. My situation is: 1) I want to perform server side validation, and so I made my form ext

RE: Validator and DispatchAction

2004-02-18 Thread Renato Romano
EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Carl Walker [mailto:[EMAIL PROTECTED] Sent: mercoledì 18 febbraio 2004 16.43 To: Struts Users Mailing List Subject: Re: Validator and DispatchAction I ran into the same problem and converted a

Re: Validator and DispatchAction

2004-02-18 Thread Carl Walker
ll fields is required, so validate=true for this one. Renato Romano wrote: > I'm quite new to the validator framework, and was trying to figure out > how to use it. My situation is: > 1) I want to perform server side validation, and so I made my form > extend ValidatorForm; &

RE: Validator / Tiles and modules - anybody done it?

2004-02-18 Thread Hibbs, David
I highly recommend specifying the validator plugin in each module's config file. It will save you much pain later on for a minimum of effort. Each module can refer to the same validator rules and form files without problem. And, after all, it's 5 minutes at the most to copy/p

Validator and DispatchAction

2004-02-18 Thread Renato Romano
I'm quite new to the validator framework, and was trying to figure out how to use it. My situation is: 1) I want to perform server side validation, and so I made my form extend ValidatorForm; 2) the action that processes my form is a DispatchAction, so I have methods like "edit"

RE: Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Bill Johnson
Thanks for the info David. One last question. Do you have to have the Validator plugin in every module's Struts config file if you simply want to have the same validation file for all modules? Can I just put the validator plugin definition in the default module's struts-config.xml an

RE: Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Hibbs, David
> I'm curious if anyone out there has gotten Validator > and/or Tiles working with Struts modules? Here are my > questions. If you can answer any of them it would be > a great help. Yep. Got 'em both working. > Do you have to have the validator plugin define

Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Bill Johnson
I'm curious if anyone out there has gotten Validator and/or Tiles working with Struts modules? Here are my questions. If you can answer any of them it would be a great help. Do you have to have the validator plugin defined in each module config file? If so, how? Do you have to have the

Validator Framework question

2004-02-17 Thread Simon Pett
Hi As I use the validator framework I'm reading the mail archive and I have come across a few comments like "One more reason to use Strings for all ActionForm properties?" though I haven't found a good discussion on why. Is this piece of advice still current, can som

Re: Separating Strut and Validator errors

2004-02-16 Thread Niall Pemberton
2004 10:41 PM Subject: Separating Strut and Validator errors Hi all, a quick newbie question. When I use an ActionError in my Action class in conjuction with the Validator, I get all my errors reported as server side validations (i.e. no java script). I have found the following code in the book

Separating Strut and Validator errors

2004-02-16 Thread Theodosios Paschalidis
Hi all, a quick newbie question. When I use an ActionError in my Action class in conjuction with the Validator, I get all my errors reported as server side validations (i.e. no java script). I have found the following code in the book "Struts In Action" to handle that but I

RE: Need help on making Custom Validator work

2004-02-12 Thread Pingili, Madhupal
e- > From: Pingili, Madhupal > Sent: Wednesday, February 11, 2004 2:19 PM > To: '[EMAIL PROTECTED]' > Subject: Need help on making Custom Validator work > > Hi All, > I have developed a validator for a special validation. > I have debug statements

RE: Dyna Validator Form values

2004-02-12 Thread Wendy Smoak
> From: Darren Massel [mailto:[EMAIL PROTECTED] > How do i reset the values of a Dyna Validator form that is > in the session? The 'initialize' method is inherited from DynaActionForm: <http://jakarta.apache.org/struts/api/org/apache/struts/action/DynaActio

RE: Dyna Validator Form values

2004-02-12 Thread Matthias Wessendorf
hi, perhaps you mean request.getSession().removeAttribute("nameOfFormBean"); cheers, -Original Message- From: Darren Massel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 7:08 PM To: '[EMAIL PROTECTED]' Subject: Dyna Validator Form values How do i

Dyna Validator Form values

2004-02-12 Thread Darren Massel
How do i reset the values of a Dyna Validator form that is in the session? So that when i link back to that form once it has been submitted the values are blank. In the Action form.reset(..) and form.set(String, "") intial="" in the form definition ...ha

Dyna Validator Form values

2004-02-12 Thread Darren Massel
How do i reset the values of a Dyna Validator form that is in the session? So that when i link back to that form once it has been submitted the values are blank. In the Action form.reset(..) and form.set(String, "") had

RE: Need help on making Custom Validator work

2004-02-11 Thread Navjot Singh
if it shows you just blank page then something is *null* somewhere >-Original Message- >From: Pingili, Madhupal [mailto:[EMAIL PROTECTED] >Sent: Thursday, February 12, 2004 12:49 AM >To: '[EMAIL PROTECTED]' >Subject: Need help on making Custom Validator work >

Need help on making Custom Validator work

2004-02-11 Thread Pingili, Madhupal
Hi All, I have developed a validator for a special validation. I have debug statements in this class and I enabled the validator and struts.action classes logging level to DEBUG. When I type an invalid field in my form and click on "search" button, the action gets invoked and I s

R: R: repost: validator & retrieving data

2004-02-09 Thread Leonardo Francalanci
> The input for the save action is the second action or the jsp > page if you use a filter. > Am i missing something? No! Yu're right! Why didn't I think about it!? THANK YOU (grazie...) - To unsubscribe, e-mail: [EMAIL PROTEC

  1   2   3   4   5   6   7   8   9   10   >