Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
iginal Message - From: "Bryan Hunt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 15, 2004 2:20 PM Subject: Re: validation wierdness possibly related to multiple struts config files finally solved it. When you hav

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Niall Pemberton
-- From: "Bryan Hunt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 15, 2004 2:20 PM Subject: Re: validation wierdness possibly related to multiple struts config files > finally solved it. > > When you have th

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bill Siggelkow
I am using this DTD declaration in my validation.xml and validator-rules.xml files: "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> It lets me access the new element. Bill Bryan

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
finally solved it. When you have the following DTD definition in your validation.xml file snip= http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd";> =snip It breaks. When you have the following DTD definition in your validation.xml file * *snip= http://jakarta.apache.org/commons/dtds/valid

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
Ok , dunno who to report this to but this validator stuff needs to be looked at before this is released to the public cause it's a bit of a mess. Just noticed that the version of validator-rules that is distributed is for the validator_1_1.dtd version. I think somebody needs to take a little lo

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
Thank you Bill, your answer was correct. I've found that commons-validator as distibuted with the latest 1.2.1 version of struts doesn't include the http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd file. So despite my specifying the DTD like so snip= "-//Apache Software Found

Re: Re: validation wierdness possibly related to multiple struts config files

2004-07-14 Thread bryan
I am using a nightly build from about 1 week ago. I never updated my dtd for validator though. Im going to do that and check out your suggestion. Never occured to me that it mightnt be backwards compatatable. --b On Tue, 13 Jul 2004 15:52:41 -0400, Bill Siggelkow <[EMAIL PROTECTED]> wrote: > Are

Re: validation wierdness possibly related to multiple struts config files

2004-07-13 Thread Bill Siggelkow
Are you using Struts 1.2 or the nightly build? I had this issue the other day and I think I got around it by using the new element instead of -- simply change arg0 to arg in your validation.xml. Or you can try using the new position attribute: Bill Siggelkow Bryan Hunt wrote: I have the foll

RE: Validation: How do I do a field check for NotEqual? (!=)

