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 validatio

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" %>

RE: Validator problem: html:messages tag and NullPointerException

2003-10-01 Thread Davide Bruzzone
Dave -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

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 NullPointerExcept

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 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 *mi

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 un

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 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 i fail to gi

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

RE: Validator Problem

2003-07-22 Thread Canning, Chuck
- 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 cannot be less t

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.

Re: Validator Problem

2003-07-22 Thread prashant . mdesai
cc: [EMAIL PROTECTED]Subject: Re: Validator Problem

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

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.require

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 c

Validator + Problem

2003-07-11 Thread Aaron Longwell
I feel a little embarrased asking this question... it seems so simple... I'm having a problem when the Validator framework actually finds a validation error. My form contains a dynamically created drop-down. For correct data, the form works just fine. When the user submits bad data, however, th

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]

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 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 constr

AW: Validator problem with integers

2003-06-19 Thread sem . Gottofrey
gt; 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 currently has a > numeric check but > patches are welcome. > > David > &

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 t

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
== -1) return false; } return true; } - -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 le

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). Dav

RE: Validator problem with integers

2003-06-18 Thread David Graham
lto:[EMAIL 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 &

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 int

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 v

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 box

[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 the

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 PROTE

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

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

Re: Strange Validator Problem

2003-02-13 Thread awc
> > 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, JDK, etc., you are > > using? Thanks. > > > > On Thu

RE: Strange Validator Problem

2003-02-13 Thread René Eigenheer
d troubles 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 > > > Wou

RE: Strange Validator Problem

2003-02-13 Thread Robert Morse
> struts-b3-binary everything works again ;-) > > > > -Original Message- > > From: Robert Morse [mailto:[EMAIL PROTECTED]] > > Sent: Donnerstag, 13. Februar 2003 03:31 > > To: Struts Users Mailing List > > Subject: RE: Strange Validator Problem >

RE: Strange Validator Problem

2003-02-13 Thread René Eigenheer
g, 13. Februar 2003 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

RE: Strange Validator Problem

2003-02-12 Thread René Eigenheer
: Dienstag, 11. Februar 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! > >

Re: Strange Validator Problem

2003-02-11 Thread Robert Morse
e 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

Re: Strange Validator Problem

2003-02-11 Thread Vic Cekvenich
open 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 acce

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

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

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

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 s

Re: Show stopping validator problem.

2003-02-09 Thread Ray
st" <[EMAIL PROTECTED]> 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. Whe

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

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 erro

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 Sub

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-14 Thread Rob Leland
:185) This doesn't look like a validator problem, since the error is occurring from the 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:[EMA

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.. java.lang.NullPointerException

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 :

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-si

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 prop

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 w

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 gene

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

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: This error has to be

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

Re: Validator problem!

2002-08-16 Thread Marco Maier
ssage- > 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 to validate a date in an DynaValidatorForm. > In my JSP I have two radi

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

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 (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 or produces any output

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

2002-06-21 Thread wbchmura
ecstatic -Original Message- From: dwinterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:01 PM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) The change from using multiple set-property elements was made right after beta since it

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

2002-06-20 Thread David Winterfeldt
idator > feed the error messages > into the normal 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: T

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

2002-06-20 Thread wbchmura
: 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 if it is not filled in? ?2 Should I have to invoke something from

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 --> log

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" %> ERROR MESSAGE: <[WebAppServletContext(6657758,veh -web,/veh-web)]

Re: Struts-Validator problem: NoClassDefFoundError

2001-11-01 Thread David Winterfeldt
The ActionMessage class is in the more recent nightly builds of Struts. Are you using html:messages? This uses that class. I'm not what else would be looking for this in a JSP page though. The validator tags shouldn't be making a reference to this class. To check if the ValidatorResources a

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 f

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