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 . All the above 3

Re: Struts Validator and Select boxes

2004-03-26 Thread Niall Pemberton
in this example formFromDay, formFromYear, formToMonth, formToDay, formToYear). Niall - Original Message - 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

RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
/ /form-bean Regards, Janarthan S -Original 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

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 - public static boolean validateDates(Object

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 Hi there, I am new to Struts

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

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

RE: Struts validator Regular Expressions

2004-03-24 Thread Takhar, Sandeep
' 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 validator config file. Thanks, JP

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, regex rox

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 [EMAIL PROTECTED] To: Struts Users

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 validator Regular

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 serve well over

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 greetings stefan

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

Re: Map-backed Forms and Struts Validator

2004-03-18 Thread Adam Hardy
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 validator docs

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

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

2004-03-18 Thread Prasad, Kamakshya
: 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, 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

[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

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

2004-03-18 Thread Axel Groß
path=/resolveAsset Regards 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, if you use

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 for me to figure out

RE: [SOLVED] Struts Validator prints all javascript functions

2004-03-17 Thread Kunal H. Parikh
List' Subject: Struts Validator prints all javascript functions 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

RE: [SOLVED] Struts Validator prints all javascript functions

2004-03-17 Thread Kunal H. Parikh
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 in the JavascriptValidatorTag class. By default

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

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 a resource

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 not sure why

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 functions

Re: Struts Validator prints all javascript functions

2004-03-15 Thread Theodosios Paschalidis
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: 'Struts Users Mailing List' Subject: RE: Struts

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:[EMAIL

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 code (FYI

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 this expected

Re: Struts Validator prints all javascript functions

2004-03-14 Thread Marino A. Jonsson
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 this expected

RE: Struts Validator prints all javascript functions

2004-03-14 Thread Kunal H. Parikh
] 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 rendered too (instead of just the relevant static methods). I haven't tested 1.2 though. Marino Joe Germuska

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 fails is struts saves

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

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

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 framework. I've

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 the Validator framework. I've

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 html:multibox form item. Unfortunatly the javascript generator does not generate the JavaScript needed to validate this. I read somewhere

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

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

Validator classes and validator-rules.xml

2004-03-08 Thread Chris Searle
the validator-rules.xml file: validator name=required classname=org.apache.struts.validator.FieldChecks method=validateRequired methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction

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: Ramachandran

Re: Validator classes and validator-rules.xml

2004-03-08 Thread Adam Hardy
in the NoSuchMethodException appears to match the validator-rules.xml file: validator name=required classname=org.apache.struts.validator.FieldChecks method=validateRequired methodParams=java.lang.Object

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: formset form name=someForm field property=email depends=validwhen,email arg0 key=email.error_label/ var var-nametest/var-name var-value

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. field property=cocNumber depends=integer

Re: Validator doubt

2004-03-05 Thread Adam Hardy
On 03/05/2004 12:33 PM MOHAN RADHAKRISHNAN wrote: field property=cocNumber depends=integer msg name=integer key=error.coc.check/ arg0 key=label.coc.incident/ /field So if I input a value that is not a integer in

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 field property=windSpeed depends=integer

Re: Numeric validator

2004-03-04 Thread Niall Pemberton
List' [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. What could be the problem ? validation.xml

RE: Numeric validator

2004-03-04 Thread MOHAN RADHAKRISHNAN
'. 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: html:errors/ or errors

Re: Numeric validator

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

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 it? I

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 - or is it? I need the latest

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 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 surprised there's no javascript

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-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 with the struts validator I`ve been

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' validator is part

RE: Validator multiple message-resources

2004-03-02 Thread Mainguy, Mike
eyes off the goal -Original Message- From: [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

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: Struts logic combined with the struts

Re: Struts logic combined with the struts validator

2004-03-02 Thread Matt Bathje
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 the struts validator Maybe i`ll better rephrase my

Re: Struts logic combined with the struts validator

2004-03-02 Thread Alexander Craen
: 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 put in an else (or a logic:notEqual in your case) which prints out

Re: Struts logic combined with the struts validator

2004-03-02 Thread Alexander Craen
a validator like requiredif but based on beans from somewhere in your scope struts logic can work on beans from your session or request scope because it has streight access to the pagecontext I dont find a way to really access my pageContext in the validator. but do you want your validator actually reading

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 which

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 this so that I can

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 for myFirstDate

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 using the existing

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: form name=form field property=emailDate depends=required

Re: custom validator question

2004-02-26 Thread Niall Pemberton
: Re: custom validator question Specify the second field as var field property=myFirstDate depends=date,dateCompare var var-namedatePattern/var-name var-valuedd/MM//var-value /var var var-namecompareDate/var-name var-valuemySecondDate

Re: custom validator question

2004-02-26 Thread Niall Pemberton
[IT] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:54 PM Subject: custom validator question I'm creating a custom validator to enforce a = relationship between 2 date fields and am having a problem. A validator method gets a Field arg for the field with which it's

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

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

2004-02-25 Thread Paul, R. Chip
, 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 javascript

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

2004-02-25 Thread russo
File = struts-config.xml Validator plugin elements: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml/ set-property property=stopOnFirstError value=false/ /plug

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: plug-in className

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 wrapper function

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 html 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 % -Ryan

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

2004-02-25 Thread Mike Millson
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 wrapper function built by Validator and named the way I specified? Yes

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

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

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 name=xxxDates classname=com.xxxValidator method=validatexxxDates methodParams=java.lang.Object

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, save list, all

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/paste

Re: Validator and DispatchAction

2004-02-18 Thread Carl Walker
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; 2) the action that processes my form

RE: Validator and DispatchAction

2004-02-18 Thread Renato Romano
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 all my

RE: Validator and DispatchAction

2004-02-18 Thread Barnett, Brian W.
, 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 extend ValidatorForm; 2

RE: Validator and DispatchAction

2004-02-18 Thread Nicholas L Mohler
Users Mailing List' [EMAIL PROTECTED] | | cc: | | Subject: RE: Validator

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 someone point me in the direction

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 tiles

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 defined in each module config file

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 and then all

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 guess it's

Re: Separating Strut and Validator errors

2004-02-16 Thread Niall Pemberton
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 Struts In Action to handle

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 no affect. form-bean name=acoSummaryInitForm

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 ...had no affect. cheers

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 reset the values

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 nForm.html#initialize

RE: Need help on making Custom Validator work

2004-02-12 Thread Pingili, Madhupal
: 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 in this class and I enabled the validator and struts.action

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 see all the messages

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 Hi All, I have developed

Re: repost: validator retrieving data

2004-02-09 Thread Michele Callegari
If there are 2 actions, one to prepare the page and one to process the user input, we define the input attribute value of the process action mapping to be the URL of the prepare action. I think it's right, I think it's right only in simple cases If your prepare means: - Putting in the

  1   2   3   4   5   6   7   8   9   10   >