Delete Validation -- with Vector displayed

2003-08-14 Thread Alawadhi, Mona
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

RE: validation philosophical question

2003-08-14 Thread Yansheng Lin
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

validation - phone, state, zipcode

2003-08-14 Thread David Thielen
Hi; Is there a standard validation package out there that handles phone number, state, zipcode based on country? thanks - dave

Re: validation philosophical question

2003-08-14 Thread Michael Ruppin
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

Re: validation philosophical question

2003-08-14 Thread Adam Levine
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

validation mask for currency

2003-08-14 Thread david chan
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

RE: validation philosophical question

2003-08-14 Thread Chappell, Simon P
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

Re: validation philosophical question

2003-08-14 Thread Jing Zhou
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

Re: Trouble with validation of nested properties-indexedListProperty?

2003-08-14 Thread John Tangney
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

RE: Design Question: Forms-and-Validation, which scope to use for dynamic beans?

2003-08-14 Thread Gino LV. Ledesma
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

RE: Delete Validation -- with Vector displayed

2003-08-14 Thread Mike Jasnowski
-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

Re: Validation errors display prob in jsp

2003-08-11 Thread Raj Atchutuni
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

RE: (help!!! plz!!) Select Box and validation (repost)

2003-08-09 Thread Sachin
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

Select Box and validation (plz help :)) (repost)

2003-08-08 Thread Khalid K.
- 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

RE: Date validation and format

2003-08-07 Thread Yansheng Lin
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

RE: Delete Validation -- with Vector displayed

2003-08-07 Thread Mike Jasnowski
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

(help!!! plz!!) Select Box and validation (repost)

2003-08-06 Thread Khalid K.
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

RE: struts validation

2003-08-05 Thread Harald Tomio
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

Date validation and format

2003-08-05 Thread Ji Mare
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

Re: Date validation and format

2003-08-05 Thread Adam Hardy
. 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

RE: Delete Validation -- with Vector displayed

2003-08-05 Thread Alawadhi, Mona
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

struts validation

2003-08-04 Thread Laksh Narasimhan
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

RE: struts validation

2003-08-04 Thread Alex Shneyderman
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

RE: struts validation

2003-08-04 Thread Laksh Narasimhan
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

RE: struts validation

2003-08-04 Thread Alex Shneyderman
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

Select Box and validation (plz help :))

2003-08-04 Thread Khalid K.
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

Select Box and validation (plz help :)) (repost)

2003-08-04 Thread Khalid K.
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

Validator newbie - server side dynamic validation ??

2003-08-01 Thread Koni Roth
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

Javascript validation for struts form field elements

2003-07-31 Thread Veena B N
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

RE: Javascript validation for struts form field elements

2003-07-31 Thread Suzette Daniel
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

RE: Javascript validation for struts form field elements

2003-07-31 Thread Veena B N
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

RE: Javascript validation for struts form field elements

2003-07-31 Thread Mike Jasnowski
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

RE: newbie-question: validation across multiple pages

2003-07-31 Thread Yansheng Lin
:). 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

Show validation errors in an dialog

2003-07-31 Thread Dirk Behrendt
Hello! What is necessary to show errors from validation not in a JSP , but in a dialog? Dirk

XHTML 1.0 Strict, XHTML 1.1 and validation errors with form tags

2003-07-31 Thread jlord
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

Re: XHTML 1.0 Strict, XHTML 1.1 and validation errors with form tags

2003-07-31 Thread David Graham
--- [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

RE: XHTML 1.0 Strict, XHTML 1.1 and validation errors with form tags

2003-07-31 Thread Raible, Matt
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

AW: Show validation errors in a dialog

2003-07-31 Thread Dirk Behrendt
!')    /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

Re: AW: Show validation errors in a dialog

2003-07-31 Thread Rob Leland
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

DispatchActions - using form validation for only some methods

2003-07-30 Thread Paul McCulloch
). 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

RE: DispatchActions - using form validation for only some methods

2003-07-30 Thread Bailey, Shane C.
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

RE: DispatchActions - using form validation for only some methods

2003-07-30 Thread Paul McCulloch
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

newbie-question: validation across multiple pages

2003-07-30 Thread Sebastian F. Martin
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

Validation of Indexed Properties

2003-07-28 Thread Nicholas L Mohler
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

RE: Validation question

2003-07-28 Thread Yansheng Lin
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

RE: Validation question

2003-07-28 Thread Bailey, Shane C.
, 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

Re: Partial form validation...

2003-07-25 Thread manglu
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

