maxlength validator implies required???

2003-10-07 Thread Max Kremer
Hi, I'm using the maxlength validator as follows in validator.xml field property=description depends=maxlength arg0 key=prompt.description/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemaxlength/var-name var-value300/var-value /var /field But for some reason when

RE: maxlength validator implies required???

2003-10-07 Thread Fenderbosch, Eric
Take a look at the maxlength definition inside validator-rules.xml. validator name=maxlength classname=org.apache.struts.validator.FieldChecks method=validateMaxLength methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction

re[2]: maxlength validator implies required???

2003-10-07 Thread Max Kremer
Thats exactly what it was. The maxlength entry in my validator-rules.xml had a depends entry: depends=required I changed that and it now works the way I intended. Thanks for your help!! Take a look at the maxlength definition inside validator-rules.xml. validator name=maxlength

Validator validation on a String[] field

2003-10-06 Thread amind
Hi, Is there a way to validate a field specified in a org.apache.struts.validator.DynaValidatorForm as a java.langString[]. The field is used by a multibox. Thanks, Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Simple validator question

2003-10-03 Thread Jeroen Breedveld
Hi all, Is it possible to supply the msg element with the value the user entered in the form as the content of the arg element? My key errors.login.email.invalid is: {0} is an invalid email address So when a user enters 'foo' as an email adres I want an error message saying: 'foo is an invalid

Validator exception when not configured

2003-10-03 Thread Morten Primdahl
Hi, Is the validator initialization supposed to fail and print a stack trace in my log when I have not enabled it in my struts-config.xml? Running struts 1.1. Oct 3, 2003 11:03:47 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF

Re: Validator exception when not configured

2003-10-03 Thread Yann Cébron
Hi, Is the validator initialization supposed to fail and print a stack trace in my log when I have not enabled it in my struts-config.xml? Running struts 1.1. Oct 3, 2003 11:03:47 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB

Re: Validator exception when not configured

2003-10-03 Thread Morten Primdahl
INFO: Loading validation rules file from '/WEB-INF/validation.xml' Oct 3, 2003 11:03:48 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 67 column 11: The content of element type web-app must match web-app is in web.xml and has nothing to do with Validator ;-), see line

Re: Simple validator question

2003-10-03 Thread Jeff Kyser
Here's roughly what you want to do to get 'Foo is an invalid email address': Make sure you've added this to you ApplicationResources.properties file as the 'email' rule expects a message named 'errors.email' - check the code for it and you will see. errors.email={0} is an invalid e-mail

RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld
Hi Jeff, || -Original Message- || From: Jeff Kyser [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 14:24 || To: Struts Users Mailing List || Subject: Re: Simple validator question || ... || field property=emailField depends=email

RE: Simple validator question

2003-10-03 Thread Fenderbosch, Eric
Mailing List' Subject: RE: Simple validator question Hi Jeff, || -Original Message- || From: Jeff Kyser [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 14:24 || To: Struts Users Mailing List || Subject: Re: Simple validator question || ... || field

RE: Simple validator question

2003-10-03 Thread Jeroen Breedveld
|| -Original Message- || From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] || Sent: vrijdag 3 oktober 2003 15:19 || To: Struts Users Mailing List || Subject: RE: Simple validator question || || || I haven't tried it, but would something like this work? || || field

Use Validator for two actions on same jsp

2003-10-02 Thread Brian McSweeney
Hi all, Didn't really get any clear response on this before. Is it possible to validate two actions from one jsp using the validator. This is easiest to explain with a short bit of code: html:form action=/action1.do onsubmit=return validateAction1Form(this) method=post table width=100

RE: Use Validator for two actions on same jsp

2003-10-02 Thread Yuan, Saul (TOR-ML)
McSweeney [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 6:58 AM To: 'Struts Users Mailing List' Subject: Use Validator for two actions on same jsp Hi all, Didn't really get any clear response on this before. Is it possible to validate two actions from one jsp using

RE: Use Validator for two actions on same jsp

2003-10-02 Thread Brian McSweeney
Thanks Saul, You're solving all my problems :-) Cheers, Brian -Original Message- From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 14:05 To: Struts Users Mailing List Subject: RE: Use Validator for two actions on same jsp Havn't tried that though, but if you

RE: Use Validator for two actions on same jsp

2003-10-02 Thread Yuan, Saul (TOR-ML)
Great to be of some help. This is a wonderful community, isn't? Cheers, Saul -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:30 AM To: 'Struts Users Mailing List' Subject: RE: Use Validator for two actions on same jsp

RE: Use Validator for two actions on same jsp

2003-10-02 Thread Brian McSweeney
It's the best I've ever found :-) Whe-hey for struts-users! Thanks very much again, really appreciate it. Brian -Original Message- From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 14:49 To: Struts Users Mailing List Subject: RE: Use Validator for two actions

