Clientside Javascript Validator Problem

2003-12-04 Thread Neil Mitchell
Hi all I am unable to get validation working in the clientside. It's fine with serverside but will not validate on the clientside. Here are my config files and jsp any help would be welcomed. Cheers in advance JSP [EMAIL PROTECTED] file=includes/struts_imports.jsp % html:html

Re: Clientside Javascript Validator Problem

2003-12-04 Thread Clark Kent
Neil, In the SearchForm, I am curious if it extends ValidatorForm, try to extend ActionForm instead to have it to perform client side validation. Code and configuration appears to be fine. Good Luck, Allen Martis. Neil Mitchell [EMAIL PROTECTED] wrote: Hi all I am unable to get validation

RE: Validator problem: html:messages tag and NullPointerException

2003-10-01 Thread Davide Bruzzone
-Original Message- From: Davide Bruzzone Sent: Tuesday, September 30, 2003 6:50 PM To: Struts Users Mailing List Subject: Validator problem: html:messages tag and NullPointerException Hello... I'm using the Struts Validator, and have come across some strange behavior: On only one

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 a

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;

Re: Validator Problem when using Required

2003-07-24 Thread Adam Hardy
R Balaji wrote: If i fail to give the userName it is prompting, that userName is required. But if i input only 2 characters for the userName, while all other ( some of the other ) fields are empty it prompts only about all other required fields, and not validating the *minlength* condition

Re: Validator Problem when using Required

2003-07-24 Thread R Balaji
Adam Hardy wrote: R Balaji wrote: If i fail to give the userName it is prompting, that userName is required. But if i input only 2 characters for the userName, while all other ( some of the other ) fields are empty it prompts only about all other required fields, and not validating the

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

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 : field property=lastName depends=*required* arg0 key=validateform.lastname/

Validator Problem

2003-07-22 Thread prashant . mdesai
Hi, I am using struts validator in the logon.jsp of my application. If I don't enter the username click on submit the message displayed is null is required. Instead it should be Username is required. The part of the code in the validator-rules.xml is correct. I have given msg=errors.required

Re: Validator Problem

2003-07-22 Thread Siva
Hi prashant, In the validation.xml file, you have to give a name for the args. (how can it know that for what validation it has to use the args ?) So the arg0 shuld also contain a property called name=required Please let me know whether it works, Sivakumar [EMAIL PROTECTED] wrote: Hi, I

Re: Validator Problem

2003-07-22 Thread prashant . mdesai
PROTECTED]Subject: Re: Validator Problem entnet.com

Re: Validator Problem

2003-07-22 Thread Adam Hardy
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 characters for the maxlength validation. field property=title

RE: Validator Problem

2003-07-22 Thread Canning, Chuck
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 you see what is wrong this the following xml, because I get the error message title

Re: Validator Problem

2003-07-22 Thread Adam Hardy
, 2003 5:21 PM To: Struts 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

Re: Validator Problem

2003-07-22 Thread Adam Hardy
/var var var-nameminlength/var-name var-value2/var-value /var /field 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

Validator problem?

2003-07-21 Thread Cyber.Zombie
While I'm waiting for an answer to my OT: ?, I figured I'd come out and ask the question that's been bothering me for a few days. First, the setup: Form: Contains a number of fields. Indirectly extends ValidatorForm. There are some processes in place not necessary for this discussion, but

AW: Validator problem with integers

