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
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 properties
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,
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 with a minimal amount
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()
, 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 html:submit buttons -- Update, Cancel and Delete. I am
using
not using the Struts Validator, 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
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
!-- Form Bean Definitions --
form-beans
form-bean name=loginForm
-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 trying to use the validator in a form that is used in as login form
for authentication.
And the fields are not being
/validator-rules.xml,/WEB-INF/validation.xml/
/plug-in
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 trying to use the validator in a form
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 problem
Yes I did
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?
--
plug-in
className=org.apache.struts.validator.ValidatorPlugIn
set
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 are not being checked.
I have this mapping on struts-config.xml
!-- Form Bean Definitions
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.-attribute)?
but can´t be... ?!?
-Original Message-
From: Kelly Goedert
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
[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 date fields throws an error that I
can see in Firebird's
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 problem?
I'm testing the JavaScript validation for my form and noticed
-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 Schmidgall wrote:
datePattern
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 where the pattern is loaded:
var
:[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 should work
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 exactly do I get server
: 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);
As far as I can tell, nothing is ever loaded for plain datePattern,
and this matches
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: Validation: Problem with datePattern and JavaScript
, 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 Gehm [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL
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
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
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
, 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
password
userAction
Depending on the userAction value (can be 'show
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
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 sends a NullPointerException
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:
script type=text/javascript
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 :
html:javascript formName=formA /
html:javascript formName=formB
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:
html:javascript formName=frm_ccd_clm_Filter staticJavascript=false
dynamicJavascript=true /
];));
}
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 has a parameter named 'statisJavascript
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:
]
[EMAIL PROTECTED] Cc:(bcc: Pedroemanuel Salgado-PC/PGI)
Subject: validation problem
17-06-2003 00:35
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
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
Well, this is what I inherited:
formname=/public/EventRegistration
fieldpage=1 property=registrant.firstname
depends=required,mask,minlength,maxlength
arg0 key=eForm.firstname/
arg1 name=minlength
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:
formname=/public/EventRegistration
fieldpage=1 property=registrant.firstname
I believe the form name must be the same as what you defined in
struts-config.xml. Try
form name=eventRegistrationForm in your validation rules.
David
Well, this is what I inherited:
formname=/public/EventRegistration
fieldpage=1 property=registrant.firstname
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,
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;
import
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
]
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 problem. I use this ActionForm class:
package com.mycompany;
import org.apache.struts.action.Action
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
Why don't you use html:text?
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 strange validation problem. I use this ActionForm class
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 because
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:
!-- Validate item config --
action
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
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
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
Action
, 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 each jsp page.
Could
Supernova Software - supernovasoftware.com
BS Physics, MS 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
: 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 even though it is being
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:
!-- Validate item config --
actionpath=/itemConfig
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
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-bean name='someForm' type='SomeForm' /
...
action path='/something'
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 problem displaying error messages. Why is my message
with just
html:errors/
- Original 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 message not
displayed
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
html:errors property=something/ to get that SPECIFIC error
: Thursday, February 20, 2003 4:25 PM
Subject: RE: Validation problem
Thanks for your help.
My jsp is displaying : ???nl_BE.error.invalid.email???
Still something wrong. It seems my key is not found.
Can you help me again please?
Kind regards,
-Oorspronkelijk bericht-
Van: Ian
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
Did the logic:notPresent 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: Validation problem
I
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 logic:notPresent tag cause your app to complain about not having
the resources
]
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
Aan: Struts Users Mailing List
Onderwerp: Re: Validation problem
Did
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 else had a validation
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
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 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,
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 fields
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 enters
: 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 of one form that is of
course
a multipart/form-data form. The form consists
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,
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 upload script in
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
and 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
Hello,
I
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 downloading the latest struts.jar only and it fixed
]
-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 still had
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 :
...
field
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
.
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'm facing. I have a
form which has an integer field
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
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
,
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 exist, you would get a null
pointer
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 that your
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:
bean:define id=cl name=userForm property=countriesList/
which is executed without problems when the page is shown first time,
but when I
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
88 matches
Mail list logo