Problem with Validator with Nightly Build (2003-09-30)

2003-10-01 Thread dutrieux
Hello everyBody, I found a problem with the last Nightly Build (2003-09-30) with the Validator. If I try the "struts-validator" example (found in this build) and test the "Registration" example, you get this error message for each mandatory record :

Re: Problem with Validator with Nightly Build (2003-09-30)

2003-10-01 Thread dutrieux
Just a other information : if you modify in the "validator-rules.xml" file for each method parameter "org.apache.struts.action.ActionErrors" to org.apache.struts.action.ActionMessages" : the problem disapear and that work now perfectly. Olivier Dutrieux dutr

RE: Validator problem: html:messages tag and NullPointerException

2003-10-01 Thread Davide Bruzzone
Doh! Answered my own question: The page/form in question is using a combination of custom (i.e. using the validate method) and Validator validation, and one of the message keys in my own validate method was incorrect (i.e. The method was looking for a key that didn't exist). Cheers... Dave

Re: Problem with Validator with Nightly Build (2003-09-30)

2003-10-01 Thread Robert Leland
: if you modify in the "validator-rules.xml" file for each method parameter "org.apache.struts.action.ActionErrors" to org.apache.struts.action.ActionMessages" : the problem disapear and that work now perfectly. Olivier Dutrieux dutrieux a crit: Hell

Validator for Given Date ?

2003-10-01 Thread Lázaro Miguel Fung
Hi There is some way to use a declarative validator for a specific date or date rank ? for example validates dates since today ? TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Validator problem: html:messages tag and NullPointerException

2003-09-30 Thread Davide Bruzzone
Hello... I'm using the Struts Validator, and have come across some strange behavior: On only one of the pages that uses the Validator (Not all of them... Some of the pages that use the Validator work fine, which makes the problem even more confusing), the following code causes

Question about validator FieldChecks

2003-09-29 Thread Brandon Goodin
Why does org.apache.struts.validator.FieldChecks implement Serializable when it has nothing but static methods and static final instance variables? Just curious. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: validator question: show value of a field in error

2003-09-17 Thread Jean-Michel Garnier
We want to do exaclty the same. After many attempts, it seems that Struts 1.1 Validator does not provide this functionality. It seems that there will be an evolution in Struts 1.2 with the validwhen validator, see : Designing Complex Validations with validwhen, http://jakarta.apache.org/struts

Validator not configured properly?

2003-09-17 Thread Mohd Amin Mohd Din
plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml / /plug-in /snip In validation.xml snip form name

Using DispatchAction class with Struts Validator

2003-09-17 Thread Burhan Nazir
Got a problem thats been bugging me for a while: I'm using an action class that extends DispatchAction class. The methods in this class use the same ActionForm class (DynaValidatorActionForm). However, the validation requirments for each method in the dispatch class are different. I understand

RE: Using DispatchAction class with Struts Validator

2003-09-17 Thread Mike Jasnowski
12:50 PM To: [EMAIL PROTECTED] Subject: Using DispatchAction class with Struts Validator Got a problem thats been bugging me for a while: I'm using an action class that extends DispatchAction class. The methods in this class use the same ActionForm class (DynaValidatorActionForm). However

Re: Using DispatchAction class with Struts Validator

2003-09-17 Thread Burhan Nazir
Validator Got a problem thats been bugging me for a while: I'm using an action class that extends DispatchAction class. The methods in this class use the same ActionForm class (DynaValidatorActionForm). However, the validation requirments for each method in the dispatch class

RE: Validator not configured properly?

2003-09-17 Thread Mohd Amin Mohd Din
to do it would be using plain Action classes, but it would be nice if this could be done using a LookupDispatchAction class. Thanks -Original Message- From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:03 PM To: [EMAIL PROTECTED] Subject: Validator

newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I have a dumb question re: struts validator: How do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types in foo, how do I show 'foo' is not a valid email address as opposed to the more

RE: newbie validator question: show value of a field in error

2003-09-16 Thread Naveen Mudgal
PM To: Struts Users Mailing List Subject: newbie validator question: show value of a field in error I have a dumb question re: struts validator: How do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email

Re: newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I could certainly do this by hand in the validate() method of the form or in the action (which I have been doing this for the last few months), but I was hoping the validator could do it for me somehow... or maybe I misunderstood you? obviously concatenating strings would be bad due to i18n

[VALIDATOR] Validating indexed Select Values Fails

2003-09-16 Thread George Amaya
Sorry to repost this, but I wanted to make the subject clear. I have a form with multiple selects all with the same name and indexed values (i.e myValue[0]. myValue[1]...). When I sumbit my form to validate, validation quits when first select validation fails. Has anyone had this problem? And

validator, select and collection problem

2003-09-16 Thread koen boutsen
Hello I'm using a select in my jsp. I read in the archive that I have to put this in my Struts-config : form-property name=property1 type=java.lang.String[] / The problem is that I get an error now : form-property: Invalid data for attribute type in part property1 Does you know what I'm

validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I asked this earlier and did not receive any response, so i'll post it one more time with more supporting info... In validation.xml, how do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types

validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I asked this earlier and did not receive any response, so i'll post it one more time with more supporting info... In validation.xml, how do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types

RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-15 Thread Yuan, Saul (TOR-ML)
Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) If you would like to post a BugZilla report and provide a patch against