Re: More validation woes

2003-07-25 Thread Cyber.Zombie
); //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

Validation and Multi-Page Forms

2003-07-25 Thread Norr, Peter
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

RE: Validation and Multi-Page Forms

2003-07-25 Thread Erez Efrati
-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

Re: Validation and Multi-Page Forms

2003-07-25 Thread Gregory F. March
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

RE: Validation and Multi-Page Forms

2003-07-25 Thread Erez Efrati
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

2003-07-25 Thread Norr, Peter
: 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

RE: Validation and Multi-Page Forms

2003-07-25 Thread Erez Efrati
: 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

validation sequence

2003-07-25 Thread Aleksander . Matijara
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

RE: validation sequence

2003-07-25 Thread Aleksander . Matijara
); } 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

RE: validation sequence

2003-07-25 Thread Yansheng Lin
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

RE: validation sequence

2003-07-25 Thread Aleksander . Matijara
/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

RE: Birthdate validation ?

2003-07-24 Thread Mark Galbreath
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

RE: Birthdate validation ?

2003-07-24 Thread Mark Galbreath
- 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

Re: More validation woes

2003-07-24 Thread Gregory F. March
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

Re: Birthdate validation ?

2003-07-24 Thread Adam L
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

RE: Birthdate validation ?

2003-07-24 Thread Mark Galbreath
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

RE: More validation woes

2003-07-24 Thread Yansheng Lin
, 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

RE: More validation woes

2003-07-24 Thread Yansheng Lin
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

Re: More validation woes

2003-07-24 Thread Gregory F. March
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

RE: More validation woes

2003-07-24 Thread Yansheng Lin
:[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

Re: More validation woes

2003-07-24 Thread Gregory F. March
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-=-

Can Validor ignore datatype validation if value is null?

2003-07-24 Thread Brian Chaplin
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

Re: Can Validor ignore datatype validation if value is null?

2003-07-24 Thread David Graham
--- 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

Partial form validation...

2003-07-24 Thread Keith Pemberton
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

Birthdate validation ?

2003-07-23 Thread Erez Efrati
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

Re: Birthdate validation ?

2003-07-23 Thread Adam Levine
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

Re: Birthdate validation ?

2003-07-23 Thread Adam Levine
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

RE: Birthdate validation ?

2003-07-23 Thread Alex Shneyderman
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

RE: Birthdate validation ?

2003-07-23 Thread Erez Efrati
, 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

RE: Birthdate validation ?

2003-07-23 Thread Alex Shneyderman
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

RE: Birthdate validation ?

2003-07-23 Thread Erez Efrati
] 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

Re: Birthdate validation ?

2003-07-23 Thread Rick Reumann
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

Re: Birthdate validation ?

2003-07-23 Thread Rick Reumann
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

More validation woes

2003-07-23 Thread Gregory F. March
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);

RE: Birthdate validation ?

2003-07-23 Thread Jayaraman Dorai
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

RE: Birthdate validation ?

2003-07-23 Thread Mark Galbreath
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

RE: Birthdate validation ?

2003-07-23 Thread James Childers
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

RE: Birthdate validation ?

2003-07-23 Thread Yee, Richard K,,DMDCWEST
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

RE: More validation woes

2003-07-23 Thread Yansheng Lin
: 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

Re: More validation woes

2003-07-23 Thread Gregory F. March
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

Validation Error

2003-07-22 Thread bacco77
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

validation error

2003-07-22 Thread bacco77
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

RequiredIf Validation with nested

2003-07-22 Thread Arnason, Tamara
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

Validation (Heirarchy) Question

2003-07-22 Thread Blake Whitmore
'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

RE: Validation (Heirarchy) Question

2003-07-22 Thread Suzette Daniel
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

RE: Validation (Heirarchy) Question

2003-07-22 Thread Blake Whitmore
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

Dsiplaying forms without validation

2003-07-22 Thread Canning, Chuck
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

RE: Dsiplaying forms without validation

2003-07-22 Thread Mark Galbreath
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

Re: Dsiplaying forms without validation

2003-07-22 Thread Jens v . P .
) 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

Re: Dsiplaying forms without validation

2003-07-22 Thread Michael Ruppin
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

DynaForm mapped property client-side validation problem

2003-07-22 Thread Steve Caswell
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

Re: Problem in validation?

2003-07-21 Thread Siva
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 -

Problem in validation?

2003-07-20 Thread Sriman Venkatasubbu , Tidel Park - Chennai
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

<    2   3   4   5   6   7   8   9   10   11   >