Hello Everyone,
I have a 'Delete' button in my JSP (a submit button). As the button is
submitted, a method gets called (from the Action class) to do the following:
1. checks if the field is NOT used by entities 2. Based on 1, either the
field gets deleted, or the field does not get deleted and a
Agreed mostly, but...
what happens when you want to change some validation rules? You have to change
two or more places instead of one if you choose to use other validation methods
instead of keeping everything inside the validator framework. The goal of
validator framework is to eliminate
Hi;
Is there a standard validation package out there that handles phone number, state,
zipcode based on country?
thanks - dave
I agree with Simon Adam. Something else to consider
is moving the cursory checks to your actions. If you
ever plan to use [Lookup]DispatchAction or similar,
you may have the need for different, or a lack of,
validation in your methods. Extending your Forms
might not be the best alternative
addendum.. not only do i put in the userloginalreadyexistsexception, but
also the pure data validation( EmailAddressFormatNotGoodException for
malformed, EmailAddressRequiredException for blank, etc)
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED
Hi,
I need a regular expression for checking the dollar
among inputed by user (using validator struts 1.1
mask)
Here are some valid money (comma and period are
allowed in specify location):
432,343.12
212.12
0.00
1294
The max. value should be less than 999
Any regular expression
Here's a thought ...
We perform some validation in the validate method of the Form. Just the bare minimum
stuff: required fields and basic picture checks.
Once you're inside the form object, you've already paid the price of the HTTP
roundtrip. So ... we perform all of the business validation
business
of *validations*.
What I am trying to say here is that the validation could become
an infinity business :-) It would not be accurate if we say a better
design or practice is to put *all* validation logic in one place.
For example, the DBA would impose declarative constraints
on table columns
Message-
From: John Tangney [mailto:[EMAIL PROTECTED]
Sent: August 13, 2003 5:22 PM
To: [EMAIL PROTECTED]
Subject: Trouble with validation of nested properties -indexedListProperty?
Hi all,
I have memorized the docs, scoured the archives, googled 'till my eyes were
crossed
and then build your lists in the
action.
Steve
-Original Message-
From: Gino LV. Ledesma [mailto:[EMAIL PROTECTED]
Sent: August 10, 2003 10:28 PM
To: Struts Users Mailing List
Subject: Design Question: Forms-and-Validation, which
scope to use for
dynamic beans?
Hello,
I've
-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:28 PM
To: 'Struts Users Mailing List'
Subject: RE: Delete Validation -- with Vector displayed
This is what I have in my JSP already - to validate other fields of the form
bean:
%-- Error
I am using Dynaforms for the form validation. In my jsp i use html:errors/ tag to
display them. Validation is working fine, but the errors are displayed horizontally
next to each other. I cant use strtus.el now since i completed the coding for many
forms. Does anyone one know why
06, 2003 9:31 PM
To: Struts Users Mailing List
Subject: (help!!! plz!!) Select Box and validation (repost)
Any suggestion? please??? :)
I am submitting a form using onchange javascript even handler w/
html:select/html:select tag. This works fine until I turn on
VALIDATION,
If validation is set
- Original Message -
From: Khalid K. [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, August 04, 2003 4:26 PM
Subject: Select Box and validation (plz help :)) (repost)
Any suggestion? please??? :)
I am submitting a form using onchange javascript even
I think there is a trick you can perform with regard to this:
2) Or is it possible in action read the value of the var named
datePattern in validation for particular form??
You can call your validate method in your Form.validate() initial when you populate
the form. If the date format
Validation -- with Vector displayed
Hello Everyone,
I have a 'Delete' button in my JSP (a submit button). As the button is
submitted, a method gets called (from the Action class) to do the following:
1. checks if the field is NOT used by entities 2. Based on 1, either the
field gets deleted
Any suggestion? please??? :)
I am submitting a form using onchange javascript even handler w/
html:select/html:select tag. This works fine until I turn on
VALIDATION,
If validation is set to true, and there are any validation errors, when
the page is displayed w/ the validation errors
hi, i have that problem to, but could also not locate the error.
the one validation form works (javascript), the other don't (uses server
side validation). and also it creates two e.g. required javaskript
funktions in the jsp page.
are ther any actual examples to check?
thanks for help
harald
Hi all,
I have question to date validation. In validation.xml I specified the
field folowing way:
field property=when depends=required,date
arg0 key=demand.when resource=true name=required/
arg0 key=demand.when resource=true name=date/
arg1 key=${var:datePattern
.
Ji Mare wrote:
Hi all,
I have question to date validation. In validation.xml I specified the
field folowing way:
field property=when depends=required,date
arg0 key=demand.when resource=true name=required/
arg0 key=demand.when resource=true name=date/
arg1 key=${var:datePattern
BR
/logic:messagesPresent
I get those validations/messages from the 'Validate' method in the form bean
along with the applicationResources.properties file.
I have a check for the 'errors' object in my action class.
1. How can I write my delete-validation in a way that does
Hi *,
struts validation using server side validation works fine for me... it
displays the error message in the same window where we have included the
html:error/ ... but i need the error message to be displayed in the
javascript error window... even after including these two lines it puts
Is your browser JavaScript enabled?
What validators are you using? Some of them do not have JavaScript
countrparts.
-Original Message-
From: Laksh Narasimhan [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 10:35 AM
To: [EMAIL PROTECTED]
Subject: struts validation
Hi
Mailing List' [EMAIL PROTECTED]
Subject: RE: struts validation
Date: Mon, 4 Aug 2003 10:41:36 -0400
Is your browser JavaScript enabled?
What validators are you using? Some of them do not have JavaScript
countrparts.
-Original Message-
From: Laksh Narasimhan [mailto:[EMAIL PROTECTED
the validators i used are required, minlength, maxlength etc...
but do we have problem in displaying the error messages in java script
window bcos of validators???
I do not have that problem I do not know why you do. Check to see if the
JavaScript even gets to your browser.
Ceck your
I am submitting a form using onchange javascript even handler w/
html:select/html:select tag. This works fine until I turn on VALIDATION,
If validation is set to true, and there are any validation errors, when the page
is displayed w/ the validation errors, the value of the SELECT box has
Any suggestion? please??? :)
I am submitting a form using onchange javascript even handler w/
html:select/html:select tag. This works fine until I turn on
VALIDATION,
If validation is set to true, and there are any validation errors, when the
page
is displayed w/ the validation errors
Hi list
I'm using the validation framework that comes with Struts 1.1. Client
side validation with JavaScript works fine. I read the manuals and the
'Struts in Action' book but somehow I still do not understand how
dynamic (automatic?) validation server side works! What exactly do I
have
onsubmit=return
validateInqform(inqform)
html:select property=inqVO.productDiv styleClass=SELECTMAND
tabindex=2
html:option value=-- Please Select --/html:option
/html:select
/html:form
Now if I want to do javascript(client end) validation, the form field
elements are not recognised since
Use struts validation, don't give the form it's own name this is done in the
struts config file. See Struts in Action chapter 12
(http://www.manning.com/husted/chap12.pdf).
Suzette H. Daniel
-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 7:13
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements
Use struts validation, don't give the form it's own name this is done in the
struts config file. See Struts in Action chapter 12
(http://www.manning.com/husted/chap12.pdf).
Suzette H. Daniel
-Original
One such way is this
document.forms[0].elements[ ele name with dot here ]
-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 7:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements
Thanks daniel
:).
if(! errors.isEmpty()) {
...
return (new ActionForward(page1));
}
-Original Message-
From: Sebastian F. Martin [mailto:[EMAIL PROTECTED]
Sent: July 30, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: newbie-question: validation across multiple
Hello!
What is necessary to show errors from validation not in a JSP , but in a
dialog?
Dirk
Could someone provide a definitive answer on whether Struts 1.1 Final can
actually generate compliant valid XHTML strict markup?
I have the html:xhtml/ tag in my jsp's and the markup is great except for
the form tag which is presented back to the browser. I have checked the
mail archive for
--- [EMAIL PROTECTED] wrote:
Could someone provide a definitive answer on whether Struts 1.1 Final
can
actually generate compliant valid XHTML strict markup?
I have the html:xhtml/ tag in my jsp's and the markup is great except
for
the form tag which is presented back to the browser. I
Mailing List
Subject: Re: XHTML 1.0 Strict, XHTML 1.1 and validation errors with form
tags
--- [EMAIL PROTECTED] wrote:
Could someone provide a definitive answer on whether Struts 1.1 Final
can
actually generate compliant valid XHTML strict markup?
I have the html:xhtml/ tag in my jsp's
!')
/ulhr
/logic:messagesPresent
Dirk
-Ursprüngliche Nachricht-
Von: Dirk Behrendt
[mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 31. Juli
2003 19:21
An:
'[EMAIL PROTECTED]'
Betreff: Show validation errors in
an dialog
Hello!
What
is necessary to show errors from validation
If you are talking about presenting the server side validation errors
on the client I believe you could do it on the
'onload' event handler in the BODY tag.
If you want the client side validation performed by Javascript
to display errors then look at the struts-validator
example.
Dirk Behrendt
).
Using dispatch actions I am now explicitly calling the form's validation for
those methods that require a validated form:
ActionErrors errors = form.validate(mapping, request);
if(!errors.isEmpty()) {
saveErrors(request, errors);
return new
as /a.do?subtask=method1 and /b.do?subtask=method2 and then
do validation per action and not per form.
The other alternative suggested by Robert Taylor, which, once set up, is
pretty slick but involves a little extension to how validator works:
http://marc.theaimsgroup.com/?t=10535260067r=1w=2
Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: 30 July 2003 15:00
To: 'Struts Users Mailing List'
Subject: RE: DispatchActions - using form validation for only some
methods
Not sure if anybody answered you question or not yet but there are a couple
things you can do...
1. Have
Hi all,
I've been studying the mailing list but couldn't find anything that
would help me. I'd be grateful if someone could give me a hint on this:
I am collecting user input across multiple pages and validate it in the
validate() method of the ActionForm. If an input field on the second or
the
Hi,
I am currently imple,enting the Struts validator into our web app. All is
going pretty well with the exception of client-side indexed property
validation. I have looked at the Validator documentation, and gone through
this list looking for some idea that will give me a clue as to what I
Try
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(errors.userNotFound,
userName);
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: July 28, 2003 1:37 PM
To: [EMAIL PROTECTED]
Subject: Validation question
I have been using the validator plug-in so
, July 28, 2003 3:59 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation question
Try
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(errors.userNotFound,
userName);
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: July 28, 2003 1:37 PM
To: [EMAIL
Keith,
I am not too sure what Partial Form Validation is
I am playing with multi-page Validation at the moment so i can share
some of the stuff that i understand so far.
(i) Turn off the validation in the Struts-Config and invoke the
Validation via the validate method in action Object
);
//return (mapping.findForward(error));
return new ActionForward(mapping.getInput());
}
}
-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: July 24, 2003 1:43 PM
To: Struts Users Mailing List
Subject: Re: More validation woes
On Jul 24
I have one form bean in session scope, where the values get populated over
time through a series of pages, like a wizard.
My question is how do I validate on a page by page basis? I am using the
Validator Framework.
Thanks,
Peter
-name
var-value${username}/var-value
/var
/field
Hope it helps,
Erez
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 4:08 PM
To: 'Struts Users Mailing List'
Subject: Validation
On Jul 25, 2003, Erez Efrati [EMAIL PROTECTED] wrote:
|You should take a look at the example bundled with Struts -
|struts-validator it shows exactly how to validate by page basis.
Right, but I thought that it will validate all fields that are =
current page? As opposed to fields that are
Yes it's exactly how it is.
-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 4:55 PM
To: Struts Users Mailing List
Subject: Re: Validation and Multi-Page Forms
On Jul 25, 2003, Erez Efrati [EMAIL PROTECTED] wrote:
|You should take
: RE: Validation and Multi-Page Forms
Peter,
You should take a look at the example bundled with Struts -
struts-validator it shows exactly how to validate by page basis.
For example (taken from my configuration):
!-- username --
field property
: Validation and Multi-Page Forms
Thanks, this helped.
One more problem, the errors are being created but html:errors
property=myfiled/ is not displaying them..
Any ideas?
Peter
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:16 AM
To: 'Struts
Hi there,
I was wondering, does anyone know in which sequence this kind of
validation will happen -
depends=acustomvalidation,mask,bcustomvalidation
so, will it be alphabetic as in:
acustomvalidation,bcustomvalidation,mask
or
acustomvalidation,mask,bcustomvalidation
or random??
Thanks
);
}
Yansheng Lin [EMAIL PROTECTED]
25/07/2003 03:34 PM
Please respond to Struts Users Mailing List
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:RE: validation sequence
On client side, if your javascript is something like:
return validateA(form
Ok, if you want to be 100% sure the sequence is right, add an alert() statement
in each validate functions:).
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: July 25, 2003 2:08 PM
To: Struts Users Mailing List
Subject: RE: validation sequence
/field
field property=newAmount depends=required
/field
field property=newAmount depends=blahblah
/field
/form
Thereby GURANTEEING the sequence of validation - we have very complex
validations
Childers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:40 PM
To: Struts Users Mailing List
Subject: RE: Birthdate validation ?
Because, except on leap years, there is no 2/29.
Silly person.
-= J
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent
-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:42 PM
To: 'Struts Users Mailing List'
Subject: RE: Birthdate validation ?
Try it and find out for yourself. It does produce 3/1/2003.
-Richard
-Original Message-
From: Mark Galbreath [mailto
On Jul 23, 2003, Yansheng Lin [EMAIL PROTECTED] wrote:
|It's a common error. Somehow you are not forwarding back to the jsp page that
|generated the error.
|
|Put a System.out statement in front of mapping.getInputForward(). I bet it's
|different from mapping.getInput();
And just so I
of lenient.
- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 7:10 AM
Subject: RE: Birthdate validation ?
I don't have time for frivolous exercises, but seeing how easy it is to
accommodate leap years
That's my point; why ru arguing with me? *hic*
-Original Message-
From: Adam L [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 8:54 AM
To: Struts Users Mailing List
Subject: Re: Birthdate validation ?
Are you drunk again? (=
It does understand leap years.
2004 is a leap
, 2003 6:46 AM
To: Struts Users Mailing List
Subject: Re: More validation woes
On Jul 23, 2003, Yansheng Lin [EMAIL PROTECTED] wrote:
|It's a common error. Somehow you are not forwarding back to the jsp page that
|generated the error.
|
|Put a System.out statement in front
I forgot how you implemented your return statement, but
return new ActionForward(mapping.getInput());
should work.
-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: July 23, 2003 6:06 PM
To: Struts Users Mailing List
Subject: Re: More validation woes
On Jul 24, 2003, Yansheng Lin [EMAIL PROTECTED] wrote:
|I forgot how you implemented your return statement, but
|
| return new ActionForward(mapping.getInput());
|
|should work.
I don't think it works. An Action.execute() returns an ActionForward.
ActionMapping.getInput() returns a
:[EMAIL PROTECTED]
Sent: July 24, 2003 1:43 PM
To: Struts Users Mailing List
Subject: Re: More validation woes
On Jul 24, 2003, Yansheng Lin [EMAIL PROTECTED] wrote:
|I forgot how you implemented your return statement, but
|
| return new ActionForward(mapping.getInput());
|
|should work
On Jul 24, 2003, Yansheng Lin [EMAIL PROTECTED] wrote:
|That's what
| return (new ActionForward(mapping.getInput());
|returns. An ActionForward to the jsp that generated the error.
My mistake! I misread your code snippet. Sorry!
/greg
--
Gregory F. March-=-
I have a field I want to validate as a datatype ONLY if it is not null. If
null, I want to bypass validation.
Can I do this?
field property=amount depends=double
/field
-
To unsubscribe, e-mail: [EMAIL PROTECTED
--- Brian Chaplin [EMAIL PROTECTED] wrote:
I have a field I want to validate as a datatype ONLY if it is not null.
If
null, I want to bypass validation.
Can I do this?
field property=amount depends=double
/field
Yes, that should work. The validations were decoupled from the required
I have read that when you do a multipage form that you have to do
partial form validation. Otherwise, the page just gets thrown back as
not being valid. Can someone please give me a sample of how this works
in the ActionForm bean? Thanks!
Keith
--
Keith Pemberton [EMAIL PROTECTED
I have a birth date field composed of three different fields of day
month and a year. Now, what is the best way to receive those three and
combine them into a java.sql.Date class and performing validation using
the validator?
Hope someone been there done that..
Thanks,
Erez
validation ?
Date: Wed, 23 Jul 2003 21:03:53 +0200
I have a birth date field composed of three different fields of day
month and a year. Now, what is the best way to receive those three and
combine them into a java.sql.Date class and performing validation using
the validator?
Hope someone been
trigger happy send am I.
then with your (java.util)Date
new java.sql.Date( utilDate.getTime() );
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Birthdate validation ?
Date: Wed, 23 Jul 2003 13:18:19 -0500
Use
To: [EMAIL PROTECTED]
Subject: Re: Birthdate validation ?
Use Calendar, more than likely the concrete GregorianCalendar.
Calendar.setField(field, field value); x3
Calendar.getTime() - Date
From: Erez Efrati [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED
, 2003 8:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Birthdate validation ?
Be carefull with that because if you set Feb 29, 2003 your date is going
to be March 1, 2003 and Calendar will not say a thing. You should
probably fix a birthdate validator.
-Original Message-
From: Adam
PROTECTED]
Subject: RE: Birthdate validation ?
Thanks for the quick reply, seems pretty easy but a bit long for just
a
date. Anyway, is there a validator I could use or do I have to write
one
of my own? And I mean Struts Validator..
Erez
-Original Message-
From: Alex Shneyderman
]
Sent: Wednesday, July 23, 2003 8:30 PM
To: 'Struts Users Mailing List'
Subject: RE: Birthdate validation ?
There is a date validator. I am not sure why a birthdate is any
different?
How do you present your field to the user is it a one input text?
-Original Message-
From: Erez Efrati
On Wed, Jul 23,'03 (09:03 PM GMT+0200), Erez wrote:
I have a birth date field composed of three different fields of day
month and a year. Now, what is the best way to receive those three and
combine them into a java.sql.Date class and performing validation
using the validator?
Search
On Wed, Jul 23,'03 (09:37 PM GMT+0200), Erez wrote:
Since I am not an HTML wizard (yet :) ) my first attempt was as
follows:
What also bugs me is the scriplet iteration using actual java code -
any idea how to do it more elegant?
Just use the normal Struts validation framework
I am creating ActionErrors in my action:
ActionErrors actionErrors = new ActionErrors();
actionErrors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(application.errors.msg,
some string));
saveErrors(request, actionErrors);
I had a hidden form field, appended the month, year and date using the javascript to
it and then validated it as usual.
The validation-rules had to be modified as it can validate only a text field and not a
hidden field.
Would be interested in knowing of any other alternate ways of validating
Calendar.getTime() - Date
From: Erez Efrati [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Birthdate validation ?
Date: Wed, 23 Jul 2003 21:03:53 +0200
I have a birth date field composed of three different fields
Because, except on leap years, there is no 2/29.
Silly person.
-= J
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:32 PM
To: 'Struts Users Mailing List'
Subject: RE: Birthdate validation ?
What makes you say that? Why would
Try it and find out for yourself. It does produce 3/1/2003.
-Richard
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 1:32 PM
To: 'Struts Users Mailing List'
Subject: RE: Birthdate validation ?
What makes you say that? Why would
: July 23, 2003 1:25 PM
To: Struts Users Mailing List
Subject: More validation woes
I am creating ActionErrors in my action:
ActionErrors actionErrors = new ActionErrors();
actionErrors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(application.errors.msg
On Jul 23, 2003, Yansheng Lin [EMAIL PROTECTED] wrote:
|It's a common error. Somehow you are not forwarding back to the jsp page that
|generated the error.
|
|Put a System.out statement in front of mapping.getInputForward(). I bet it's
|different from mapping.getInput();
Well, actually, I
I have the following problem
I've implemented a Dynamic form with validation (required,mask etc..)
The standard validation works correctly.
Then i wrote my own validator.
The validator works but when he send me to the form after the error occurs,
an exception occurs in my page:
Cannot find
I have the following problem
I've implemented a Dynamic form with validation (required,mask etc..)
The standard validation works correctly.
Then i wrote my own validator.
The validator works but when he send me to the form after the error occurs,
an exception occurs in my page:
Cannot find
Hi,
I'm trying to use the requiredif validation on fields in a nested
collection and am not having any luck.
Here's the excerpt from the validation.xml
...
form name=/submitFamily_2004
field
property=campus indexedListProperty=alumni
depends=requiredif
'required' and 'mask' (each
field must match a regular expression [no numbers
allowed]). In the instance where I use the
client-side validation and I click 'submit' with an
empty form - JavaScript cries and says, First Name
Required, Last Name Required, Middle Name Required.
That is perfect - it is just
Whitmore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 11:09 AM
To: Struts Users Mailing List
Subject: Validation (Heirarchy) Question
Hello All,
Please forgive me and just direct me to the old thread
if this is a re-post. Ok here goes:
Here is something similar to my scenario, say I have
to see
ALL the validation problems for the given form. So if
my form looks like the following:
First Name |123___|
Last Name|__|
Middle Name |__|
(Last Name and Middle Name are blank)
And in my validation.xml I have the following:
form name=staffActionForm
field property
Hi,
I have a series of pages which are used to collection information about a
user. basic registration type stuff. My question is: How do I get Struts to
display my page with the form without performing validation until the form
is submitted? Do I have to create separate action mappings for each
Users Mailing List'
Subject: Dsiplaying forms without validation
Hi,
I have a series of pages which are used to collection information about a
user. basic registration type stuff. My question is: How do I get Struts to
display my page with the form without performing validation until the form
) Create your own form class (as a subclass of a validator form
class). Check whether the submit-value is present in the quest and, if
not, skip super class validation, otherwise call super class validation
function. Caution: You have to pay attention that in the first case
your form is not skipped
There are probably more ways, too. Depending on your
design, I'd recommend Mark's suggestion. Validation
in the Action makes sense particularly when using a
variant of DispatchAction, wherein there will be many
methods for different submissions, only some of which
require validation, and perhaps
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
This can be validated using the basic validators provided by the struts
framework itself.
just specify the validators you want (like required, minLength, maxLength etc)
in the validatior-rules.xml
and associate this with your form using the validation.xml file.
Sriman Venkatasubbu , Tidel Park -
I am very new to struts...
In my jsp page i am creating dynamic form elements.I want to validate those
form elements by using validator.xml.
Is it possible to validate dynamic text boxes(form elements) ?If it is
possible ,how can i configure in validator.xml.
Thanks
Sriman
601 - 700 of 1845 matches
Mail list logo