Re: Validator, DynaForms, and Collections

2003-09-13 Thread Joe @ Team345
know? David Graham wrote: Make sure your collection is stored in the session. If it's in the request you will lose it when returning to the input page. David --- Joe at Team345 [EMAIL PROTECTED] wrote: Hi, I'm using the Struts Validator (version 1.1 release) on DynaValidatorForms

Re: Validator, DynaForms, and Collections

2003-09-13 Thread David Graham
: Hi, I'm using the Struts Validator (version 1.1 release) on DynaValidatorForms. Everything seems to work just fine on forms that don't have collections on them. However, several of my forms have pull-down lists where I do something like: bean:define id=reasons name=MyFormName property

RE: Validator, DynaForms, and Collections

2003-09-13 Thread Robert Taylor
when your web application starts up and then a single copy is available to all users. robert -Original Message- From: Joe @ Team345 [mailto:[EMAIL PROTECTED] Sent: Saturday, September 13, 2003 9:26 AM To: Struts Users Mailing List Subject: Re: Validator, DynaForms, and Collections

Re: Validator, DynaForms, and Collections

2003-09-13 Thread Joe @ Team345
in the request you will lose it when returning to the input page. David --- Joe at Team345 [EMAIL PROTECTED] wrote: Hi, I'm using the Struts Validator (version 1.1 release) on DynaValidatorForms. Everything seems to work just fine on forms that don't have collections on them

RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Yuan, Saul (TOR-ML)
Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) I checked the validator-rules.xml file in the latest nightly built (Sep 12), I noticed

Validator, DynaForms, and Collections

2003-09-12 Thread Joe at Team345
Hi, I'm using the Struts Validator (version 1.1 release) on DynaValidatorForms. Everything seems to work just fine on forms that don't have collections on them. However, several of my forms have pull-down lists where I do something like: bean:define id=reasons name=MyFormName property

Re: Validator, DynaForms, and Collections

2003-09-12 Thread David Graham
Make sure your collection is stored in the session. If it's in the request you will lose it when returning to the input page. David --- Joe at Team345 [EMAIL PROTECTED] wrote: Hi, I'm using the Struts Validator (version 1.1 release) on DynaValidatorForms. Everything seems to work just

Re: Validator, DynaForms, and Collections

2003-09-12 Thread denis
is the action that precedes the JSP. Denis - Original Message - From: Joe at Team345 [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, September 12, 2003 11:30 AM Subject: Validator, DynaForms, and Collections Hi, I'm using the Struts Validator (version 1.1 release

Re: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Robert Leland
Yuan, Saul (TOR-ML) wrote: Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) If you would like to post a BugZilla report and provide a patch

Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-11 Thread Yuan, Saul (TOR-ML)
Hi, I have some problems validating multiple radio buttons and checkboxes, selections on the client side. Tracking down to the javascript code defined in validator-rules.xml, I found that the validateRequired(form) function doesn't deal with multiple checkboxes, selections at all

