On Tuesday 16 March 2004 21:03, Jignesh Patel wrote:
> When ever I am using method isDate of GenericValidator I am getting
> following error. Even for my date format 12-DEC-2004 I am getting same
> exception. I coudn't able to figure out what is the problem.
>
> -Jignesh
>
>
> ava.lang.IllegalArgum
I have problem with array validation too, I can print the propety values in my action,
but the validation doesn't work when I'm working with array type(ex. String[]). The
validation of "required" rule returns no error when it's empty.
Is there any special configuration for validating propertie
Hi,
I use a String[] in my form bean to handle a dynamic
array of text fields.
In my ActionForm, I have
private String[] candList;
public String[] getCandList()
{
return candList;
}
public void setCandList(String[] aCandList)
{
candList = aCandList;
}
In my JSP,
Barnett
-Original Message-
From: Nathan Pitts [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 4:16 PM
To: Struts List
Subject: Validation problem
I am wondering how to solve the following problem with a minimal amount
of recoding, and hope someone can give some input.
maybe you could try mimicking this
behavior in your validate method ??
Brian Barnett
-Original Message-
From: Nathan Pitts [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 4:16 PM
To: Struts List
Subject: Validation problem
I am wondering how to solve the following problem w
AIL PROTECTED]
> Sent: Thursday, January 29, 2004 6:16 PM
> To: Struts List
> Subject: Validation problem
>
>
> I am wondering how to solve the following problem with a minimal amount
> of recoding, and hope someone can give some input. I have a form the
> has three h
I am wondering how to solve the following problem with a minimal amount
of recoding, and hope someone can give some input. I have a form the
has three html:submit buttons -- Update, Cancel and Delete. I am
using a LookupDispatchAction and an ActionForm with the validation in
the validate() m
08 PM
To: Struts Users Mailing List
Subject: Re: validation problem
I'm sorry, I didn't get what you mean... could you explain?
Matthias Wessendorf wrote:
>what is about
>
>name="loginForm"
>
>instead:
>name = "loginForm"
>(as action.-attribut
ROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 11:24 AM
Subject: validation problem
> Hi,
>
> I'm trying to use the validator in a form that is used in as login form
> for authentication.
> And the fields
TED]
Sent: Friday, January 16, 2004 11:41 AM
To: Struts Users Mailing List
Subject: Re: validation problem
Yes I did. It is exactly like your application.
Matthias Wessendorf wrote:
hi kelly,
did you integrate it into
struts-config?
-->
className="org.a
what is about
name="loginForm"
instead:
name = "loginForm"
(as action.-attribute)?
but can´t be... ?!?
-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:41 AM
To: Struts Users Mailing List
Subject: Re: validation
To: Struts Users Mailing List
Subject: validation problem
Hi,
I'm trying to use the validator in a form that is used in as login form
for authentication.
And the fields are not being checked.
I have this mapping on struts-co
hi kelly,
did you integrate it into
struts-config?
-->
greetings
-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:25 AM
To: Struts Users Mailing List
Subject: validation problem
Hi,
I'm t
Hi,
I'm trying to use the validator in a form that is used in as login form
for authentication.
And the fields are not being checked.
I have this mapping on struts-config.xml
In the validation.xml I have t
t, you may get slightly different results as they are
supposed to act slightly differently. :)
-Andy
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 11:08 AM
To: Struts Users Mailing List
Subject: Re: Date validation problem?
How exactl
:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 11:08 AM
To: Struts Users Mailing List
Subject: Re: Date validation problem?
How exactly do I get server-side validation? Is this an XOR condition?
Either javascript or server-side, but not both?
Andy Schmidgall wrote:
>The javascript sho
Date validation problem?
Aha, so all I need to do is change "datePattern" to "datePatternStrict"
in my XML?
Andy Schmidgall wrote:
datePattern doesn't work -- you must use datePatternStrict unless you
modify the javascript validation function.
This line is whe
-Andy
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 10:44 AM
To: Struts Users Mailing List
Subject: Re: Date validation problem?
Aha, so all I need to do is change "datePattern" to "datePatternStrict"
in my XML?
Andy Schmid
from the
datePatternStrict var which isn't defined, so the javascript datePattern
var isn't a valid object.
-Andy
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 9:55 AM
To: Struts Users Mailing List
Subject: Date validation pro
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 9:55 AM
To: Struts Users Mailing List
Subject: Date validation problem?
I'm testing the JavaScript validation for my form and noticed that the
JavaScript generated to validate my d
I'm testing the JavaScript validation for my form and noticed that the
JavaScript generated to validate my date fields throws an error that I
can see in Firebird's JavaScript console. Here's the error:
datePattern has no properties
and here's the line it occurs on:
for (x in oDate) {
var va
PROTECTED]>
Sent: Wednesday, December 10, 2003 7:15 PM
Subject: RE: Validation: Problem with datePattern and JavaScript
It looks like the following line of code (in the date validator rule in
validator-rules.xml) loads the pattern:
var datePattern = oDate[x][2]("datePatternStrict");
ia khabot [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 12:00 PM
To: Struts Users Mailing List
Subject: Re: Validation: Problem with datePattern and JavaScript
Hi,
Do u have an example of using validate-rules.xml in a JSP file.
Thanks
- Original Message -
From: "Rouven G
Hi,
Do u have an example of using validate-rules.xml in a JSP file.
Thanks
- Original Message -
From: "Rouven Gehm" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 04, 2003 1:53 PM
Subject: Validati
I want to know if someone has updated the javascript code
in the validate-rules.xml, for the datePattern option ?
Because the code i have from the Struts 1.1 zip only
work with datePatternStrict !!!
I have searched the user mailing list, for this problem, but
not found any solution.
Thanx
Rouven
Nathan Maves wrote:
I have an action that loads a collection into the request so that the
for can get pre-loaded. The created form need to be validated. When
the validator runs the request is sent back to the original form.
Problem is that the data need to pre-load the form is gone from the
I have an action that loads a collection into the request so that the
for can get pre-loaded. The created form need to be validated. When
the validator runs the request is sent back to the original form.
Problem is that the data need to pre-load the form is gone from the
request. How can I
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 15, 2003 2:36 PM
Subject: struts 1.1 validation problem / question
> Hi,
>
> i have a small problem / question concerning the struts 1.1 validation.
> i have a jsp form that has the following input fields :
>
> id
> name
Hi Victor,
thanks for you reply. the lookupdispatchaction does not really solve
my problem, since handling the different actions is not the problem.
the problems is the validation of the input fields for the different
action. i need different validations depending on the value of the
userAction
Oi Andre,
Tries to verify the LookupDispatchAction class, this
class allows to manage diverse actions in simple
Action and in this way you can better manage its
validations with the Validator.
Good code.
Victor Amano Izawa
__
Hi,
i have a small problem / question concerning the struts 1.1 validation.
i have a jsp form that has the following input fields :
id
name
password
userAction
Depending on the userAction value (can be 'show' or 'save') i need to
validate only the id (when userAction is 'show') or the name, pa
]
Subject: Upgrading to 1.1 final validation problem...
Hi,
I'm doing upgrade from 1.1 beta to 1.1 final and I found some problems with
validation.
In 1.1 final is not required to call explicitly validate when using
DynaValidatorActionForm. This is great.
But now when the page is not it sen
Hi,
I'm doing upgrade from 1.1 beta to 1.1 final and I found some problems with
validation.
In 1.1 final is not required to call explicitly validate when using
DynaValidatorActionForm. This is great.
But now when the page is not it sends a NullPointerException executing , and
not uses the initia
h='50'; return this[varName];"));
}
Cheers,
Martin
-Original Message-
From: Thomas Cornet [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 17:35
To: Struts Users Mailing List
Subject: Re: multi-form page validation problem (client side)
The html:javascript tag
Maybe I didn't make myself clear. This is not about the static code, but
about the dynamic code. If you read my original posting, than you will
see that I have put the static JavaScript already to false:
However my mail prog removed the line brakes
and therefore this wasn't readable well. Apologie
The html:javascript tag has a parameter named 'statisJavascript' which says
if Struts has to render all static code (i.e. the validations functions).
So, if you have several form in a page, you should write something like this :
...
Thus, validation functions will appear only once.
HTH
Thom
Hi,
I'm having problems when validating a multiform page.
I have 4 forms on a single page and I've set up the validation framework
for them. When I insert the html:javascript tag on the jsp page to
create the dynamic code, it creates sth like this:
function validateFrm_ccd_crn_Filter(form)
Using Struts 1.1.0, I'm having a problem with client-side validation of a map-backed
property on a DynaValidationForm. The Javascript fails because of naming the form
field using the map syntax. Here is my configuration:
I have the following DynaValidatorForm configured in struts-config.xml:
TECTED]
<[EMAIL PROTECTED]> Cc:(bcc: Pedroemanuel Salgado-PC/PGI)
Subject: validation problem
17-0
The ValidatorBaseForm simply extends ValidatorActionForm - sorry I fergot
to add that...
Oh, that might be why they used /public/EventRegistration as the form name.
Try extending ValidatorForm and using the bean name defined in
struts-config.xml instead.
David
On Mon, 16 Jun 2003, Aleksandar
I believe the form name must be the same as what you defined in
struts-config.xml. Try
in your validation rules.
David
Well, this is what I inherited:
mask
The ValidatorBaseForm simply extends ValidatorActionForm - sorry I fergot
to add that...
On Mon, 16 Jun 2003, Aleksandar Matijaca wrote:
> Well, this is what I inherited:
>
>
>
>
> depends="required,mask,minlength,maxlength">
>
>
Well, this is what I inherited:
mask
^[a-zA-Z]*$
minlength
Post the relevant section of your validation xml file and more info about
your form.
David
Hi there,
this is my first post! I have inherited a web-based struts
project that is frankly a mess... I have managed to straighten
out most things except something that is driving me nuts - this
is th
Hi there,
this is my first post! I have inherited a web-based struts
project that is frankly a mess... I have managed to straighten
out most things except something that is driving me nuts - this
is the problem:
Validation - I have 3 fields that need to be validated - if I do not
enter anythin
June 08, 2003 4:47 PM
To: Struts Users Mailing List
Subject: Validation Problem
Hi!
I now have a strange validation problem. I use this ActionForm class:
package com.mycompany;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMapping;
i
The author is incorrect. Check out
http://jakarta.apache.org/struts/faqs/newbie.html#reset for more info.
David
> Well, these validations have already been coded for you and can be
> configured in an xml file by using the Validator. I highly recommend
you
> look into using the validator becau
Why don't you use ?
Marco
- Original Message -
From: "Thomas Miskiewicz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, June 08, 2003 9:47 PM
Subject: Validation Problem
> Hi!
>
> I now have a str
David,
> Well, these validations have already been coded for you and can be
> configured in an xml file by using the Validator. I highly recommend you
> look into using the validator because it will save you a bunch of time.
I'll do soon. I getting acquainted with Struts working with the book
Pr
homas Miskiewicz" <[EMAIL PROTECTED]>
Reply-To: "Thomas Miskiewicz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Validation Problem
Date: Sun, 8 Jun 2003 22:47:25 +0200
Hi!
I now have a strange validation p
Hi!
I now have a strange validation problem. I use this ActionForm class:
package com.mycompany;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import
: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 09, 2003 3:57 PM
To: Jason Long
Subject: RE: Multiple forms with same format and validation problem.
> 1. request.getAttribute("page") is returning null and I cannot use the
> action form methods for inside this class e
Chemical Engineering
>
> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 09, 2003 8:02 AM
> To: Struts Users Mailing List
> Subject: RE: Multiple forms with same format and
> validation problem.
>
>
> > I have no
t: Sunday, March 09, 2003 8:02 AM
To: Struts Users Mailing List
Subject: RE: Multiple forms with same format and validation problem.
> I have no way of knowing all of the forwards. The pages are generated
> dynamically when a new inventory is uploaded. I just need a way to
specify
> this in e
format and validation problem.
It has been recommended that ActionForm.validate() be
used only for trivial validations like the input
format, range etc. And these validations can be pushed
to the browser and caught there instead. The other
business validations are recommended to be done in the
It has been recommended that ActionForm.validate() be
used only for trivial validations like the input
format, range etc. And these validations can be pushed
to the browser and caught there instead. The other
business validations are recommended to be done in the
Action classes like its been pointe
> I have no way of knowing all of the forwards. The pages are generated
> dynamically when a new inventory is uploaded. I just need a way to specify
> this in each jsp page.
Could you just have the input page's path as a hidden form field and
create a new ActionForward in the Action rather than
orms with same format and validation problem.
I have an application that creates hundreds of jsp/struts form pages in xml
format. All pages have the same input fields, except that there is a
varying number of checkbox fields. I specified the following action:
The problem is
I have an application that creates hundreds of jsp/struts form pages in xml
format. All pages have the same input fields, except that there is a
varying number of checkbox fields. I specified the following action:
The problem is that there are many pages name itemConfig_X.
I deployed the struts-validator.war file to both Tomcat 4.1 and
Websphere 5.0 (via WSAD 5.0). I am not geting any client-side
validation. When I viewing source via the browser for the
jsRegistration.jsp page, I noticed that the page did not contain any of
the validator java script that the tag sh
uts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:55 PM
Subject: RE: Validation problem
> no app did not complain
>
> -Oorspronkelijk bericht-
> Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 20 februari 2003 22:55
>
no app did not complain
-Oorspronkelijk bericht-
Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 20 februari 2003 22:55
Aan: Struts Users Mailing List
Onderwerp: Re: Validation problem
Did the tag cause your app to complain about not having
the resources loaded
Did the tag cause your app to complain about not having
the resources loaded?
- Original Message -
From: "Johan Kumps" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:51 PM
Subject: RE: Validatio
I implemented your second option.
-Oorspronkelijk bericht-
Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 20 februari 2003 22:35
Aan: Struts Users Mailing List
Onderwerp: Re: Validation problem
Did you switch to ActionErrors.GLOBAL_KEY or change your JSP code?
1) If
ages not loaded -- contact
administrator
for assistance.
- Original Message -
From: "Johan Kumps" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:25 PM
Subject: RE: Validation problem
&
Aan: Struts Users Mailing List
Onderwerp: Re: Validation problem
When you add your error message to the errors object, you are specifying
Action.ERROR_KEY instead of ActionErrors.GLOBAL_ERROR -- so you'd have to do
something like
to get that SPECIFIC error. If you
swit
ginal Message -
From: "Johan Kumps" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:02 PM
Subject: Validation problem
> Hi all,
>
> I have a problem displaying error messages. Why is my mess
have you try to restart tomcat ?
- Original Message -
From: "Johan Kumps" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 10:02 PM
Subject: Validation problem
> Hi all,
>
> I have a pro
Hi all,
I have a problem displaying error messages. Why is my message not displayed?
Am I doing somthing wrong?
Please help me, I'm loosing time with this one...
Please consider following code :
struts-config.xml :
...
...
...
Form class :
...
public ActionErrors validate(Act
Hello,
I've spend hours to find why my validation suddenly doesn't work.
When I remembered that I've change my JVM j2sdk1.4.0 to j2sdk1.4.1_01,
effectivly if when I put back the JVM j2sdk1.4, the validation works again.
I doesn't find any bug report on this.
Is anybody e
One way is to have validate="flase"
and in your CRUD events manually call validate().
.V
adam kramer wrote:
I'd like to use a DispatchAction to handle the Create,Read,Update and
Delete actions for an object. But I can't work Read into the mix because
of the action-mapping configuration and the
I'd like to use a DispatchAction to handle the Create,Read,Update and
Delete actions for an object. But I can't work Read into the mix because
of the action-mapping configuration and the validation setting.
I want form validation to be TRUE for C, U and D but FALSE for Read, else
it never gets to
On Wed, 20 Nov 2002, Eddie Bush wrote:
> Brian Hickey wrote:
>
> >Martin is correct :o)
> >
> >Also be aware that very very large files can exceed the setting of Java temp
> >space (memory) allocation is some containers and crash them.
> >
> >One approach that works is to write a simple file upl
Brian Hickey wrote:
Martin is correct :o)
Also be aware that very very large files can exceed the setting of Java temp
space (memory) allocation is some containers and crash them.
One approach that works is to write a simple file upload script in Perl.
This allows you to check content-type, siz
Sent: Wednesday, November 20, 2002 1:16 PM
Subject: Re: Struts file upload validation problem
>
>
> On Wed, 20 Nov 2002, Poynter, Stephen wrote:
>
> > I have just written a document upload tool for a customer using the
struts
> > upload functionality. My upload jsp consists
pload validation problem
I have just written a document upload tool for a customer using the struts
upload functionality. My upload jsp consists of one form that is of course
a multipart/form-data form. The form consists of the file field along with
other text fields where the user e
On Wed, 20 Nov 2002, Poynter, Stephen wrote:
> I have just written a document upload tool for a customer using the struts
> upload functionality. My upload jsp consists of one form that is of course
> a multipart/form-data form. The form consists of the file field along with
> other text field
I have just written a document upload tool for a customer using the struts
upload functionality. My upload jsp consists of one form that is of course
a multipart/form-data form. The form consists of the file field along with
other text fields where the user enters various information( owner, titl
I have a strange problem involving the validation of fairly big forms.
First a preamble: the form itself always has the same name, but the field
that it's validating won't be known until runtime. There are 366 fields per
version and there are at least four versions.
I had tried to get around this
Hello,
I use struts validator to check if a date that's not required has a correct
format.
It's working fine, but if the user leave the date field empty and submit the
form, Struts generate an invalide date format error.
Here's the sample of my validator.xml file :
...
]
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 9:03 AM
To: 'Struts Users Mailing List'
Subject: RE: date validation problem
Which nightly did you bring down? I had the same problem, brought down the
20021008 nightly, and sti
2 8:00 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: date validation problem
>
>
> If you search the archive you will find that there was a
> patch applied
> shortly after the beta 2 release for the StrutsValidator
> Class. I resolved
> mine by do
rebuild
See thread:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg40614.html
Peggy
-Original Message-
From: Nicolas Robert [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 9:02 AM
To: 'Struts Users Mailing List' (E-mail)
Subject: date validation problem
As Robert mentioned, the best practice is to declare all the ActionForm
properties as Strings or booleans.
The purpose of the ActionForm is not to represent your business data. It
is to serve as a buffer for the HTML controls. HTTP is String-based, and
so the ActionForm properties need to be Str
On Sat, Feb 09, 2002 at 04:29:46AM -0800, cool dude wrote:
# Hi,
#Here's a small problem that I'm facing. I have a
# form which has an integer field, say a cost of some
# item. Now, I need to do the validation for this
# form-field to make sure that the user does not enter a
# non-numeric data
.
That's just my preference.
robert
> -Original Message-
> From: cool dude [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 09, 2002 7:30 AM
> To: [EMAIL PROTECTED]
> Subject: Form Bean Validation problem
>
>
> Hi,
>Here's a small problem that I
Hi,
Here's a small problem that I'm facing. I have a
form which has an integer field, say a cost of some
item. Now, I need to do the validation for this
form-field to make sure that the user does not enter a
non-numeric data in this field. I have the form
containing this field as a primitive in
"Yuriy Zubarev" <[EMAIL PROTECTED]> wrote:
> David,
>
> Yes it is. I think that userForm exists after the validation
> process (otherwise I would have gotten an error earlier), but something is
> wrong
> with countriesList. The form is quite big so I'll post part of it.
The problem might be tha
luck,
Yuriy Zubarev
- Original Message -
From: "David Winterfeldt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 14, 2001 8:48 PM
Subject: Re: validation problem
> Is your bean:define inside your html:form tags? If
> the userForm doesn't
Is your bean:define inside your html:form tags? If
the userForm doesn't exist, you would get a null
pointer exception trying to call it. If this doesn't
help, seeing the whole form might.
David
--- Yuriy Zubarev <[EMAIL PROTECTED]> wrote:
> Salutation to everyne!
>
> I have a form (extends Ac
Salutation to everyne!
I have a form (extends ActionForm) that has a property "countriesList"
which holds a list of beans. In jsp form page I have a code:
which is executed without problems when the page is shown first time,
but when I click submit without entering values into textboxes,
"vali
91 matches
Mail list logo