Re: Reasonable to use EJBs for validation in ActionForm validatemethod?

2003-07-18 Thread Keith Pemberton
The validation code of if the custom is already in the database should be in your create method on the entity EJB. Other validation code concerning the webform (such as valid address) should go in the validate method on the ActionForm that you have specified for the webform. Hope this helps

Validation on first page impression

2003-07-17 Thread Jens v . P .
Hello, I'm wondering how to suppress form validation when a form is shown the first time to the user. Is there a flag to be set or something? The validation method is called the first time the page is selected, and of course no field is populated, so that the user receives many errors telling

Re: Validation on first page impression

2003-07-17 Thread Dirk Markert
Hello Jens, you must set validate = false in your action mapping. *** JvP Hello, JvP I'm wondering how to suppress form validation when a form is shown the JvP first time to the user. Is there a flag to be set

RE: Validation on first page impression

2003-07-17 Thread Wendy Smoak
I'm wondering how to suppress form validation when a form is shown the first time to the user. Search the list archives, this has come up before. I override the validate method and decide whether or not to call super.validate(). On the first page view, the form will not have been submitted

Re: Validation on first page impression

2003-07-17 Thread Jens v . P .
Hello, I wondered why the validator framework has no functionality for handling the first page impression. I'm not sure - but I suspect that also other newbies would have this problem. In other threads about this topic I found the solution of two actions - and I tend to say that this is the

URL validation with struts???

2003-07-15 Thread Prashanth.S
Hi all, I need to upload a resource present at a particular location by making user enter a valid URL...How can i do URL name validation using struts???Is there anything to do so??Do i need to do this in action form or action class??[what User entered is a valid url i.e,both name as well

Re: URL validation with struts???

2003-07-15 Thread Dichotomy
your action. -- If education is too expensive, try ignorance. On Tue, 15 Jul 2003 06:36:14 -0700 (PDT) Prashanth.S [EMAIL PROTECTED] wrote: Hi all, I need to upload a resource present at a particular location by making user enter a valid URL...How can i do URL name validation using struts

RE: URL validation with struts???

2003-07-15 Thread Amit Kirdatt
I think the URL validation should be done in the form's validate() method. -Original Message- From: Dichotomy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 11:48 AM To: Struts Users Mailing List Subject: Re: URL validation with struts??? Steps: 1) Use a regular expression

RE: URL validation with struts???

2003-07-15 Thread Greg Hess
distribution. With this my code need not be concerned with the validity of the url string and is check by the validation framework on both client side(JavaScript) and server side and I only worry about errors obtaining a connection to the supplied url. Cheers, Greg -Original Message- From

Re: URL validation with struts???

2003-07-15 Thread Prashanth.S
Hi all, How abt throwing MalformedURLException in the service method inside action class?? Than no need to do validation in action form?? Is it correct?? Help?? Thanks Prashanth Dichotomy [EMAIL PROTECTED] wrote: Steps: 1) Use a regular expression to check that the url fits the pattern you

RE: URL validation with struts???