Re: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-11 Thread Robert Leland
in validator-rules.xml, I found that the validateRequired(form) function doesn't deal with multiple checkboxes, selections at all. For multiples radios, checkboxes etc, the field.type = undefined. Can somebody explain why is this? Thanks, Saul Validator-rules.xml

Integer Validator

2003-09-10 Thread Srinivas Gunturu
All, I have following validation rule defined on my form. medication.drugText is getting validated. However medication.formCode is not being enforced as required. form name=wrongFormForm field property=medication.drugText depends=required arg0

[validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
I'm having some trouble using the maxlength validation and I was hoping someone could give me some help. I have a form with one required field and one field with a maximum length of 2000 characters. When input validation fails for both fields I get the following messages (text in parentheses

Re: [Validator] E-Mail Verification

2003-09-09 Thread Gregory Seidman
On Mon, Sep 08, 2003 at 02:32:01PM -0700, David Graham wrote: } --- Paananen, Tero [EMAIL PROTECTED] wrote: } +1 on the new option but I think the allowed characters should be } } a-zA-Z0-9_.- } } -999 } } That's missing several perfectly valid

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
Try: arg0 name=maxlength key=${var:maxlength} resource=false/ The number after arg is the position in the message to replace so you need a 0. David --- Sgarlata Matt [EMAIL PROTECTED] wrote: I'm having some trouble using the maxlength validation and I was hoping someone could give me some

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
to me. I started with maxlength and created my own length function. The only difference I see is that I use key, name, resource and you're using name, key, resource. [And yes, my mask validator is probably redundant.] field property=socialSecurityNumberA

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
, key, resource. [And yes, my mask validator is probably redundant.] field property=socialSecurityNumberA depends=required,length,positiveNumber,mask msg name=length key=errors.lengthDigits/ arg0

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title resource=true/ arg1 name=maxlength key=${var:maxlength}

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
--- Sgarlata Matt [EMAIL PROTECTED] wrote: David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: That's correct, the default is true. Maybe it's broken when you don't provide a name attribute? I agree; I will add this info to BugZilla. Thanks again for all your help. David Matt - To unsubscribe,

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Mike Kienenberger
use key, name, resource and you're using name, key, resource. [And yes, my mask validator is probably redundant.] field property=socialSecurityNumberA depends=required,length,positiveNumber,mask msg name

[Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak
Is there a published specification on e-mail addresses? The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't think Validator would accept these, but apparently is it. If there's

Re: [Validator] E-Mail Verification

2003-09-08 Thread David Graham
--- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't think

RE: [Validator] E-Mail Verification

2003-09-08 Thread Paananen, Tero
Is there a published specification on e-mail addresses? The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't think Validator would accept these, but apparently is it. If there's

RE: [Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak
: Monday, September 08, 2003 10:34 AM To: 'Struts Users Mailing List' Subject: RE: [Validator] E-Mail Verification Is there a published specification on e-mail addresses? The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses

Re: [Validator] E-Mail Verification

2003-09-08 Thread Mike Kienenberger
David Graham [EMAIL PROTECTED] wrote: --- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. Unfortunately, I think that's a valid email address as defined in the RFC. You're better off writing your own. RFC 822 is very

Re: [Validator] E-Mail Verification

2003-09-08 Thread Robert Leland
David Graham wrote: --- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses such as 'u-+-+%^_/[EMAIL PROTECTED

Re: [Validator] E-Mail Verification

2003-09-08 Thread David Graham
--- Robert Leland [EMAIL PROTECTED] wrote: David Graham wrote: --- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. The reason I ask is that we are using the 'email' validator, and it's

RE: [Validator] E-Mail Verification

2003-09-08 Thread Paananen, Tero
+1 on the new option but I think the allowed characters should be a-zA-Z0-9_.- -999 That's missing several perfectly valid characters in Email addresses, like a space, +, single quote, etc. The RFC defines the valid characters for a reason.

RE: [Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak
Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 3:45 PM To: Struts Users Mailing List Subject: Re: [Validator] E-Mail Verification

RE: [Validator] E-Mail Verification

2003-09-08 Thread David Graham
--- Paananen, Tero [EMAIL PROTECTED] wrote: +1 on the new option but I think the allowed characters should be a-zA-Z0-9_.- -999 That's missing several perfectly valid characters in Email addresses, like a space, +, single quote, etc. The RFC

Re: Validator cannot find message key

2003-09-05 Thread Adam Hardy
, September 04, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Validator cannot find message key Paste the faulty part of your validation.xml file maybe we can see some strange things. I had a similar problem and it was only an error in writing... Yuan, Saul (TOR-ML) wrote: Hi, I am

RE: Validator cannot find message key

2003-09-05 Thread Yuan, Saul (TOR-ML)
Serializable { ... BTW, I am able to see the messages when using bean:message ../, but the validator just cannot find them, just says null is required, the validator is validating the required fields though. Thanks, Saul -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED

Re: Validator cannot find message key

2003-09-05 Thread Adam Hardy
implements Serializable { ... BTW, I am able to see the messages when using bean:message ../, but the validator just cannot find them, just says null is required, the validator is validating the required fields though. Thanks, Saul -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED

RE: Validator cannot find message key

2003-09-05 Thread Yuan, Saul (TOR-ML)
, Saul -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 11:16 AM To: Struts Users Mailing List Subject: Re: Validator cannot find message key I see you're validating manually in the action. Have you tried doing it automatically

Validator cannot find message key

2003-09-04 Thread Yuan, Saul (TOR-ML)
Hi, I am using Struts Validator for validating a multi page form, some how the Validator cannot find the messages defined in the application resources. I got the validation error messages like: null is required. I've defined arg0 in the validation.xml file, and the key of arg0 points to a key

Re: Validator cannot find message key

2003-09-04 Thread Koni Roth
Paste the faulty part of your validation.xml file maybe we can see some strange things. I had a similar problem and it was only an error in writing... Yuan, Saul (TOR-ML) wrote: Hi, I am using Struts Validator for validating a multi page form, some how the Validator cannot find the messages

RE: Validator cannot find message key

2003-09-04 Thread Yuan, Saul (TOR-ML)
: Koni Roth [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Validator cannot find message key Paste the faulty part of your validation.xml file maybe we can see some strange things. I had a similar problem and it was only

Re: Validator cannot find message key

2003-09-04 Thread Koni Roth
=Message Name newmessage.label.zone=Distribution Zone newmessage.label.audience=Target Audience ... -Original Message- From: Koni Roth [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Validator cannot find message key

Custom Validator and File Upload

2003-09-03 Thread Octavia Yung
Hi Everyone, I am currently trying to create a custom validator for a file upload form and am unclear as to how to retrieve the value of the File field. I would like to have the object as a FormFile so that I can perform further checks on the file. Are there any examples available to peruse

Re: Struts Validator and Hidden Field

2003-09-01 Thread Joe @ Team345
Octavia, I bit of a guess on my part, but it sounds like you want to use the requiredif validator. This allows a particular field to be required (or not) based on other fields. The fact that this might be a hidden field should be, as pointed out by others, transparent to the validator

RE: Struts Validator and Hidden Field

2003-08-30 Thread Wendy Smoak
Octavia wrote: I have tried to validate it as any other input field, but have not had any luck. Any suggestions/ideas? Thanks much! You'll have to post some of your code before anyone will have any idea why it's not working. The Validator also logs copious amounts of info, you should be able

Re: Validator framework and DispatchAction

2003-08-28 Thread K.C. Baltz
You're going to have to provide us the stack trace so we can tell with method is not being found. K.C. Venkat Jambulingam wrote: Hi there, I extended my Action classes with DispatchAction class and it works just fine. Now I am trying to use validator framework in my app. JavaScript

RE: Validator and DispatchAction

2003-08-28 Thread Steve Raeburn
Ok, I see one potential problem. Your methods are declared as throwing ServletException and IOException, but for Struts 1.1 they should be declared as throwing Exception. public ActionForward create( ActionMapping mapping, ActionForm form, HttpServletRequest request,

Struts Validator and Hidden Field

2003-08-28 Thread Octavia Yung
Hi Everyone, I was wondering if it is possible to validate a hidden field using the Struts Validator framework. If so, an example would be extremely helpful. Thanks in advance! Octavia

Re: Struts Validator and Hidden Field

2003-08-28 Thread David Erickson
- Original Message - From: Octavia Yung [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 28, 2003 4:13 PM Subject: Struts Validator and Hidden Field Hi Everyone, I was wondering if it is possible to validate a hidden field using the Struts Validator framework. If so

RE: Struts Validator and Hidden Field

2003-08-28 Thread Wendy Smoak
I was wondering if it is possible to validate a hidden field using the Struts Validator framework. If so, an example would be extremely helpful. Validator is a separate project in the Jakarta Commons, it's not part of Struts proper. Sure you could validate a hidden field, but what's

Re: Struts Validator and Hidden Field

2003-08-28 Thread Octavia Yung
, but have not had any luck. Any suggestions/ideas? Thanks much! - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, August 28, 2003 3:36 PM Subject: RE: Struts Validator and Hidden Field I was wondering

Re: Validator with property String array problem

2003-08-27 Thread Nicholas L Mohler
: Subject: Re: Validator with property String array problem 08/26/2003 02:27 PM

RE: Validator JavaScript and html:radio buttons

2003-08-27 Thread Yee, Richard K,,DMDCWEST
[mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: Validator JavaScript and html:radio buttons Hi all. I have two radio buttons on a page, one both named outcome one with the value of Accepted and one with the value of Rejected. In my validation.xml

RE : RE : RE : Validator and Dispatch Actions

2003-08-27 Thread thomas Sontheimer
here is another means to do it: http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorDispatchAction -Original Message- From: Trent Fisher [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 9:26 PM To: [EMAIL PROTECTED] Subject: Re: RE : RE : Validator and Dispatch Actions

Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
Has anybody been successful using validator framework with DispatchAction? Please let me know. I am getting NoSuchMethodFound error. Please reply. TIA, Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Newbie Validator and radio buttons question

2003-08-27 Thread John Boyes
I'm trying to use the Validator to validate that a particular radio button (with a value of yes) in a group is selected. I'm trying to use a mask to do this, but if I use a mask the form seems to fail validation no matter if the value in the form matches the pattern in the mask. I've tried using

Re: Validator and DispatchAction

2003-08-27 Thread Nagendra Kumar O V S
hi validator has nothing to do with Dispatch action. paste ur code here if possible to trace ur problem --nagi ---Original Message--- From: Struts Users Mailing List Date: Wednesday, August 27, 2003

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
Hi Nagi, Here is the error I'm getting while using validator with DispatchAction: [ERROR] DispatchAction - -Action[/tr518page1] does not contain method named error java.lang.NoSuchMethodException: errorjava.lang.NoSuchMethodException: error at java.lang.Class.getMethod0(Native Method

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
defined in the dispatchaction class. have u defined the parameter for this action mapping?? -- nagi ---Original Message--- From: Venkat Jambulingam Date: Wednesday, August 27, 2003 09:13:27 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi

RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
[mailto:[EMAIL PROTECTED] Sent: August 27, 2003 8:43 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi, Here is the error I'm getting while using validator with DispatchAction: [ERROR] DispatchAction - -Action[/tr518page1] does not contain method

RE: Validator and DispatchAction

2003-08-27 Thread Yansheng Lin
Raeburn [mailto:[EMAIL PROTECTED] Sent: August 27, 2003 10:05 AM To: Struts Users Mailing List Subject: RE: Validator and DispatchAction This is the relevant part of the message: Action[/tr518page1] does not contain method named error Does your DispatchAction class

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi, Here is the error I'm getting while using validator with DispatchAction: [ERROR] DispatchAction - -Action[/tr518page1] does not contain method named error java.lang.NoSuchMethodException

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
Hi Steve, I don't have a method named error in my action class. I don't need one. Why is it looking for such a method in my action class? Help me please. I have to decide soon whether to go with validator framework or not. Thank you very much, Venkat [EMAIL PROTECTED] 08/27/03 12:05PM

RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
:[EMAIL PROTECTED] Sent: August 27, 2003 9:58 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Validator and DispatchAction Hi Steve, I don't have a method named error in my action class. I don't need one. Why is it looking for such a method in my action class? Help me please. I have

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
It works now... Thank you for all the help. [EMAIL PROTECTED] 08/27/03 12:58PM Hi Steve, I don't have a method named error in my action class. I don't need one. Why is it looking for such a method in my action class? Help me please. I have to decide soon whether to go with validator framework

<    1   2   3   4   5   6   7   8   9   10   >