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
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" %>
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
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
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
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
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
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;
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
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
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
-
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
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.
cc:
[EMAIL PROTECTED]Subject: Re: Validator Problem
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,
>
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
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
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
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]
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
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
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
>
&
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
== -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
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
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
&
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
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
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
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
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
: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
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
> > 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
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
> 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
>
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
: 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!
>
>
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
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
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
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
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
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
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
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
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
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
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)
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)
: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
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
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 :
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
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
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
> 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
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
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
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:
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
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
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
: 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
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
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
: 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
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
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)]
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
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
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
72 matches
Mail list logo