2003-07-15 Thread Gandle, Panchasheel
That shoud do it right Open a new URL with a specified URL, if it throws MalformedURLException its bad URL Panchasheel -Original Message- From: Prashanth.S [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 10:04 AM To: Struts Users Mailing List Subject: Re: URL validation

Re: URL validation with struts???

2003-07-15 Thread Dichotomy
. -- If education is too expensive, try ignorance. On Tue, 15 Jul 2003 07:03:59 -0700 (PDT) Prashanth.S [EMAIL PROTECTED] wrote: Hi all, How abt throwing MalformedURLException in the service method inside action class?? Than no need to do validation in action form?? Is it correct?? Help?? Thanks

Re: URL validation with struts???

2003-07-15 Thread Rob Leland
Prashanth.S wrote: Hi all, I need to upload a resource present at a particular location by making user enter a valid URL...How can i do URL name validation using struts???Is there anything to do so??Do i need to do this in action form or action class??[what User entered is a valid url i.e,both

Re: URL validation with struts???

2003-07-15 Thread Rob Leland
Dichotomy wrote: You could definitely do that, too. If you just create a new Url(yourstringhere) it will raise that exception if it's malformed, I would encourage you to look at the implementation of URL. It does only a small amount of validation on the format, but that may be enough, for your

RE: URL validation with struts???

2003-07-15 Thread Craig R. McClanahan
On Tue, 15 Jul 2003, Gandle, Panchasheel wrote: That shoud do it right Open a new URL with a specified URL, if it throws MalformedURLException its bad URL Unfortunately, there's a gotcha to this approach -- the JVM you are running on has to understand the scheme part of the URL you are

RE: URL validation with struts???

2003-07-15 Thread Gandle, Panchasheel
To: Struts Users Mailing List Subject: RE: URL validation with struts??? On Tue, 15 Jul 2003, Gandle, Panchasheel wrote: That shoud do it right Open a new URL with a specified URL, if it throws MalformedURLException its bad URL Unfortunately, there's a gotcha to this approach -- the JVM you

mask validation.

2003-07-15 Thread Aleksander . Matijara
Hi there, I am doing a mask validation for the phone - using the 'standard' regex pattern: constant constant-namephone/constant-name constant-value^(\d{3})[-| ]?(\d{4})$/constant-value /constant

Validation using Validator java beans issue

2003-07-13 Thread Mohd Amin Mohd Din
containing info which is kept as hidden field in changePassword.jsp. The fields in changePassword.jsp are already specified in the form-bean section. We have already done the application as a prototype and are now inserting validation code into it. After validation is specified in validation.xml

Strange Results of Validation

2003-07-11 Thread Hunter Hillegas
I have an ActionForm that contains a Collection of JavaBeans. The ActionForm validates some properties in the JavaBeans. The Collection uses a LazyList. If validation fails and I get pushed back to the entry page, I get an extra item displayed from my nested:iterate tags. For instance, if I

struts-config.xml Validation At Server Startup

2003-07-11 Thread Weissman, Alan
I was running some tests with my Tomcat server and moved it to a place on the network where it was unable to access the internet. Tomcat started fine, but Struts threw an I/O exception on struts-config.xml, even though the file was there and was fine. I think that this I/O exception is due to

Validation Problems

2003-07-10 Thread guruprasad jakka
used them in the validation.xml file. eg- validate email-address has no effect even if i enter a invalid email-address. In javascript validations, if I enter a invalid email-id , I am getting a error,whereas in server side there is no error shown. Here is my validation.xml file . form-validation

Formatting form validation errors differently within the same application

2003-07-10 Thread Dhruva B. Reddy
I have built an application with Struts 1.0, which has a couple of forms that require validation. Each of these forms requires different formatting for the error messages. I was going to do this by creating another resource file (in other words, have one resource file for each form that requires

Strange Results of Validation

2003-07-10 Thread Hunter Hillegas
I have an ActionForm that contains a Collection of JavaBeans. The ActionForm validates some properties in the JavaBeans. The Collection uses a LazyList. If validation fails and I get pushed back to the entry page, I get an extra item displayed from my nested:iterate tags. For instance, if I

Validation of user input depending upon the user locale.

2003-07-09 Thread Sagar A. Phanse
Hi! I need some help. I have a textfield in my JSP where user can enter the text. Now I wanted to validate the user entered text into the textfield such that when jsp-form is submitted it will let only those characters to be entered in the textfield which are belonging to the language/locale of

RE: Validation of user input depending upon the user locale.

2003-07-09 Thread Andrew Hill
: Validation of user input depending upon the user locale. Hi! I need some help. I have a textfield in my JSP where user can enter the text. Now I wanted to validate the user entered text into the textfield such that when jsp-form is submitted it will let only those characters to be entered

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
, roll your own Action Forward back to this URL. Since it is all in the base class, it could work for every action as long as you are careful to watch the parameters or ids. Ajay Patil wrote: Hello, In my Struts application, the validation is done on server-side for every page. If the validation

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Shashank Dixit
List [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:52 PM Subject: Re: Design question: Confirm action after validation ? I have an Action base class which all my other Action classes inherit. In the execute() of this base class I check whether the user clicked cancel, before I call

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
? Pls reply Shashank - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:52 PM Subject: Re: Design question: Confirm action after validation ? I have an Action base class which all my other Action classes

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Shashank Dixit
: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 3:26 PM Subject: Re: Design question: Confirm action after validation ? my base action class sorts out all the general objects and variables that the child actions need - this is the child

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
) from webserver to appserver Shashank - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 3:26 PM Subject: Re: Design question: Confirm action after validation ? my base action class sorts out all

RE: Validation of user input depending upon the user locale.

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
I agree. What you wants sounds like it would cause more harm than good. Just my humble opinion though. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:41 AM To: Struts Users Mailing List Subject: RE: Validation of user input depending upon

Server side Validation Problems

2003-07-09 Thread guruprasad jakka
used them in the validation.xml file. eg- validate email-address has no effect even if i enter a invalid address. In javascript validations, if I enter a invalid email-id , I am getting a error,whereas in server side there is no error shown. Here is my validation.xml file . form-validation formset

Specify Error Messages For Automatic Validation

2003-07-08 Thread Caroline Jen
I am trying to put entries in the MessageResource.properties file for the error messages generated by the automatic validation. I used mask to provide a number of validation rules. How do I specify those error messages? (I used mask for a number of text field to report various errors.) I

Design question: Confirm action after validation ?

2003-07-08 Thread Ajay Patil
Hello, In my Struts application, the validation is done on server-side for every page. If the validation is successful, the user would like to see a page to confirm his action. The Confirm page should also have a Cancel button allowing him to go back to the previous page showing the data entered

How To Specify Error Messages For Self-Provided Validation Rules: mask

2003-07-07 Thread Caroline Jen
I am trying to insert entries in the MessageResources.properties file for the error messages generated by automatic validation. I could find examples for email and date (see below): errors.email={0} is an invalid e-mail address. errors.date={0} is not a date. What should the messages look like

Re-populating form page options after validation failure

2003-07-07 Thread Michael Harrison
a problem when step two fails validation: I can't point the failure forward to the JSP, since there are no values in the request for the form. I tried forward name=failure path=/SetUpFooForm.do / to get the setup action to run again and set up the necessary collections in the request

Validation and TransactionToken

2003-07-05 Thread ara
Hi,all (B (BNow I use DynaValidatorActionForm with (BStruts1.1Final release. (B (BI have a question about validate check and (BTransactionToken check. (B (BTransactionToken check is performed in (BAction#isTokenValid(HttpServletRequest request) method. (B (BSo,a validate check is

Re: Validation and TransactionToken

2003-07-05 Thread Craig R. McClanahan
On Sun, 6 Jul 2003, ara wrote: Date: Sun, 6 Jul 2003 01:27:29 +0900 (JST) From: ara [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Validation and TransactionToken Hi,all Now I use DynaValidatorActionForm

validation doesn't validate

2003-07-03 Thread Michael Muller
I can't get the validation framework to do anything. I'm speculating that the validation.xml file isn't being read; I tried putting a rule that doesn't exist and then some arbitrary syntactically incorrect text in the file, and I didn't get an error anywhere I could find. On the other hand

Re: validation doesn't validate

2003-07-03 Thread Adam Hardy
Sounds like you made the same mistake as me, not reading the Javadoc for DynaValidatorActionForm properly. To use this you specify the action mapping PATH in the validation xml form tag, not the name. If you want to specify validation against your form-bean names, then use DynaValidationForm

RE: More Validation Problems

2003-07-03 Thread Kamholz, Keith (corp-staff) USX
: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:20 PM To: Struts Users Mailing List Subject: Re: More Validation Problems wait til you graduate onto struts validator, you'll have a ball then ;) Nathan Ewing wrote: Omg I figured it out :) In my validation, to see if someone

RE: Validation Problems

2003-07-03 Thread Kamholz, Keith (corp-staff) USX
Websphere 5 has a nice struts-config UI that helps to keep everything organized. I've heard of other UI's out there too. - Keith -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:26 PM To: Struts Users Mailing List Subject: Re: Validation

Re: validation doesn't validate

2003-07-03 Thread David Graham
--- Michael Muller [EMAIL PROTECTED] wrote: I can't get the validation framework to do anything. I'm speculating that the validation.xml file isn't being read; I tried putting a rule that doesn't exist and then some arbitrary syntactically incorrect text in the file, and I didn't get

Re: More Validation Problems

2003-07-03 Thread Adam Hardy
Yes it does. Both. How can your initialization affect validation though? In your case freshly initialized properties would fail validation. Adam Kamholz, Keith (corp-staff) USX wrote: Does the required option of the validator check to see if the field is null or an empty string? Maybe

Re: More Validation Problems

2003-07-03 Thread David Graham
Kamholz, Keith (corp-staff) USX wrote: Does the required option of the validator check to see if the field is null or an empty string? The field is first stripped of all leading and trailing whitespace. If the field is null or the required validation will fail. David Maybe

Re: validation doesn't validate

2003-07-03 Thread Michael Muller
, and it exploded when I loaded that page (as I expected). I changed the class back to DynaValidatorForm, but STILL the action says it's being passes a DynaValidatorActionForm. Thanks, Mike David Graham wrote: --- Michael Muller [EMAIL PROTECTED] wrote: I can't get the validation framework to do anything

Custom Validation question

2003-07-02 Thread Brian McSweeney
( ActionMapping mapping, HttpServletRequest request ) { // this should call the validate on the automatic stuff ActionErrors errors = super.validate( mapping, request ); if (errors == null) { errors = new ActionErrors( ); } .my custom validation

Validation Problems

2003-07-02 Thread Nathan Ewing
I'm trying to set up struts validation (using the validate() function in the actionForm) and I'm getting a few problems. First, as soon as I open the form it shows the validation errors. It doesn't wait until I fill out the form. Is there a way to prevent this? Second if I fill out the form

Re: Validation Problems

2003-07-02 Thread Adam Hardy
Nathan Ewing wrote: I'm trying to set up struts validation (using the validate() function in the actionForm) and I'm getting a few problems. First, as soon as I open the form it shows the validation errors. It doesn't wait until I fill out the form. Is there a way to prevent this? yes sure, you

Re: Validation Problems

2003-07-02 Thread Nathan Ewing
I did as you suggested and it doesn't show the validation errors the first time (although I'm a bit disappointed I have to do 2 separate actions just for the same thing. Now if I hit submit I get the nullpointer exception regardless of whether I fill in the form correctly or not. Nathan

RE: Validation Problems

2003-07-02 Thread Wendy Smoak
Nathan wrote: I'm trying to set up struts validation (using the validate() function in the actionForm) and I'm getting a few problems. First, as soon as I open the form it shows the validation errors. It doesn't wait until I fill out the form. Is there a way to prevent this? Search

RE: Validation Problems

2003-07-02 Thread Nathan Ewing
Actually version 1.1.b3 Maybe I should try the final release. Nathan --- Wendy Smoak [EMAIL PROTECTED] wrote: Nathan wrote: I'm trying to set up struts validation (using the validate() function in the actionForm) and I'm getting a few problems. First, as soon as I open the form

RE: Validation Problems

2003-07-02 Thread Nathan Ewing
Upgraded, didn't help. Nathan --- Nathan Ewing [EMAIL PROTECTED] wrote: Actually version 1.1.b3 Maybe I should try the final release. Nathan --- Wendy Smoak [EMAIL PROTECTED] wrote: Nathan wrote: I'm trying to set up struts validation (using the validate() function

More Validation Problems

2003-07-02 Thread Nathan Ewing
Well I figured out why I was getting a validation error. I was returning a null error if there were no errors. Unfortunately now I find my real problem. My form shows correctly (more or less), but if I hit submit instead of just popping back up with validation errors it goes to the Action class

Re: More Validation Problems

2003-07-02 Thread Nathan Ewing
Omg I figured it out :) In my validation, to see if someone had filled in a required field I was checking to see if the field was null. Because of this whenever the form displayed the bean would be created with null fields and errors would display. Then when I hit submit it would make the blank

Re: More Validation Problems

2003-07-02 Thread Adam Hardy
wait til you graduate onto struts validator, you'll have a ball then ;) Nathan Ewing wrote: Omg I figured it out :) In my validation, to see if someone had filled in a required field I was checking to see if the field was null. Because of this whenever the form displayed the bean would

Re: Validation Problems

2003-07-02 Thread David Graham
. Nathan --- Wendy Smoak [EMAIL PROTECTED] wrote: Nathan wrote: I'm trying to set up struts validation (using the validate() function in the actionForm) and I'm getting a few problems. First, as soon as I open the form it shows the validation errors. It doesn't wait until I fill

Fw: date validation

2003-06-30 Thread Nagendra Kumar O V S
HI, can i validate a date field to be less than or greater than the current date using validator plug-in can anyone post the code here.. TIA --nagi Nagendra Kumar O V S Member Technical Staff Ikigo

Re: Custom Validation method...

2003-06-29 Thread Brown, Melonie S. - Contractor
I needed something similar for an email validation where the user could input either a valid email address or the word unknown . You should be able to swap the email checking for date checking and be good to go. public static boolean validateEmail(Object bean, ValidatorAction va

date validation

2003-06-27 Thread Nagendra Kumar O V S
HI, can i validate a date field to be less than or greater than the current date using validator plug-in can anyone post the code here.. TIA --nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd.

Custom Validation method...

2003-06-27 Thread Ian Hunter
I need to create another validation method; I need dates to be able to pass if they are set to N/A (or n/a or N/a or nA, etc) -- I imagine I could just subclass one of the validator methods. Any advice to get me started

Re: Custom Validation method...

2003-06-27 Thread Tim Jones
to another method that accesses a business tier component to do the real validation (i.e. check the various versions of 'n/a'). Ian Hunter [EMAIL PROTECTED] wrote: I need to create another validation method; I need dates to be able to pass if they are set to N/A (or n/a or N/a or nA, etc) -- I imagine I

RE: ActionForm DB validation

2003-06-26 Thread FrenzyGNX
I think that kind of validation is better to be done in the business logic layer. --- Fedor Smirnoff [EMAIL PROTECTED] wrote: Hey, I wanted to find out if its acceptable to access database in the validation stage of SOMEActionForm. Basically when a user enters email address to subscribe

RE: ActionForm DB validation

2003-06-25 Thread Fedor Smirnoff
Hey, I wanted to find out if its acceptable to access database in the validation stage of SOMEActionForm. Basically when a user enters email address to subscribe, I need to check if it already exists in the database, should I do it in SOMEAction or SOMEActionForm? Thank you Fedor

validwhen in the validation-rules?

2003-06-25 Thread Mick Knutson
I can't find any examples of validwhen in the validation rules. Does anyone have a working example for me to use? --- Thanks... Mick Knutson --- _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com

Re: validwhen in the validation-rules?

2003-06-25 Thread David Graham
--- Mick Knutson [EMAIL PROTECTED] wrote: I can't find any examples of validwhen in the validation rules. Does anyone have a working example for me to use? validwhen is not included with Struts 1.1. It will be released with 1.2. David --- Thanks... Mick Knutson

Where do I find all the potential options for requiredif validation?

2003-06-25 Thread Mick Knutson
The FA only shows a few of the options. Is there a NULL, NOTEQUALS etc Where can I find the list of options? --- Thanks... Mick Knutson --- _ MSN 8 with e-mail virus protection service: 2 months FREE*

Validation and internet wierdness

2003-06-25 Thread Benjamin Stewart
to the internet, and I attempt to submit a form without all the field being added, the validation causes a javascript window to come up and tells me that there are required fields. If I stop the tomcat server, remove the route to internet and start the tomcat server, running the same application

Re: Validation and internet wierdness

2003-06-25 Thread David Graham
this may be a tomcat wide thing. Anways. I find that when I am using the struts-example application (The Mailreader Demo), when the server that is running tomcat has a route to the internet, and I attempt to submit a form without all the field being added, the validation causes a javascript window

JavaScript Date Validation Not Working Correctly

2003-06-22 Thread Dave Ford
I am entering a valid date (10/14/66) but no matter what i type it alwasy gives a javascript error: DateOfBirth is not a date. Here my validation code. ANy ideas why this isn't working? field property=dateOfBirth depends=required,date arg0 key=person.dateOfBirth.label

Re: JavaScript Date Validation Not Working Correctly

2003-06-22 Thread David Graham
There are a couple of date validation bugs open that may have something to do with your problem: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16810 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19161 David I am entering a valid date (10/14/66) but no matter what i type it alwasy gives

RE: JavaScript Date Validation Not Working Correctly

2003-06-22 Thread Hohlen, John C
PROTECTED] Sent: Sun 6/22/2003 12:53 PM To: [EMAIL PROTECTED] Cc: Subject: Re: JavaScript Date Validation Not Working Correctly There are a couple of date validation bugs open that may have something to do with your problem

RE: JavaScript Date Validation Not Working Correctly

2003-06-22 Thread David Graham
-Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Sun 6/22/2003 12:53 PM To: [EMAIL PROTECTED] Cc: Subject: Re: JavaScript Date Validation Not Working Correctly There are a couple of date validation bugs open that may have

Re: javascript validation

2003-06-20 Thread Ben Anderson
=contentTypes.jsp forward name=failure path=/admin/contentTypes.jsp?action=create/ forward name=success path=/admin/updateBillingParameters.jsp/ /action and in my validation.xml form-validation formset form name=BillingParametersForm field property=contentType depends=required

date validation

2003-06-20 Thread Brahme, Supriya \(ENJ\)
Hi Is it possible to do date validation using validator frame work? i.e. giving 'from date' 'to date' as parameters, checking if 'to date' is greater than 'from date' if not throw an exception? Thanks supriya *** Confidentiality Notice *** This email, its electronic document attachments

Re: javascript validation

2003-06-20 Thread Kris Schneider
practice seems to be to keep the static JavaScript in a single file instead of having it generated into each JSP where you want to perform validation. This can be accomplished by setting up a staticJavascript.jsp file like: %@ page contentType=javascript/x-javascript % %@ taglib prefix=html

Re: javascript validation

2003-06-20 Thread Kris Schneider
instead of having it generated into each JSP where you want to perform validation. This can be accomplished by setting up a staticJavascript.jsp file like: %@ page contentType=javascript/x-javascript % %@ taglib prefix=html uri=http://jakarta.apache.org/struts/tags-html

Re: date validation

2003-06-20 Thread Vic Cekvenich
If you search the archives, this question has been asked over 1,000 times and answered 1,000 times. It is also covered in half the Struts books. Brahme, Supriya (ENJ) wrote: Hi Is it possible to do date validation using validator frame work? i.e. giving 'from date' 'to date' as parameters

RE: date validation

2003-06-20 Thread Mike Jasnowski
Make that 1001 times :) -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 12:17 PM To: [EMAIL PROTECTED] Subject: Re: date validation If you search the archives, this question has been asked over 1,000 times and answered 1,000 times. It is also

javascript validation

2003-06-19 Thread Paul Barriscale
/contentTypes.jsp?action=create/ forward name=success path=/admin/updateBillingParameters.jsp/ /action and in my validation.xml form-validation formset form name=BillingParametersForm field property=contentType depends=required arg0 key=admin.prompt.contentType

Re: javascript validation

2003-06-19 Thread David Graham
input=contentTypes.jsp forward name=failure path=/admin/contentTypes.jsp?action=create/ forward name=success path=/admin/updateBillingParameters.jsp/ /action and in my validation.xml form-validation formset form name=BillingParametersForm field property

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
Hi Sashi, Don't know if you've received any replies to this, but I initially handled it the same as you, but ran into problems when I was going back to the servlet for drop-down actions etc. I only wanted validation errors to appear when the user hit the save button, so I ended up just

Re: How to ignore validation when form loads (first time)

2003-06-19 Thread Adam Hardy
could be deleted. When deleting, I wanted to inhibit validation. Adam Kandi Potter wrote: Hi Sashi, Don't know if you've received any replies to this, but I initially handled it the same as you, but ran into problems when I was going back to the servlet for drop-down actions etc. I only wanted

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
thanks for the feedback. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:57 PM To: Struts Users Mailing List Subject: Re: How to ignore validation when form loads (first time) I found that the approach with 2 action mappings worked fine

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Sashi Ravipati
, 2003 12:57 PM To: Struts Users Mailing List Subject: Re: How to ignore validation when form loads (first time) I found that the approach with 2 action mappings worked fine and I got the impression when I first chose this method that it is intended to be use this way. I also used your method

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
PROTECTED] Subject: RE: How to ignore validation when form loads (first time) Even my code is working with 2 action mappings, but I have 15 JSP pages so I will have to have 30 action mappings which is worrying me. [EMAIL PROTECTED] 06/19/03 01:04PM thanks for the feedback. -Original

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Sashi Ravipati
to validate right in the form class. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 1:24 PM To: [EMAIL PROTECTED] Subject: RE: How to ignore validation when form loads (first time) Even my code is working with 2 action mappings, but I have 15 JSP

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Yansheng Lin
ActionValidateForm.validate() initially. Yeah, I am still not entirely clear on the use of validate() and reset(). I mainly use client-side of validation. I would like to know if anyone else has better idea. -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: June 19, 2003 11:49 AM

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Wendy Smoak
Sashi wrote: I do not want to validate when page loads, so how can I avoid it unless I give validate=false in the action mapping? Override the validate method in your Form bean, and only call super.validate() when appropriate. How to decide that is up to you. I use a LookupDispatchAction, so

Re: How to ignore validation when form loads (first time)

2003-06-19 Thread Adam Hardy
as far as I am concerned, there is nothing wrong with having two action mappings. It is alot easier than coding something in the form class. I have heard of projects with many hundreds of action mappings, with no adverse impact on the project. Wendy Smoak wrote: Sashi wrote: I do not want to

Switch off validation

2003-06-18 Thread jailani . s
Hi, I can see my validation works even after my validate method inside my form class returns null. I don't know from where it is taking reference and processing,is there any cache to be cleared . Please advise, Spent a lot of time on analyzing this. Note: Here i have given validate=true in my

[Carrier-Tips-On-Struts] Phased Validation Model: Required Property

2003-06-18 Thread Jing Zhou
All, In the last tip, we have shown that the reset method is cleanly solved in the Wheels algorithms. This tip will introduce a concept of phased validation model in modern GUI tool. Why phased? The answer is all about user experience on GUI. Someone recently posted 12 configuration steps

How to ignore validation when form loads (first time)

2003-06-18 Thread Sashi Ravipati
Hi We have JSP pages which need user input. How can I display the form initially with out validation and then when user enters data and submits the page, the validation has to be done. I tried to accomplish it by giving two action in Struts-Config.xml. as shown below eg: action path=/AddRate

Re: validation problem

2003-06-17 Thread salgado . pc
Check in your validation.xml if the messages (arg0, in this case) that are binded with your error message is correct... maybe it always returns the same error... (have you checked filling other form fields and checking if messages change)? Without the xml validation rule it is the best i can do

for users of DispatchAction, a security/validation idea

2003-06-17 Thread Dan Allen
For those of you who are using DispatchAction and are having difficulty with the validation framework, I have an idea to propose. Up to this point the two practices seemed to conflict, namely because the validator cannot distinguish between EditUser?method=save EditUser?method=delete EditUser

Re: RC2 requiredif validation rule syntax change

2003-06-16 Thread Reinhard Nägele
Thanks for pointing this out. I wonder nobody else has responded to your message. What's the point of that kind of change? I read the release notes and couldn't find anything about this. That's the place where such kinds of changes ought to be listed! Reinhard Kevin Robair wrote: FYI:

Re: RC2 requiredif validation rule syntax change

2003-06-16 Thread David Graham
What's the point of that kind of change? The '-' character is not a valid javascript variable character so we removed it. David I read the release notes and couldn't find anything about this. That's the place where such kinds of changes ought to be listed! Reinhard Kevin Robair wrote: FYI:

validation problem

2003-06-16 Thread Aleksandar Matijaca
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

Re: validation problem

2003-06-16 Thread David Graham
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

Re: validation problem

2003-06-16 Thread Aleksandar Matijaca
wrote: 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

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