2004-07-01 Thread Mick . Knutson
within my validation.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 11:21 AM To: Struts Users Mailing List Subject: Re: Validation: How do I do a field check for NotEqual? (!=) Assuming a String datatype: if (!myString.equals

Re: Validation: How do I do a field check for NotEqual? (!=)

2004-07-01 Thread DGraham
Assuming a String datatype:  if (!myString.equals(yourString)) {System.out.println("Not equal.}; Dennis [EMAIL PROTECTED] 07/01/2004 02:15 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject Validation: How do I do a field check

RE: Validation Mask help please

2004-06-24 Thread Jim Kennedy
When you only want one (1) of something follow with a question mark "?" i.e. [A-Za-z]? OK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 3:34 PM To: [EMAIL PROTECTED] Subject: RE: Validation Mask help please try somethi

RE: Validation Mask help please

2004-06-24 Thread RDoss
to end -Ram -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 2:39 PM To: [EMAIL PROTECTED] Subject: RE: Validation Mask help please What is the $ for? I know the ^ is to start at the beginning. -Original Message- From: [EMAIL

RE: Validation Mask help please

2004-06-24 Thread Mick . Knutson
What is the $ for? I know the ^ is to start at the beginning. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 12:34 PM To: [EMAIL PROTECTED] Subject: RE: Validation Mask help please try something like [a-zA-Z][0-9]{4}-\d{3} -Ram

RE: Validation Mask help please

2004-06-24 Thread Mick . Knutson
Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 12:39 PM To: [EMAIL PROTECTED] Subject: RE: Validation Mask help please http://www.weitz.de/regex-coach/ might be useful -Ram -Original Message- From: [EMAIL PROTECTED

RE: Validation Mask help please

2004-06-24 Thread RDoss
http://www.weitz.de/regex-coach/ might be useful -Ram -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 2:34 PM To: [EMAIL PROTECTED] Subject: RE: Validation Mask help please try something like [a-zA-Z][0-9]{4}-\d{3} -Ram

RE: Validation Mask help please

2004-06-24 Thread RDoss
try something like [a-zA-Z][0-9]{4}-\d{3} -Ram -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 2:06 PM To: [EMAIL PROTECTED] Subject: Validation Mask help please I have the following field validation: mask ^[A-Za-z]\d{4}-\d{3

RE: Validation Mask help please

2004-06-24 Thread Saul Q Yuan
Off the top of my head, you may need to escape the hyphen, ie. \- Saul > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 24, 2004 3:06 PM > To: [EMAIL PROTECTED] > Subject: Validation Mask help please > > > I have the following field val

Re: validation for optional fields

2004-06-11 Thread Nicholas L Mohler
| | cc:

RE: validation for optional fields

2004-06-11 Thread Kalra, Ashwani
Yeah, I think its working, thanks -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 8:10 PM To: Struts Users Mailing List Subject: Re: validation for optional fields Maybe I'm missing something here, but why can't you just setup the

Re: validation for optional fields

2004-06-11 Thread Matt Bathje
orks on the 1.2 nightlies (Well...the nighlies from january, which is what I have been using for my project...) Matt - Original Message - From: "Matt Bathje" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 11, 20

Re: validation for optional fields

2004-06-11 Thread Matt Bathje
. Sample code in validation.xml would be: Matt - Original Message - From: "Nicholas L Mohler" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 11, 2004 9:34 AM Subject: RE: validation for optional fields

RE: validation for optional fields

2004-06-11 Thread Nicholas L Mohler
ng using validator and working on Struts 1.1 -Original Message- From: Axel Seinsche [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 7:24 PM To: Struts Users Mailing List Subject: Re: validation for optional fields Kalra, Ashwani wrote: >hi, >how can I validate an optional fie

RE: validation for optional fields

2004-06-11 Thread Kalra, Ashwani
I am validating using validator and working on Struts 1.1 -Original Message- From: Axel Seinsche [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 7:24 PM To: Struts Users Mailing List Subject: Re: validation for optional fields Kalra, Ashwani wrote: >hi, >how can I valid

Re: validation for optional fields

2004-06-11 Thread Axel Seinsche
Kalra, Ashwani wrote: hi, how can I validate an optional field. ie validate only if there is some value in it. For example. I want to validate a field which should of type int.But it should be validated only if use has entered some value in it. hi, if you are validating in your form or action c

Re: Validation of dynaActionForm too early

2004-06-10 Thread Bill Siggelkow
Behalf Of Bill Siggelkow Sent: Thursday, June 10, 2004 11:00 AM To: [EMAIL PROTECTED] Subject: Re: Validation of dynaActionForm too early Set validate="false" on the Action that forwards to the JSP containing the form. Set 'validate="true"' and set 'input="/my

RE: Validation of dynaActionForm too early

2004-06-10 Thread Avinash Gangadharan
if the form was posted or not thereby avoiding two mappings. But the question still remains. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Thursday, June 10, 2004 11:00 AM To: [EMAIL PROTECTED] Subject: Re: Validation of dynaActionForm too early

Re: Validation of dynaActionForm too early

2004-06-10 Thread Bill Siggelkow
Set validate="false" on the Action that forwards to the JSP containing the form. Set 'validate="true"' and set 'input="/myJsp.jsp"' for the action that processes the form. Tom Ansley wrote: Hi all, I am trying to use a dynaActionForm. The problem I am having is that when a user requests an act

RE: Validation of dynaActionForm too early

2004-06-10 Thread Wendy Smoak
> From: Tom Ansley [mailto:[EMAIL PROTECTED] > How do I go about getting it so that the first time the > action is called the validate() method is not called? http://jakarta.apache.org/struts/faqs/newbie.html#avoidValidate I use LookupDispatchAction so I don't have separate actions. Instead, i

RE: Validation only on SUBMIT but not on BACK

2004-05-20 Thread Towers, Stuart G
If you have an attribute on your form 'org.apache.struts.taglib.html.CANCEL' the validation will not run. You will, however, need to find out which button (or link) the user pressed (Back or Cancel) using some other mechanism: isCancelled(httpServletRequest) simply tests the existence of this attr

Re: Validation problem

2004-05-18 Thread None None
ez <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: Validation problem Date: Tue, 18 May 2004 17:43:16 +0200 Try: - Original Message - From: "

Re: Validation problem

2004-05-18 Thread None None
... From: Iván Rodríguez <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: Validation problem Date: Tue, 18 May 2004 17:43:16 +0200 Try: -

Re: Validation problem

2004-05-18 Thread Iván Rodríguez
Try: - Original Message - From: "None None" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 5:32 PM Subject: Validation problem > Hello again... I'm playing with validation for the first time, and I got it > almost working completely, one

Re: Validation question:not required but still needs to be validated if entered

2004-05-10 Thread Shrihas Shah
Thanks Sven, I am now doing it with DateValidator class in validator package. It works. Shrihas. --- In [EMAIL PROTECTED], Sven Kiesewetter <[EMAIL PROTECTED]> wrote: > I think, you have to implement your own validator. Let is inherent from > the original validator and overwrite the appropiate

Re: Validation question:not required but still needs to be validated if entered

2004-05-10 Thread Sven Kiesewetter
I think, you have to implement your own validator. Let is inherent from the original validator and overwrite the appropiate method. Than you can skip the validation if the field was empty. Sven Shah, Shrihas (OFT) wrote: Hi : I have a date field and it is not a required field. If somebody

Re: Validation-Substituting Values Question

2004-05-05 Thread Johannes Wolfgang Woger
David Erickson wrote: Hi I am using some ValidatorActionForms.. here's an example of my validation mapping: say than in your Applicaltinresources.properies: name.of.my.email=" this email" error.email.format="has a wrong format" my message looks like error.email.format={0} is no

Re: Validation - can i use multiple properties ?

2004-05-04 Thread Ivan
Take a look at JSTL format with multiple Resource Bundles http://www.cheblogs.com/roller/page/princeamin/20031104 - Original Message - From: "johannes Schwarz" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 04, 2004 3:54 PM Subject:

RE: Validation - can i use multiple properties ?

2004-05-04 Thread nils . mueller
Hi Johannes, are you aware of localization / i18n support by having multiple language property files? Like: XXX_de.properties XXX_en.properties XXX_fr.properties ... Struts then chooses the properties-file depending on locale. Maybe a look at that stuff helps. good luck Nils This messa

Re: Validation with 2 masks?

2004-04-22 Thread Niall Pemberton
my book, thats not a "simpler" solution. Niall - Original Message - From: "Berke, Wayne [IT]" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, April 22, 2004 4:44 PM Subject: RE: Validation with 2 masks? Thanks f

RE: Validation with 2 masks?

2004-04-22 Thread Berke, Wayne [IT]
lto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 5:23 PM To: Struts Users Mailing List Subject: Re: Validation with 2 masks? Theres nothing in the "standard" mask validation that ships with struts that allows you to do this, but it would be pretty straight forward to write and conf

Re: Validation with 2 masks?

2004-04-21 Thread Matt Bathje
gt; To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 4:23 PM Subject: Re: Validation with 2 masks? > Theres nothing in the "standard" mask validation that ships with struts that > allows you to do this, but it would be pretty straigh

Re: Validation with 2 masks?

2004-04-21 Thread Niall Pemberton
Theres nothing in the "standard" mask validation that ships with struts that allows you to do this, but it would be pretty straight forward to write and configure your own validator to do this. Set up a static mehtod somewhere that does pretty much what the FieldChecks.validateMask() method does,

RE: Validation with 2 masks?

2004-04-21 Thread Anderson, James H [IT]
I hope someone responds to this...I need the solution to this problem as well. -Original Message- From: Berke, Wayne [IT] Sent: Wednesday, April 21, 2004 9:03 AM To: Struts Users Mailing List Subject: Validation with 2 masks? I'd like to a property validation against 2 different regular

Re: validation with struts 1.2

2004-04-20 Thread Adam Hardy
Hi Frank, everyone, we were talking about the validator i18n not working in struts. The patch that Adam Kramer submitted for the bugzilla issue on the subject has been updated and he is looking for someone to test it in earnest before he puts it into bugzilla. Say the word and I'll forward it to

Re: validation with struts 1.2

2004-04-07 Thread Adam Hardy
I forgot the bugzilla link:: http://issues.apache.org/bugzilla/show_bug.cgi?id=21760 On 04/07/2004 11:20 AM Adam Hardy wrote: It is now validating server-side as well as client-side for me. Don't know what my server was doing, but it's doing it OK now. But the problem with the bundle is still

Re: validation with struts 1.2

2004-04-07 Thread Adam Hardy
It is now validating server-side as well as client-side for me. Don't know what my server was doing, but it's doing it OK now. But the problem with the bundle is still there. There is a bugzilla issue from about 9 months ago with patches, but I don't think it was committed. Strangely enough the

RE: validation with struts 1.2

2004-04-06 Thread Jesse Alexander (KXT)
Isn't Struts an opensource-application? If it really hurts you: investigate and propose a bug-fix... -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent: Dienstag, 6. April 2004 09:24 To: 'Struts Users Mailing List' Subject: AW: validation with struts 1.2 And is there an

Re: Validation errors displayed in reverse order

2004-04-04 Thread Niall Pemberton
Are the fields in this order in your validation.xml? Niall - Original Message - From: "P Cotton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 04, 2004 4:32 PM Subject: Validation errors displayed in reverse order > Hi everyone, > > I am having problems with the order

Re: Validation errors displayed in reverse order

2004-04-04 Thread Joe Germuska
At 4:32 PM +0100 4/4/04, P Cotton wrote: Hi everyone, I am having problems with the order that validation errors are displayed using Struts. I am using validation.xml and have a JSP page with a list of form fields e.g. Is this the same as http://issues.apache.org/bugzilla/show_bug.cgi?id=27992 ?

<    5   6   7   8   9   10