Re: Struts Validator Javascript

2003-08-14 Thread Sgarlata Matt
I like the concept of the validator, but personally I don't have a lot of confidence in it. The second thing I tried to do with it was use the inRange (or whatever) test, and it didn't work. I use it server-side and only for required fields. Matt - Original Message - From: &q

RE: Struts Validator

2003-08-14 Thread Brian McSweeney
+1 for it works for me too. Not knowing javascript well, using the validator allowed me to quickly do client side validation. +1 for it isn't so easy to use. I think a "REALLY" simple default app that shows exactly how each different field validation works would dramatically i

Re: Struts Validator

2003-08-14 Thread Erik Price
Mark Galbreath wrote: I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Release early, release often. Most open source software would -never- get released if people waited till they got the damn thing right before offer

RE: Struts Validator-nextreleasewhen (was validwhen)

2003-08-14 Thread Van Riper, Mike
> -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 11:01 AM > To: Struts Users Mailing List > Subject: RE: Struts Validator-nextreleasewhen (was validwhen) > > > > I suspect that not too much has changed since

RE: Using Struts Validator on Map-backed ActionForms

2003-08-14 Thread Erez Efrati
Just forgot to explain that I do the following: mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:44 AM To: 'Struts Users Mailing List' Subject: RE: Using Struts Validator on Map-backed ActionForms Hi Panchasheel, I am working with map backed action forms and the way to

RE: Custom Validator

2003-08-14 Thread Erez Efrati
Keith, I have done the same and to do that I would suggest taking as a starting point the code from the Struts source code. more specifically have a look at FieldChecks.java (Struts src code) under shared/.../struts/validator/FieldChecks.java. It will much clearer once you do that. It worked for

Re: Struts Validator Javascript

2003-08-14 Thread Reinhard
> ... Am I so special :) ;-) If I remember it well, it's an open issue in the bug-list. cheers Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts Validator

2003-08-14 Thread Steve Raeburn
Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since

Struts Validator Javascript

2003-08-14 Thread Erez Efrati
Working with the validator I found that the client-side javascript code automatically generated by the validator tag does not handle correctly or at all fields that are radio group , checkbox group or any other type of group that exist. I have posted few times on that but no response. After that I

RE: Struts Validator