2003-06-19 Thread sem . Gottofrey
-Ursprüngliche Nachricht- Von: David Graham [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juni 2003 23:13 An: [EMAIL PROTECTED] Betreff: Re: Validator problem with integers An integer validation is not the same as a are all characters numeric validation. I don't think the validator

Re: Validator problem with integers

2003-06-19 Thread Markus Holzem
Hi Brad, use mask instead of integer. That should do the job. Error message states, that the entry is invalid. BTW, arg1 has to be used both for minlength and maxlength since {1} is the argument in the error message. I found that mask can solve nearly all validation problems if they are

Re: Validator problem with integers

2003-06-19 Thread Brad Plies
You are correct, my choice of words inadvertently changed the problem statement to something that I didn't mean. Very sharp eyes there. An integer validation is not the same as a are all characters numeric validation. I don't think the validator currently has a numeric check but patches are

Re: Validator problem with integers

2003-06-19 Thread Brad Plies
Thank you Robert Markus for your mask suggestions will work beautifully. I would have seen it before I suppose if I were more comfortable with regexp notation. Thank you again, Brad - To unsubscribe, e-mail: [EMAIL PROTECTED]

Validator problem with integers

2003-06-18 Thread Brad Plies
Hi folks, Using struts-RC2, when using Validator with a dependency on integer validation, I have a problem with the validator assuming that any integer starting with zero 0 is necessarily octal. In one example, I have a form where people enter phone numbers. Which is split up into 3 text boxes.

Re: Validator problem with integers

2003-06-18 Thread David Graham
An integer validation is not the same as a are all characters numeric validation. I don't think the validator currently has a numeric check but patches are welcome. David Hi folks, Using struts-RC2, when using Validator with a dependency on integer validation, I have a problem with the

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
There is a js function called isAllDigits(arg) in validator-rules.xml. It's used by validateInteger(). You can use that. Yan -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: June 18, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: Re: Validator problem with integers

RE: Validator problem with integers

2003-06-18 Thread David Graham
PROTECTED] Sent: June 18, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: Re: Validator problem with integers An integer validation is not the same as a are all characters numeric validation. I don't think the validator currently has a numeric check but patches are welcome. David Hi folks, Using struts-RC2

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
Oh yeah. Sorry Well, at least I pinpointed where the check failed:). There is a js function called isAllDigits(arg) in validator-rules.xml. It's used by validateInteger(). You can use that. No you can't because that function validates based on the type of number (int, octal, etc). David

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
; } - -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: June 18, 2003 4:23 PM To: 'Struts Users Mailing List' Subject: RE: Validator problem with integers Oh yeah. Sorry Well, at least I pinpointed where the check failed:). There is a js function called isAllDigits(arg

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
Oh they fixed the bug. The version I downloaded must be old. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: June 18, 2003 4:45 PM To: 'Struts Users Mailing List' Subject: RE: Validator problem with integers Huh? How come nobody noticed this before

[REPOST] Struts Validator Problem

2003-03-03 Thread Vedd Sampang
Hi I am trying to use the Validator. The validation works fine in one page. I have another page where the validation rules get fired when the page is loaded and not when it is submitted. So, the error messages for required fields are displayed as the page is loaded. It should be displayed when

Struts-Validator: Problem

2003-02-26 Thread Vedd Sampang
Hi I have just started to use the Validator. The problem is that my validation for the page are fired when the page is loaded. Rgds Ved - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Strange Validator Problem

2003-02-22 Thread Robert Morse
:39, Robert Morse wrote: Hello, I have a very strange validator problem with 1.1-b3. I have a simple logon form (ValidatorForm) that accepts a userid and password. In my validation.xml file I'm specifying that the fields are required. The struts-config.xml file has the validate=true. When

RE: Strange Validator Problem

2003-02-13 Thread Ren Eigenheer
03:31 To: Struts Users Mailing List Subject: RE: Strange Validator Problem Not yet. My next step is to trace through everything in an attempt to find it, but that won't be until next week. For what it's worth the nightly builds have the same problem. On Wed, 2003-02-12 at 13:48, René

RE: Strange Validator Problem

2003-02-13 Thread Ren Eigenheer
is 44452 bytes, the one which works for me is 44454 bytes -Original Message- From: Robert Morse [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 13. Februar 2003 15:46 To: Struts Users Mailing List Subject: RE: Strange Validator Problem Would you mind sharing which versions of Tomcat

Re: Strange Validator Problem

2003-02-13 Thread awc
Mailing List Subject: RE: Strange Validator Problem Would you mind sharing which versions of Tomcat, JDK, etc., you are using? Thanks. On Thu, 2003-02-13 at 04:54, René Eigenheer wrote: ok I could eliminate my problem - obviously with all my changes I've got a wrong commons

RE: Strange Validator Problem

2003-02-13 Thread René Eigenheer
http://sourceforge.net/project/showfiles.php?group_id=22866 -Original Message- From: awc [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 13. Februar 2003 22:29 To: Struts Users Mailing List Subject: Re: Strange Validator Problem Do they have - Jboss 3.0.6 with tomcat 4.1.18 out

RE: Strange Validator Problem

2003-02-12 Thread René Eigenheer
2003 21:26 To: Struts Users Mailing List Subject: Re: Strange Validator Problem It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the problem is still present. I appreciate your help; do you have any other suggestion? Thanks! On Tue, 2003-02-11 at 02:09, Iris wrote: What

Re: Strange Validator Problem

2003-02-11 Thread Robert Morse
with j2sdk1.4.0. Iris Robert Morse wrote: Hello, I have a very strange validator problem with 1.1-b3. I have a simple logon form (ValidatorForm) that accepts a userid and password. In my validation.xml file I'm specifying that the fields are required. The struts-config.xml file has

Re: Strange Validator Problem

2003-02-11 Thread Iris
What is your version of java ? I had the same problem with j2sdk1.4.1_01 but I work fine with j2sdk1.4.0. Iris Robert Morse wrote: Hello, I have a very strange validator problem with 1.1-b3. I have a simple logon form (ValidatorForm) that accepts a userid and password. In my validation.xml

Re: Strange Validator Problem

2003-02-11 Thread Vic Cekvenich
standards is you can replace. .V Iris wrote: What is your version of java ? I had the same problem with j2sdk1.4.1_01 but I work fine with j2sdk1.4.0. Iris Robert Morse wrote: Hello, I have a very strange validator problem with 1.1-b3. I have a simple logon form (ValidatorForm) that accepts

Re: Show stopping validator problem.

2003-02-10 Thread Vic Cekvenich
Just last night a had a similar problem for a while. In my case the resource properties files had a typo in struts-config. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/portlets/proj/TasksZoomTile.jsp has the setup file, and same place has a validator working, look at

Re: Show stopping validator problem.

2003-02-10 Thread Ray
Thanks Vic. In the end I just wiped the whole tomcat work directory and restarted and it started working. I have a feeling it may have been because I had the resources file open in an editor, so it may not have been reading it in or something ... --- Vic Cekvenich [EMAIL PROTECTED] wrote: Just

Strange Validator Problem

2003-02-10 Thread Robert Morse
Hello, I have a very strange validator problem with 1.1-b3. I have a simple logon form (ValidatorForm) that accepts a userid and password. In my validation.xml file I'm specifying that the fields are required. The struts-config.xml file has the validate=true. When I execute this, I get

Show stopping validator problem.

2003-02-09 Thread Ray
Hi there. I'm using the Javascript validator, and have run into a problem that I can't get around. When a field is invalid, the Javascript dialog box just comes up empty, and I can't figure out why. I had a look at the code generated in JavaScript, and it appears to be missing the actual

Re: Show stopping validator problem.

2003-02-09 Thread David Graham
Are you using modules? If your module doesn't define a message resources then it won't find the error messages. David From: Ray [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Show stopping validator problem

Re: Show stopping validator problem.

2003-02-09 Thread Ray
] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Show stopping validator problem. Date: Sun, 09 Feb 2003 11:58:47 + Hi there. I'm using the Javascript validator, and have run into a problem that I can't get around. When a field is invalid, the Javascript dialog box just comes up empty

Struts Validator Problem

2003-01-17 Thread Suresh Addagalla
Hi, I am facing a problem with Validator while doing client-side validation. IE is throwing the following error dialog when I submit the form: type is null or not an object The corresponding source code (validator generated) line the *second* line below: for (x in oRequired) {

Struts Validator Problem

2003-01-17 Thread Suresh Addagalla
Hi, I am facing a problem with Validator while doing client-side validation. IE is throwing the following error dialog when I submit the form: type is null or not an object The corresponding source code (validator generated) line the *second* line below: for (x in oRequired) {

Re: Struts Validator Problem

2003-01-17 Thread Dan Tran
check your validation.xml and makesure all dedined form field match with your jsp field. I ran to this before hope this help -D - Original Message - From: Suresh Addagalla [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 17, 2003 6:42 AM Subject: Struts Validator Problem

Struts Validator Problem

2003-01-14 Thread Amit Keshav Kulkarni
Hi All I facing problem in Validator - Struts 1.1 . I am having two fields and checking for the empty fields.While submitting the form with empty fields, I am getting the following error in Tomcat 4.0.3 This is the error that it is throwing in the Browser..

Re: Struts Validator Problem

2003-01-14 Thread Rob Leland
:185) This doesn't look like a validator problem, since the error is occurring from the bean:message Tag. You don't seem to be using a recient struts 1.1 version because the line numbers in the trace don't match the current CVS source. -Rob -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Validator problem with optional fields

2003-01-08 Thread Alistair Cairns
Cary Sorry this email does not provide an answer to your problem. I am coming across exactly the same problem. I was using 1.1b2 and downloaded 1.1b3. to overcome it. I see the problem with the minlength validator. if I have the following : field property=packageComments

Validator problem

2003-01-07 Thread Suresh Addagalla
Title: Message Hi, I am doing client-side validations using Validator framework. If I click on the submit button, the form is getting submitted even if there are errors in the form. How can I stop the form from being submitted when there are errors? _javascript_ alerts are being shown

RE: Validator problem

2003-01-07 Thread Frank Livaudais
You need to add in the 'return': onsubmit=return (validateLoginForm(this)); -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 8:37 AM To: [EMAIL PROTECTED] Subject: Validator problem Hi, I am doing client-side validations using

Validator problem with optional fields

2003-01-06 Thread Mader, Cary J
I'm using the validator with Struts 1.1b3. The release notes say that b3 fixes an issued with validator that I was having problems with in b2...where all validations are treated as required. The problem I was having with the date validator has gone away, but I'm still seeing the same problem

Validator Problem

2002-11-13 Thread Yann Verlynde
Hello, Excuse me for this silly question but I don't understand the difference between these 2 attributes in html:javascript tag dynamicJavascript=false staticJavascript=true Thanks in advance

Re: Validator Problem

2002-11-13 Thread Andreas Langmann
dynamicJavascript=false generates dynamic javascript specially for a specified formName !this generated code needs the general javascript staticJavascript=true generates general javascript (functions for the generated code) so you can generate in every page the dynamic code and the general

Struts Validator problem error with default values

2002-10-16 Thread Heligon Sandra
I use Struts Validator in my application and I have the following error on my JSP login page: cannot be less than 3 characters. Password cannot be less than 3 characters. UsernamePassword Username: Password: button: Login This

[Validator] problem accessing field args

2002-09-18 Thread Robert Taylor
I've implemented Dave Winterfeldts comparing two fields example and want to simply display the message, 'Confirm Password' and 'New Password' do not match. when the fields are not equal. What I'm getting is 'Confirm Password' and null do not match. This is a snippet of my validation.xml:

Validator problem!

2002-08-16 Thread Marco Maier
Hi, Im using the struts validator to validate a date in an DynaValidatorForm. In my JSP I have two radio buttons where the user can choose between the current date and an input field that requires an valid date. The Struts validator always validates the date from the input field. But I want that

RE: Validator problem!

2002-08-16 Thread Zimmer, Robin (SSABSA)
Once simple option is just to use a plain old ActionForm and override the validate method. -Original Message- From: Marco Maier [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 August 2002 5:48 PM To: Struts Users Mailing List Subject: Validator problem! Hi, Im using the struts validator

Re: Validator problem!

2002-08-16 Thread Marco Maier
: Friday, 16 August 2002 5:48 PM To: Struts Users Mailing List Subject: Validator problem! Hi, Im using the struts validator to validate a date in an DynaValidatorForm. In my JSP I have two radio buttons where the user can choose between the current date and an input field that requires

RE: Validator problem (or user problem... not sure which yet)

2002-06-21 Thread wbchmura
... ARRRHHH. This is driving me absolutely insane... If I can get this working before the weekend starts I will be ecstatic -Original Message- From: dwinterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:01 PM To: struts-user Subject: RE: Validator problem

RE: Validator problem (HELP ME PLS)

2002-06-21 Thread wbchmura
: Chmura, William B. Sent: Friday, June 21, 2002 9:31 AM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) I did a logic:messagesPresent and it showed that there was some messages present. Unfortunately neither html:errors/ or font color=Blue html:messages

RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread wbchmura
incorporated alot -Original Message- From: Chmura, William B. Sent: Thursday, June 20, 2002 9:46 AM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) Where I have this in my validator.xml file... ?1 This means it should give me an error

RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread David Winterfeldt
html:errors? I noticed it had a validator taglib at one point, but I am not sure where it is now that 1.1b incorporated alot -Original Message- From: Chmura, William B. Sent: Thursday, June 20, 2002 9:46 AM To: struts-user Subject: RE: Validator problem (or user problem

Validator Problem

2002-03-17 Thread Barry Glasco
Environment: Weblogic 6.1. sp2 Jsp tag: %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tlds/struts-validator.tld prefix=validator % validator:errorsExist bean:message key=errors.header/ ul validator:errors id=error libean:write

Re: Validator Problem

2002-03-17 Thread David Winterfeldt
These tags were deprecated for a while and when the Validator was repackaged under org.apache.struts.validator they weren't moved over since there are the equivalent tags in Struts. So they might not be there depending on what version of the Validator you are using. validator:errorsExist --

Struts-Validator problem: NoClassDefFoundError

2001-11-01 Thread Parvaze Suleman
Hi I am trying to use Validator in my application and can not get it to work. I have a single test form that I would like to use the Validator for client-side and server-side validation. If I add the following %@ taglib uri=/WEB-INF/struts-validator.tld prefix=validator % reference to the

Re: Struts-Validator problem: NoClassDefFoundError

2001-11-01 Thread Sandeep Takhar
search the archives for more postings, but I have heard different approaches when I posted the same problem. 1. Check to see that you are using the latest Struts nightly build. 2. If not using hte latest nightly build, this may work if you use Tomcat 4.0 3. Remove Jaxp, crimson and parser.jar