2003-08-14 Thread Steve Raeburn
> -Original Message- > From: Brian McSweeney [mailto:[EMAIL PROTECTED] > Sent: August 14, 2003 6:29 AM > To: 'Struts Users Mailing List' > Subject: RE: Struts Validator > > > +1 for it works for me too. > Not knowing javascript well, using the valida

RE: Struts Validator Javascript

2003-08-14 Thread Steve Raeburn
> -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: August 10, 2003 9:42 AM > To: Struts Users Mailing List > Subject: Re: Struts Validator Javascript > > > Sgarlata Matt wrote: > > I like the concept of the validator, but pers

Re: Struts Validator Javascript

2003-08-14 Thread Sgarlata Matt
You can reach Bugzilla at: http://nagoya.apache.org/bugzilla Matt - Original Message - From: "Erez Efrati" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, August 10, 2003 1

Re: Struts Validator Javascript

2003-08-14 Thread Craig R. McClanahan
On Sun, 10 Aug 2003, Adam Hardy wrote: > Date: Sun, 10 Aug 2003 18:41:32 +0200 > From: Adam Hardy <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: Struts Validator J

Re: Displaying an incorrect email using email validator

2003-08-14 Thread John Stevens
I actually did use that but nothing was being returned. All it showed was a "null". From: "Nagendra Kumar O V S" <[EMAIL PROTECTED]> Reply-To: "Nagendra Kumar O V S" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: Displaying an incorre

Validator

2003-08-14 Thread Erez Efrati
I am trying to figure out the code in struts.validator.FieldsCheck.java in order to write one of my own. Can someone explain what the purpose of the following lines of code in all of the validateXXX() in Struts: validateIntRange (...) { if (isString(bean)) {

Re: Displaying an incorrect email using email validator

2003-08-14 Thread Nagendra Kumar O V S
MAIL PROTECTED] Subject: Displaying an incorrect email using email validator  Hi everyone,I currently have a JSP page with a textbox that holds email data which is to be validated using the struts validator. Currently with other types of validations one can view

RE: Struts Validator

2003-08-14 Thread Mark Galbreath
Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I h

RE: Struts Validator

2003-08-14 Thread Yansheng Lin
ubject: RE: Struts Validator Hi Steve, >Have you looked at the struts-validator sample app? The 'types' examples >show most of the basic validations. If you've already looked at it, is >there anything that would make it easier to understand? No I had not heard about the samp

RE: Struts Validator

2003-08-14 Thread Stephen Brown
m: Mark Galbreath [mailto:[EMAIL PROTECTED] > Sent: August 13, 2003 5:40 PM > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > Subject: RE: Struts Validator > > Just look at the archive for this list and > I'll wager there > are more questions/complaints abo

RE: Struts Validator

2003-08-14 Thread Mark Galbreath
Dave, My only complaint with the authors of validator is that (a) they say it's really cheeky, but (b) a host of developers, including me, have complaints about it. It just doesn't work within the framework documented. The List is full of complaints and requests along these lines

RE: Struts Validator

2003-08-14 Thread Brian McSweeney
Cheers David, I'll take a look Brian -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 16:14 To: Struts Users Mailing List Subject: RE: Struts Validator --- Brian McSweeney <[EMAIL PROTECTED]> wrote: > Hi Steve, > > >Have y

RE: Struts Validator

2003-08-14 Thread David Graham
--- Jerry Jalenak <[EMAIL PROTECTED]> wrote: > +1 - Validator works. I started using it wy back in the pre-RC1 > days. > Everytime that Validator hasn't worked for me, I've found that it was > due to > a screw up on my part (usually something in the validati

RE: Struts Validator

2003-08-14 Thread David Graham
t the setup step it's *far* easier to use the Validator and supplement it with custom coding when needed. David > > Mark > > -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 13, 2003 4:50 PM > To: Strut

RE: Struts Validator-nextreleasewhen (was validwhen)

2003-08-14 Thread Van Riper, Mike
With great trepidation, I must inquire as to the likelihood of a next release of the commons-validator in the near term future. (ducking for cover now as the flames telling me to read the Apache release process policy on the web site are fired off in my direction ;-)). Seriously, I did look in

Struts Validator-validwhen

2003-08-14 Thread SKaringula
Hi, The struts Validator 'validwhen' I could not find anywhere in struts,even though it was mensioned in documentation. If it is available Could anybody please help me where exactly it is available? Thanks, Shailaja -- A . S . C . A . P.-- Th

RE: Struts Validator

2003-08-14 Thread Brian McSweeney
Hi Steve, >Have you looked at the struts-validator sample app? The 'types' examples >show most of the basic validations. If you've already looked at it, is >there anything that would make it easier to understand? No I had not heard about the sample app. I looked again

RE: Validator

2003-08-11 Thread Bailey, Shane C.
isString(Object o) { if (o == null) { return (true); } return (String.class.isInstance(o)); } One reason I can think of your validator needing to know the difference between if validating for a String or say a String[] (returned if a multi-select or if someone

RE: Struts Validator Javascript

2003-08-11 Thread David Graham
> Keep investigating the problem. If you can come up with new information > or a > patch, then that will serve as a much more useful reminder than just > repeating yourself. I couldn't agree more with this statement. Many reported bugs are poorly described and just left in bugzilla for someone el

Validator

2003-08-10 Thread Erez Efrati
I am trying to figure out the code in struts.validator.FieldsCheck.java in order to write one of my own. Can someone explain what the purpose of the following lines of code in all of the validateXXX() in Struts: validateIntRange (...) { if (isString(bean)) {

Validator real time expression vars

2003-08-10 Thread Erez Efrati
Is there a way to use vars in validation.xml that are not constants in a way that the javascript will use these values? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Custom Validator

2003-08-10 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I've got some nice custom validations working using the validation framework. However, I'm having a hard time with one seemingly imple issue. In the validation method in my custom validation class, how do I get the value of the field I'm validating? I found one example that did this,

RE: Validator

2003-08-10 Thread Yansheng Lin
??? I don't see it in my validation-rules.xml. Which version are you using? -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: August 6, 2003 3:33 PM To: 'Struts Users Mailing List' Subject: Validator I am trying to figure

RE: Validator

2003-08-07 Thread Bailey, Shane C.
osted here... It would be the difference between testing .length and .length() !! :-) -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 6:30 PM To: 'Struts Users Mailing List' Subject: RE: Validator I guess it's more efficient

RE: Validator

2003-08-07 Thread Yansheng Lin
o: 'Struts Users Mailing List' Subject: RE: Validator I don't think it is the formbean that is checked for isString() it is the data members of the formbean. Since it is http I guess there is only 2 choices: String and String[] and so the test determines how the validation for a val

RE: Using Struts Validator on Map-backed ActionForms

2003-08-07 Thread Gandle, Panchasheel
x27;[EMAIL PROTECTED]' Subject: Using Struts Validator on Map-backed ActionForms Hi, I am trying to use the Struts Validator to generate Javascript validation on a Map-backed action form, but I keep getting "type is null or not an object" javascript error (I am using Struts 1.1

RE: Using Struts Validator on Map-backed ActionForms

2003-08-07 Thread Gandle, Panchasheel
RE: Using Struts Validator on Map-backed ActionForms Just forgot to explain that I do the following: mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:44 AM To: 'Struts Users Mailing List' Subject: RE: Using Struts Validator on Map-backed ActionForms Hi Panchasheel, I

sample struts w/ I18N and validator

2003-08-06 Thread David Thielen
Hi; Does anyone know of a simple sample struts page (like logon) that includes Internationalization and validators so it shows how to use everything? thanks - dave

Dispatch Action with Validator

2003-08-06 Thread Nimish Chourey , Tidel Park - Chennai
Hi all, I am using DispatchActionClass with DynaValidator form . I have two mehods in the DispatchActionClass , one is retrieve and other is update . The problem is when I set the Validations for the form , the Validaor validates the form before calling both the methods .. In retrieve

RE: Using Struts Validator on Map-backed ActionForms

2003-08-06 Thread Erez Efrati
helps, Erez -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:48 AM To: 'Struts Users Mailing List' Subject: RE: Using Struts Validator on Map-backed ActionForms Has anybody come up with any validations for map-backed fiel

RE: Validator required not working with String[] multi-select

2003-08-04 Thread Bailey, Shane C.
I've never done this before with apache bugzilla so let me know if I did Ok. View bug number 22121. -Original Message- From: Rob Leland [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 5:17 PM To: Struts Users Mailing List Subject: Re: Validator required not working with S

Re: Validator required not working with String[] multi-select

2003-08-04 Thread Rob Leland
ich worked before. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:52 PM To: Struts Users Mailing List Subject: Re: Validator required not working with String[] multi-select AFAIK, the standard "required" validator doesn't

RE: Validator required not working with String[] multi-select

2003-08-04 Thread Bailey, Shane C.
ation problem for String[] and doesn't appear to have broken and validations which worked before. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:52 PM To: Struts Users Mailing List Subject: Re: Validator required not working with Stri

Re: Validator required not working with String[] multi-select

2003-08-04 Thread Kris Schneider
AFAIK, the standard "required" validator doesn't work with arrays. Or, if it does, I wasted time writing a custom validator ;-). I'd be intersted to hear if anyone really has used the "required" validator successfully for an array field. I suppose I should check to s

Validator required not working with String[] multi-select

2003-08-04 Thread Bailey, Shane C.
I sort of already sent this message to the list but I made a mistake (didn't proof read my message) so here it is again but corrected ... Validator "required" validation is NOT working for my String[] (in a dynaform. I have seen others on the list say it works for the

Validator newbie - server side dynamic validation ??

2003-08-01 Thread Koni Roth
Hi list I'm using the validation framework that comes with Struts 1.1. Client side validation with JavaScript works fine. I read the manuals and the 'Struts in Action' book but somehow I still do not understand how dynamic (automatic?) validation server side works! What exactly do I have to set

RE: Using Struts Validator on Map-backed ActionForms

2003-08-01 Thread Yansheng Lin
I don't think this is legal, i.e., you can not have a bracket inside of property attribute: mailto:[EMAIL PROTECTED] Sent: August 1, 2003 11:24 AM To: '[EMAIL PROTECTED]' Subject: Using Struts Validator on Map-backed ActionForms Hi, I am trying to use the Struts Valida

Using Struts Validator on Map-backed ActionForms

2003-08-01 Thread Cordingley, Charles
Hi, I am trying to use the Struts Validator to generate Javascript validation on a Map-backed action form, but I keep getting "type is null or not an object" javascript error (I am using Struts 1.1). Non map-backed properties on the form work fine. In the JSP I am creating text b

RE: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
with internal reorganization of the code and removal of deprecations. Keep monitoring the struts-dev list for activity. Steve > -Original Message- > From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] > Sent: July 31, 2003 8:00 AM > To: 'Struts Users

RE: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
2003 10:59 AM To: Struts Users Mailing List Subject: RE: Validator: Is validwhen available ? The nightly builds are not working for now because of a problem with the build machine. ValidWhen has been added to the source but, for now, you'll need to check it out from CVS and do your own buil

RE: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
lease did :-) Steve -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: July 31, 2003 1:49 AM To: [EMAIL PROTECTED] Subject: Re: Validator: Is validwhen available ? hi, 'validwhen' is available in the nightly builds...

RE: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
t: Re: Validator: Is validwhen available ? -- Content-Type: Multipart/Alternative; boundary="Boundary-00=_SHSVLVC0" -- Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi,=0D 'validwhen'

Re: Validator: Is validwhen available ?

2003-07-31 Thread Nagendra Kumar O V S
Subject: Validator: Is validwhen available ?  HiIn the Struts Validator User Guide (http://jakarta.apache.org/struts/userGuide/dev_validator.html)I read under "Designing Complex Validations with validwhen" the followingsentence:The new validwhen validatio

Validator: Is validwhen available ?

2003-07-31 Thread Koni
Hi In the Struts Validator User Guide (http://jakarta.apache.org/struts/userGuide/dev_validator.html) I read under "Designing Complex Validations with validwhen" the following sentence: ... The new validwhen validation rule, which will be included into the Struts release immediately

AW: Validator Framework: Can not evaluate regular expression

2003-07-31 Thread Dirk Behrendt
Hello! This field is not declared as a password field yet. It is a normal textfield.. Other ideas? Dirk -Ursprüngliche Nachricht- Von: David Graham [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 23:25 An: Struts Users Mailing List Betreff: Re: Validator Framework: Can

Re: Validator Framework: Can not evaluate regular expression

2003-07-30 Thread David Graham
Password fields are only run against the "required" validation in the client side javascript for security purposes. Password fields are validated with all rules on the server side though. David --- Dirk Behrendt <[EMAIL PROTECTED]> wrote: > Hi! > > No, I do not have an extra '<' in my code. Th

Validator Framework: Can not evaluate regular expression

2003-07-30 Thread Dirk Behrendt
Hi! No, I do not have an extra '<' in my code. The regular expression is not evaluated. Example: When I use ^[a]$ the user only should input "a". But in my case you can input anything you want. There are some ideas? Dirk If your code is a direct cut-n-paste, you've got an extra '>' i

AW: Problem in using Validator Framework with Struts

2003-07-30 Thread Dirk Behrendt
_.-]*$ -Ursprüngliche Nachricht- Von: Dirk Behrendt [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 14:14 An: [EMAIL PROTECTED] Betreff: AW: Problem in using Validator Framework with Struts Hello! I found the problem. I poited to a wrong DTD... Thanx! Dirk -Ursprüngliche

Re: Validator Framework: Can not evaluate regular expression

2003-07-30 Thread Jeff Kyser
If your code is a direct cut-n-paste, you've got an extra '>' in your first regular expression? >^[a-zA-Z0-9_.-]*$ -jeff On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: >^[a-zA-Z0-9_.-]*$ - To unsubscribe, e-m

Validator Framework: Can not evaluate regular expression

2003-07-30 Thread Dirk Behrendt
Hello! I want to check login and password fields. If I submit with empty textfields, the errors are shown correct ( required). But my regular expression was ignored. (see code below). What is necessary to check regular expressions? Dirk Struts-config.xml - form-bean na

AW: Problem in using Validator Framework with Struts

2003-07-30 Thread Dirk Behrendt
Hello! I found the problem. I poited to a wrong DTD... Thanx! Dirk -Ursprüngliche Nachricht- Von: Stephan Wiesner [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 06:58 An: Struts Users Mailing List Betreff: Re: Problem in using Validator Framework with Struts Hi Dirk, did

Re: Problem in using Validator Framework with Struts

2003-07-29 Thread Stephan Wiesner
Hi Dirk, did you activate the plugin in struts-config? Maybe a typo? Struts 1.1 already contains the activated plugin and there is an example war where you might want to copy paste some lines. Dirk Behrendt wrote: Hello! I have a problem in using the Validator framework with Struts. I want

Re: Problem in using Validator Framework with Struts

2003-07-29 Thread David Graham
Make sure your doctype is correct: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> David --- Dirk Behrendt <[EMAIL PROTECTED]> wrote: > Hello! > > I have a problem in using the Validator framework with Struts. > > I want to check textfields. >

Problem in using Validator Framework with Struts

2003-07-29 Thread Dirk Behrendt
Hello! I have a problem in using the Validator framework with Struts. I want to check textfields. When I start Tomcat, I got a lot of parse erros like this: element type "plug-in" must be declared. org.xml.SAXParseException I looked at other validation examples, but I did the sa

Re: Validator not working

2003-07-28 Thread Gabriel Guerreiro
() in struts1.0, so I have quit using it. I was not using logs in struts 1.1. I will use Log4j and commons-logging. it's nice. Gabriel. Steve Caswell wrote: The validator does logging, but it is mostly at the debug level, which is typically turned off by default. You have to configure a logg

RE: Validator Syntax

2003-07-28 Thread Kamholz, Keith (corp-staff) USX
July 28, 2003 3:13 PM To: Struts (E-mail) Subject: Validator Syntax Hey everyone, I finally got the validator working! Turned out to be issues with the version of struts I was using or somthing like that. In any case, it's fixed. I'm slightly confused about this one statemen

Validator Syntax

2003-07-28 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I finally got the validator working! Turned out to be issues with the version of struts I was using or somthing like that. In any case, it's fixed. I'm slightly confused about this one statement in the online documentation. It says that "Only two items may be joined

MaxLength requires Required Validator?

2003-07-28 Thread Tony Pinter
Hey all, Whenever I try to use the maxlength validator on one of my form fields and submit that field as empty or whitespace, I receive the "{0} is required" ActionError message. Is this behavior by design? If not, am I missing something stupid? I was under the impression that if a

RE: Validator not working

2003-07-28 Thread Steve Caswell
The validator does logging, but it is mostly at the debug level, which is typically turned off by default. You have to configure a logger to turn on debug level logging to see the validator's log messages. Otherwise the validator will operate (and in some cases hide errors) sil

FW: Validator not working

2003-07-28 Thread Steve Caswell
The Struts Validator plug-in delegates to Commons Validator for the real work. Commons Validator uses Commons Logging for logging. You can enable logging by configuring one of the loggers supported by Commons Logging. I use Log4J. Here is my log4j.properties files in WEB-INF/classes

Validator not working

2003-07-28 Thread Gabriel Guerreiro
Hi, I am integrating struts-validator in a struts-based application. Validadion does not return errors in the server-side validation. Whith this simple test form: min 0 max 999

Re: Can Validator javascript show more than one error at a time?

2003-07-27 Thread Rob Leland
validations. You can apply the patch yourself. It's only two files ValidatorPlugIn.java and JavascriptValidatorTag.java. BAL - Original Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Satur

Re: Validator - NullPointerException

2003-07-27 Thread Koni
After a few direct questions about how I solved the problem, here the answer: The database for my application was missing eg. not started. The error (NullPointerException) shown in the browser was more than strange but now it works fine... Koni Koni Roth wrote: Hello I'm running Netbeans 3.5 wi

RE: Can Validator javascript show more than one error at a time?

2003-07-27 Thread Steve Raeburn
Lee [mailto:[EMAIL PROTECTED] > Sent: July 27, 2003 6:34 AM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Can Validator javascript show more than one error at a > time? > > > There's currently a defect > (http://issues.apache.org/bugzilla/show_bug

Re: Can Validator javascript show more than one error at a time?

2003-07-27 Thread Brian Alexander Lee
lugIn.java and JavascriptValidatorTag.java. BAL - Original Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, July 26, 2003 2:33 PM Subject: RE: Can Validator javascript show more than one er

RE: Can Validator javascript show more than one error at a time?

2003-07-26 Thread Steve Raeburn
rs would be grouped together. But if you had only one missing required field and another type of error, you would not see the second error message until you correct the missing field error. See the struts-validator sample application (shipped with Struts) for examples. Steve > -Origin

RE: Can Validator javascript show more than one error at a time?

2003-07-26 Thread Alex Shneyderman
On Behalf Of Brian Chaplin > Sent: Saturday, July 26, 2003 1:35 PM > To: [EMAIL PROTECTED] > Subject: Can Validator javascript show more than one error at a time? > > Somehow Ted Husted was able to get the javascript to show more than one > error at a time in the javascript al

Can Validator javascript show more than one error at a time?

2003-07-26 Thread Brian Chaplin
Somehow Ted Husted was able to get the javascript to show more than one error at a time in the javascript alert message. See screen shot on page 373 of Struts in Action. I'm using Struts 1.1 final and it seems the javascript won't support that? --

Re: DispatchAction descendant and Struts Validator problems

2003-07-25 Thread Tony Pinter
Just FYI, I found a post in the newsgroup archives that solved my problems. The author's name eludes me, but he's certainly sharp. All one must do is set validate to false for the action mapping in the struts-config.xml and then, in the methods in which one wishes to validate, call something like:

RE: Validator range server-side check assumes Integer?

2003-07-25 Thread Yansheng Lin
Then use doubleRange:). -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin Sent: July 24, 2003 4:56 PM To: [EMAIL PROTECTED] Subject: Re: Validator range server-side check assumes Integer? I want to check that it's within range and also a double.

Re: Validator range server-side check assumes Integer?

2003-07-24 Thread Brian Chaplin
#x27;intRange' instead of 'range'. 'range' is deprecated. > > Also if it's a int, why there is a 'double' in depends? > > > > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin > Sent: July 24

RE: Validator range server-side check assumes Integer?

2003-07-24 Thread Yansheng Lin
Try to use 'intRange' instead of 'range'. 'range' is deprecated. Also if it's a int, why there is a 'double' in depends? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin Sent: July 24, 2003 2:02 PM T

Validator range server-side check assumes Integer?

2003-07-24 Thread Brian Chaplin
I'm validating a BigDecimal (money) form field and when I put a range validation on, it assumes that the data type must be integer. The javascript is okay but the server-side validation checks for integer: min 5 max 100 yields an error message of fee amount must be an intege

Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
R Balaji wrote: I think it would be better if we prompt all the errors at once to the user. The user should not wait till entering the valid fields and then check for the validity of the entered values. The "Required" condition should take the precedence over all other condition for that *part

Re: Validator validwhen

2003-07-24 Thread Michael Nascimento Santos
- www.soujava.org.br - Original Message - From: "Lukas Bradley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 23, 2003 6:35 PM Subject: Validator validwhen > A quote from http://jakarta.apache.org/struts/userGuide/dev_validator.html > > &qu

Re: Validator Problem when using "Required"

2003-07-24 Thread R Balaji
e required get satisfied. ?? I'm not sure but that's the way my validation functions as well. I imagine the validator has certain rules such as this built in so that you don't get overwhelmed with validation messages when you have complex validations to do. How can that be a

Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
ed. ?? I'm not sure but that's the way my validation functions as well. I imagine the validator has certain rules such as this built in so that you don't get overwhelmed with validation messages when you have complex validations to do. How can that b

Re: Validator Problem when using "Required"

2003-07-24 Thread will . durrant
Hi, I think i'm having a similar problem with struts validation in that there seems to be a two stage validation process. All 'required' fields seem to be validated first and only once they are resolved then the min and max length validation is processed. My validation.xml is as follows;

Validator - NullPointerException

2003-07-24 Thread Koni Roth
Hello I'm running Netbeans 3.5 with Tomcat 4.0.6 and Struts 1.1. Since I use validation my application sometimes dies at startup. When I restart the server it throws the following exeption: -- java.lang.NullPointerException at org.apache.struts.taglib.html.JavascriptValidat

Validator Problem when using "Required"

2003-07-23 Thread R Balaji
Hi, I am using Struts Validator for validating my Application. i am using "required" for many of the fields and using minlength and maxlength for the userName field. my validation.xml reads like this, /Ex : minlength 5 maxlength 10 / If

Re: Validator validwhen

2003-07-23 Thread Rob Leland
Lukas Bradley wrote: A quote from http://jakarta.apache.org/struts/userGuide/dev_validator.html "The new validwhen validation rule, which will be included into the Struts release immediately after the 1.1 release, is designed to handle these cases." Does this mean validwhen is or is not supported

Validator validwhen

2003-07-23 Thread Lukas Bradley
A quote from http://jakarta.apache.org/struts/userGuide/dev_validator.html "The new validwhen validation rule, which will be included into the Struts release immediately after the 1.1 release, is designed to handle these cases." Does this mean validwhen is or is not supported in 1.1? I can inter

Re: Has anybody extended the validator framework?

2003-07-23 Thread Derek Chen-Becker
Teaches me to skim the docs. I missed the part in the Validator dev docs where it says it can generate javascript... You might be able to get somewhere by overriding the org.apache.commons.validator.ValidatorResources that's set as an application scope attribute. I just skimmed through i

Re: Has anybody extended the validator framework?

2003-07-23 Thread Jens v . P .
Hi, thanks Derek, thanks Chuck. Am Mittwoch, 23.07.03 um 17:24 Uhr schrieb Derek Chen-Becker: [..] I hadn't thought of client-side validation, but that's kind of tricky [..] Or am I misunderstanding what you mean by "client-side"? No, that's what I meant. But: the va

RE: Has anybody extended the validator framework?

2003-07-23 Thread Canning, Chuck
Hey, I could really be missing the point and I haven't had time to delve into the struts/validator code. To me, it sounds like you might want to look into dynamically building a validator action (or whatever object is defined in the validation.xml) and map that to your form. If your jsp the

Re: Has anybody extended the validator framework?

2003-07-23 Thread Derek Chen-Becker
m? It adds a layer, but since ActionForms are objects and not interfaces I don't see an easier way than delegation. I'm not sure I understand that. Do you mean to use the validator "outside" struts (in the business layer) and delegate all validations in the form to the busi

Re: Has anybody extended the validator framework?

2003-07-23 Thread Jens v . P .
7;t see an easier way than delegation. I'm not sure I understand that. Do you mean to use the validator "outside" struts (in the business layer) and delegate all validations in the form to the business object? Like this: MyForm extends ActionForm { .. pub

Re: Has anybody extended the validator framework?

2003-07-23 Thread Derek Chen-Becker
ello, I'm wondering if anybody has already extended the validator framework - to use it in the business layer instead of the controller layer - supporting dynamically loaded/created forms Validating user input is no special struts or web application requirement. In my case, all applications are w

Has anybody extended the validator framework?

2003-07-23 Thread Jens v . P .
Hello, I'm wondering if anybody has already extended the validator framework - to use it in the business layer instead of the controller layer - supporting dynamically loaded/created forms Validating user input is no special struts or web application requirement. In my case, all application

Re: Validator Problem

2003-07-22 Thread Adam Hardy
read maxlength 16 minlength 2 Chuck -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:21 PM To: Struts Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can yo

Re: Validator Problem

2003-07-22 Thread Adam Hardy
Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message "title cannot be less than 2 characters" for the minlength validation, but I get "title cannot be more than null character

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