Re: Struts validator plugin problem

2005-11-10 Thread Laurie Harper
Are you using the validator.xml and validation-rules.xml files shipped with Struts 1.2, or copies from an older version? Do you have the right versions of all jars in your WEB-INF/lib? L. Kanuri, Chand wrote: Hi all, i have problem with validator plugin. in my struts config i enabled

Re: Validator and Tiles files missing in site

2005-11-09 Thread Yujun Liang
It seems this is the latest. http://struts.apache.org/struts-doc-1.1/userGuide/dev_validator.html On 11/9/05, Antony Paul [EMAIL PROTECTED] wrote: Hi all, The files http://struts.apache.org/struts-core/userGuide/dev_validator.html

Re: Validator and Tiles files missing in site

2005-11-09 Thread Wendy Smoak
On 11/9/05, Yujun Liang [EMAIL PROTECTED] wrote: It seems this is the latest. http://struts.apache.org/struts-doc-1.1/userGuide/dev_validator.html That's the documentation that shipped with Struts 1.1, so it's not the latest. :) Here's the latest version for the 1.2 branch:

Struts validator Nested properties problem!!!

2005-11-08 Thread Kanuri, Chand
. how can i validate these properties using struts validator(using validator-rules.xml,validation.xml and struts-config.xml). i can validate the simple properties in my action form but how can i validate the nested properties? the simple properties in my form are type and code. i am validating them

validating a list using struts validator

2005-11-08 Thread Kanuri, Chand
hi all, i am having a list of users in my actionform in which each user is a bean with 3 properties. how can i validate the list? the constructor of my form looks like this: private List users = new ArrayList(5); public UserForm() { super(); for

Re: Validator 1.2.0 RC3 now available for review

2005-11-08 Thread Michael Jouravlev
On 11/2/05, Niall Pemberton [EMAIL PROTECTED] wrote: Release Candidate 3 of Validator 1.2.0 is now available for download at: http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/ A summary of whats new in Validator 1.2.0 is available on the Wiki: http://wiki.apache.org

how to use Struts validator to this action form-please help me

2005-11-07 Thread hem hem
hi all, i am new to struts validation. i foung some nice tutorials which validates action forms using validator-rules.xml and validation.xml(which connects validator-rules.xml and formbean name in stuts-config.xml). but my form bean looks like this(i am using 2 more beans in my action form

Struts validator - validating the complicated action form with nested properities - urgent please$^^*(

2005-11-07 Thread hem hem
hi all, i am new to struts validation. i foung some nice tutorials which validates action forms using validator-rules.xml and validation.xml(which connects validator-rules.xml and formbean name in stuts-config.xml). but my form bean looks like this(i am using 2 more beans in my action form

RE: Client Side Validator Fails When Submit from Javascript

2005-11-07 Thread Vishal Dalal
hi, try to use onClick instead of onSubmit when you are using the javaScript submit Cheers, Vishal -Original Message- From: Jim Reynolds [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 7:12 PM To: user@struts.apache.org Subject: Client Side Validator Fails When Submit from

Re: Validator 1.2.0 RC3 now available for review

2005-11-06 Thread Adam Hardy
Aah, so this is why you were too busy to make it to the user group meet-up, Niall! ;) Niall Pemberton on 03/11/05 15:48, wrote: On 11/3/05, David G. Friedman [EMAIL PROTECTED] wrote: Niall, Some of those listed extensions are long awaited. :) Regards, David Great, if you get a chance

Re: Validator 1.2.0 RC3 now available for review

2005-11-06 Thread Paul Benedict
...as long as you don't have 12 betas like Tapestry :-) __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail:

Client Side Validator Fails When Submit from Javascript

2005-11-04 Thread Jim Reynolds
=left html:text property=emailAddress size=30 maxlength=30/ /td /tr tr td align=right html:submitSave/html:submit /td td align=left html:cancelCancel/html:cancel /td /tr /table /div !-- Begin Validator Javascript Function-- html:javascript formName=AddressForm/ !-- End of Validator Javascript

wizard-style form and validator

2005-11-03 Thread Nicolas De Loof
Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator check inputs. I've got this problem : first page validate an userId selection (required) When this rules failes on page 2 or 3 (let's consider the user has used a bookmark), I'd like struts

RE: wizard-style form and validator

2005-11-03 Thread bsimonin
hope this helps. -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Thu 11/3/2005 3:07 AM To: Struts Users Mailing List Subject: wizard-style form and validator Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator

Re: wizard-style form and validator

2005-11-03 Thread Michael Jouravlev
On 11/3/05, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator check inputs. I've got this problem : first page validate an userId selection (required) When this rules failes on page 2 or 3 (let's

Re: wizard-style form and validator

2005-11-03 Thread Nicolas De Loof
I'll have a look, thansk for the link. Thanks also to bsimonin for code suggestion. Michael Jouravlev a écrit : On 11/3/05, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator check inputs. I've

Re: Validator 1.2.0 RC3 now available for review

2005-11-03 Thread Niall Pemberton
On 11/3/05, David G. Friedman [EMAIL PROTECTED] wrote: Niall, Some of those listed extensions are long awaited. :) Regards, David Great, if you get a chance to try it out, any feedback would be much appreciated. Niall -

Commons Validator or Struts Validator?

2005-11-03 Thread Jim Reynolds
I am a bit confused between the commons validator and the struts validator. I am trying to incorporate javascript:validations within some JSP files, and I am having a hard time deciding what to configure. I found a struts-validtor.tld, but it appears old, and when I search google for struts

Re: Commons Validator or Struts Validator?

2005-11-03 Thread Rafael Nami
Just for the record, I've tried to search about Validator in Struts docs yesterday, and it wasn't finding the page(405 error), but today is working fine. The link is http://struts.apache.org/struts-doc-1.2.x/userGuide/dev_validator.html. Best Regards Rafael Mauricio Nami 2005/11/3, Jim Reynolds

RE: Commons Validator or Struts Validator?

2005-11-03 Thread bsimonin
WellI am not a Struts expert yetbut according the book Struts The Complete Reference Chapter 6 on page 91 a guy named David Winterfeldt created the Validator framework as a third party add-on to Struts. Validator was later integrated into the core Struts code base and has since been

Re: Commons Validator or Struts Validator?

2005-11-03 Thread Laurie Harper
The web site was recently reorganised and Google's still catching up with its indexes. Glad you found the page you needed. For the record, 'Commons Validator' is the general-purpose validation framework andd 'Struts Validator' is the component in Struts that wraps Commons Validator. The docs

lookupdispatchaction and validator

2005-11-02 Thread arnaud gonzales
hello, I'm trying to use validator with lookupdispatchaction, it will be great to generate the client JS validation. Have you any links, samples? Thanks in advance -- Regards Arnaud Gonzales.

Validator 1.2.0 RC3 now available for review

2005-11-02 Thread Niall Pemberton
Release Candidate 3 of Validator 1.2.0 is now available for download at: http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/ A summary of whats new in Validator 1.2.0 is available on the Wiki: http://wiki.apache.org/jakarta-commons/ValidatorVersion120 Full details of changes

Re: lookupdispatchaction and validator

2005-11-02 Thread Yujun Liang
Arnaud, Validator is independent on any actions, it can handle JS validation as well, http://66.102.7.104/search?q=cache:4urwhau-PQcJ:struts.apache.org/userGuide/dev_validator.html+struts+validatorhl=enclient=firefox-a Regards On 11/3/05, arnaud gonzales [EMAIL PROTECTED] wrote: hello, I'm

Commons Validator 1.2

2005-11-02 Thread Paul Benedict
Don and Niall, I see RC3 of Commons Validator 1.2! Makes me excited as my favorite bugs (oxymoron) seem to be fixed. But besides fixes, can you detail what new features it contains? __ Yahoo! Mail - PC Magazine Editors' Choice 2005

Re: Commons Validator 1.2

2005-11-02 Thread Niall Pemberton
On 11/3/05, Paul Benedict [EMAIL PROTECTED] wrote: Don and Niall, I see RC3 of Commons Validator 1.2! Makes me excited as my favorite bugs (oxymoron) seem to be fixed. But besides fixes, can you detail what new features it contains? I've put up a wiki page that tries to give a summary

RE: Validator 1.2.0 RC3 now available for review

2005-11-02 Thread David G. Friedman
Niall, Some of those listed extensions are long awaited. :) Regards, David -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 9:36 AM To: Struts Users Mailing List Subject: Validator 1.2.0 RC3 now available for review Release

Need to write a custom validator for the validator framework

2005-10-31 Thread Jim Reynolds
Hello, I have an odd page, which requires some non-normal validation. I would like to be able to write my own validator, to handle this. I am having trouble finding examples, references on how to do this. Does anyone have any links, on how, to, or configure a custom validator for my project

Re: Need to write a custom validator for the validator framework

2005-10-31 Thread Dave Newton
Jim Reynolds wrote: Does anyone have any links, on how, to, or configure a custom validator http://struts.apache.org/struts-doc-1.2.x/userGuide/dev_validator.html did not help? Dave - To unsubscribe, e-mail: [EMAIL

Re: Need to write a custom validator for the validator framework

2005-10-31 Thread Niall Pemberton
On 10/31/05, Jim Reynolds [EMAIL PROTECTED] wrote: Hello, I have an odd page, which requires some non-normal validation. I would like to be able to write my own validator, to handle this. I am having trouble finding examples, references on how to do this. Does anyone have any links, on how

Validator Logic Help Needed

2005-10-27 Thread Jim Reynolds
Using Validator in struts 1.2 Problem: I have a form that has two rows of data: The first column is a radio button and its value is either new or old See mimic form below So the user must select either the new or existing but not both. No big deal. Problem is for each row, there are two columns

Re: Validator Logic Help Needed

2005-10-27 Thread Laurie Harper
Jim Reynolds wrote: Using Validator in struts 1.2 Problem: I have a form that has two rows of data: The first column is a radio button and its value is either new or old See mimic form below So the user must select either the new or existing but not both. No big deal. Problem is for each row

Re: Validator Logic Help Needed

2005-10-27 Thread Niall Pemberton
On 10/27/05, Laurie Harper [EMAIL PROTECTED] wrote: There are a couple of validation rules you can look at for this; the first, and older option, is the 'validif' rule. The more modern option is the 'validwhen' option. Unfortunately, I can't see where the validator documentation has moved

RE: Validator start immediately when page displays?

2005-10-25 Thread Wielemaker, Bram
: dinsdag 25 oktober 2005 6:37 Aan: user@struts.apache.org Onderwerp: Validator start immediately when page displays? When the first time the web page displays, the validator hightlights fields which are blank. However submit button is not clicked yet. Instead of hightlighting errors at the first

Validator start immediately when page displays?

2005-10-24 Thread pc leung
When the first time the web page displays, the validator hightlights fields which are blank. However submit button is not clicked yet. Instead of hightlighting errors at the first time of web page displays, can the errors be shown up after the submit button is clicked? (My web page has a tile

validator error highlighting

2005-10-19 Thread fea jabi
html:form... .. ... td html:text name=Form1 property=name size=40 errorStyleClass=errormessage/ /td /html:form Css is working except for this. When I hit the submit button it just forwards to the different jsp. it doesn't validate the field which I set to be required. I did make it

Validator - requiredif validation query

2005-10-18 Thread Ashutosh Satyam
Hi, Is there a way to perform 'requiredif' validation on nested objects ? I would like to check for the value of an object only if the object containing it is not null. In the following example scenario: Class A{ String x; String y; } Class Obj{ A sub1;

Re: Validator - requiredif validation query

2005-10-18 Thread Kishore Senji
May be you could use validWhen. I'm not sure if this works, may be you could give it a try field property=sub1 depends=validWhen var var-nametest/var-name var-value((*this*==null) or ((*this*!=null) and (sub1.x!=null )))/var-value /var /field On 10/18/05, Ashutosh Satyam [EMAIL PROTECTED]

Validator Error

2005-10-13 Thread RathinaGanesh MeenakshiSundaram
Hi All, Can anyone please help me with the following error message. I'm using Struts 1.2.7 and commons-validator-1.1.4 I had the validator working previously, but now for some reasons..its not working.. Please help me in this. The following is the error message Iam getting. 11:01:12,039 ERROR

Re: validator. i need help

2005-10-13 Thread Simons Kevin
Miren, I have a working example now this is the validator-rules.xml (nothing changed in fact the normal one delivered with apache) !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN http://jakarta.apache.org

Re: validator. i need help

2005-10-12 Thread Martin Gainty
Here is an example of subclassing DynaValidatorActionForm with validation-rules.xml outlined Miren- Great article located here detailing validator-rules.xml identified validator.xml which contains field depends clause identifiying the field to validate good example of inlining JavaScript thru

Re: startup time validator validation?

2005-10-12 Thread Adam Hardy
David G. Friedman on 11/10/05 20:58, wrote: Wouldn't XDoclet's Struts Validator features work for you in this regard? It wouldn't be i nthe JSP or at startup but at build/compile time. See: http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED] David, that looked tantalising

Validator Error Message

2005-10-12 Thread Ganesh
Hi All, Iam using struts 1.2.7 and commons validator 1.1.4.. I made the validator working with these, but after a while, its not validating the jsp form for some reasons.. This following is the error message, I get when I try validating the form. -- 17:00:22,292 ERROR

RE: startup time validator validation?

2005-10-12 Thread David G. Friedman
validator? I use it within Eclipse v3.1 sometimes. Regards, David -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 12, 2005 5:03 PM To: Struts Users Mailing List Subject: Re: startup time validator validation? David G. Friedman on 11/10/05 20:58, wrote

startup time validator validation?

2005-10-11 Thread Mick Knutson
I am trying to figure out if there is a way to have the Validator framwork verify that the form element names defined in the validation.xml, are in synch with my ActionForms, but not jst at runtime. Right now if there is a mismatch, then I get an error in the form of an error, sometimes obscure

Re: startup time validator validation?

2005-10-11 Thread Dave Newton
Mick Knutson wrote: I am trying to figure out if there is a way to have the Validator framwork verify that the form element names defined in the validation.xml, are in synch with my ActionForms, but not jst at runtime. Right now if there is a mismatch, then I get an error in the form

Re: startup time validator validation?

2005-10-11 Thread Mick Knutson
It could be at build time just fine, but I am using maven. So how could I integrate this into my build then? Dave Newton wrote: Mick Knutson wrote: I am trying to figure out if there is a way to have the Validator framwork verify that the form element names defined in the validation.xml

[OT] Re: startup time validator validation?

2005-10-11 Thread Dave Newton
Mick Knutson wrote: It could be at build time just fine, but I am using maven. So how could I integrate this into my build then? I have no idea :) In my case, with ant, I was just running an external task. I don't even remember how I was getting status information back and all that. Just

RE: startup time validator validation?

2005-10-11 Thread David G. Friedman
Wouldn't XDoclet's Struts Validator features work for you in this regard? It wouldn't be i nthe JSP or at startup but at build/compile time. See: http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED] evel_Tags I am trying to figure out if there is a way to have the Validator framwork

Re: startup time validator validation?

2005-10-11 Thread Mick Knutson
no, because my code is being generated from wsdl2java, and not xdoclet. David G. Friedman wrote: Wouldn't XDoclet's Struts Validator features work for you in this regard? It wouldn't be i nthe JSP or at startup but at build/compile time. See: http://xdoclet.sourceforge.net/xdoclet/tags

Problem displaying available choices in Select option list when Validator send me back to my input page

2005-10-07 Thread jmazzella
Using Struts 1.1 Problem: Problem displaying available choices in Select option list when using Validator sends me back to my input page. Details: I have 2 html select dropdown boxes on my web page. The values that appear inside come from my database, and are sent to my form inside my form bean

Re: Problem displaying available choices in Select option list when Validator send me back to my input page

2005-10-07 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Using Struts 1.1 Problem: Problem displaying available choices in Select option list when using Validator sends me back to my input page. Details: I have 2 html select dropdown boxes on my web page. The values that appear inside come from my database, and are sent

Please enhance validator validwhen to avoid associative braces

2005-10-06 Thread Nicolas De Loof
I'm using validwhen rule and find great for complex validation I'm just frustrated on the requirement to use braces to group conditions by pairs : I must make a 4 element or validation, each element beeing itself a and expression. I'd like to write test = (A and B) or (C and D) or (E and F)

RE: Question about validator and multiple message ressources

2005-10-06 Thread luc_boudreau
d'origine- De : Niall Pemberton [mailto:[EMAIL PROTECTED] Envoyé : 4 octobre 2005 12:28 À : Struts Users Mailing List Objet : Re: Question about validator and multiple message ressources OK, you still don't say what version of Struts you're using? I'll assume Struts 1.2.7 As Martin pointed

How to provide different Validator Resources

2005-10-05 Thread Ramesh Mohan Reddy
Hi, How can I set different validator resources in struts action before calling validate(...) method ? I have got one jsp and one form/ declaration in validation.xml that are common for 2 types of customers, abc and xyz. I have got message resource elements like below:- message-resources

Re: How to provide different Validator Resources

2005-10-05 Thread Niall Pemberton
... /html:messages Niall - Original Message - From: Ramesh Mohan Reddy [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, October 05, 2005 12:39 PM Subject: How to provide different Validator Resources Hi, How can I set different validator resources in struts action before calling

Re: How to provide different Validator Resources

2005-10-05 Thread Ramesh Mohan Reddy
html:messages bundle=customer.xyz ... /html:messages Niall - Original Message - From: Ramesh Mohan Reddy [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, October 05, 2005 12:39 PM Subject: How to provide different Validator Resources Hi, How can I

Re: How to provide different Validator Resources

2005-10-05 Thread Niall Pemberton
:39 PM Subject: How to provide different Validator Resources Hi, How can I set different validator resources in struts action before calling validate(...) method ? I have got one jsp and one form/ declaration in validation.xml that are common for 2 types of customers

Re: Question about validator and multiple message ressources

2005-10-04 Thread Martin Gainty
AM Subject: Question about validator and multiple message ressources Hi there, I need to add multiple message ressources to an application and to access them from a custom validation class created with the validator framework. I've added the following in struts-config.xml

RE: Question about validator and multiple message ressources

2005-10-04 Thread luc_boudreau
Well, I've already tried to change the key of my message ressources but it seems that it doesn't change anything. Because I add errors from a validator plugin class, which is coded in java inside my application, I cannot specify the key of my message ressource, like if I was in the jsp page

Re: Question about validator and multiple message ressources

2005-10-04 Thread Niall Pemberton
What version of Struts are you using? If its Struts 1.2.7, then it is possible to do this - Commons Validator 1.1.4 had bundle and resource attributes added which enable you to specify alternate resource bundles. If you look at Strut's FieldChecks class, which contains all the standard validators

RE: Question about validator and multiple message ressources

2005-10-04 Thread luc_boudreau
validation class which posses it's own message ressources and when I launch a validation, it returns null if it's valid or throws an exception containing a message key if an error is encountered. This message key is then added to the validator framework's errors to display via : catch

Re: Question about validator and multiple message ressources

2005-10-04 Thread Kishore Senji
is then added to the validator framework's errors to display via : catch (ValidationException exception) { errors.add(field.getKey(), new ActionMessage(exception.getMessage())); } I can only access one message ressource from my struts-config.xml and it's either the last one I've defined

Struts Validator floatRange has roundoff error

2005-10-04 Thread Michael Vogt
The Struts Validator floatRange seems to have roundoff error. For the validation.xml configuration snippet below, user input of 90.1 fails validation, as expected, but 90.01 does not. field property=baseLocalities.latitude depends=float,floatRange var var-namemin

Re: Struts Validator floatRange has roundoff error

2005-10-04 Thread Laurie Harper
Michael Vogt wrote: The Struts Validator floatRange seems to have roundoff error. For the validation.xml configuration snippet below, user input of 90.1 fails validation, as expected, but 90.01 does not. field property=baseLocalities.latitude depends=float,floatRange var

Re: Struts Validator floatRange has roundoff error

2005-10-04 Thread Michael Vogt
java.math.BigDecimal to represent your values -- though note that Validator may not support BigDecimal out of the box; you may need to write custom validation rules for that (I haven't checked so YMMV). L. Thanks Laurie. It makes sense. Initially I was surprised that precision was this low for a 32

RE: e-mail address validator

2005-09-28 Thread Wielemaker, Bram
It's a standard build in validation of the validator see http://struts.apache.org/userGuide/dev_validator.html Gr, Bram I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Thanks

Re: e-mail address validator

2005-09-28 Thread Francisco - São Paulo - Brazil
What is the matter with the Struts Validator? Can't you use it? It's easy. [EMAIL PROTECTED] escreveu: I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Thanks

RE: e-mail address validator

2005-09-28 Thread Bryon Lape
Wow, even better. Thanks. It's a standard build in validation of the validator see http://struts.apache.org/userGuide/dev_validator.html Gr, Bram I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have

e-mail address validator

2005-09-27 Thread bslstruts
I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: e-mail address validator

2005-09-27 Thread Bryon Lape
I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Never mind. I found this one on an ASP.Net page: [EMAIL PROTECTED],3} it is good enough for my needs.

Re: First time writing custom validator. Is there a more elegant solution than mine?

2005-09-26 Thread Laurie Harper
Have you looked at the validWhen validation that comes with Validator/Struts? You should be able to get what you need using that, without having to go to the trouble of writing/maintaining your own validator. L. Ted Chau wrote: I have a form that I would like to validate. The rule is simple

Validator and locale

2005-09-20 Thread Wojciech Ciesielski
Hi there, Where can I specify what locale should Validator use? I have problems with float numbers which in Poland are represented as ##,## while Validator float rule is complaining about ##.## format... I have session scope LOCALE set by request filter to pl_PL already but it doesn't help

Re: Validator and locale

2005-09-20 Thread Don Brown
The latest stable Struts, 1.2.7, doesn't support locale-specific numeric validations. This feature, having been added to Commons Validator 1.2.0, will be available in Struts 1.3 and is currently available in the source code repository and probably nightlies. Don On 9/20/05, Wojciech

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread Holshausen, Ron
Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 06:51 To: 'Struts Users Mailing List' Subject: RE: Validator woes, modifying the input forward on the fly? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Sunday

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread Wojciech Ciesielski
Hi I have a situation like this: User clicks on /viewUser.do?id=4 action, which loads the specific user with id4 to be viewed. On that page is a form, the form is submitted, if some part of the xml validation fails I need to return back to /viewUser.do?id=4. It would be ideal if the

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread David Erickson
To: Struts Users Mailing List Subject: RE: Validator woes, modifying the input forward on the fly? Hi David, One way to get around the problem would be to store the form bean in the session, or at least the id, and it will exist between requests. You'll just need to make sure your

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread David Erickson
-Original Message- From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 4:03 AM To: 'Struts Users Mailing List' Subject: RE: Validator woes, modifying the input forward on the fly? Hi I have a situation like this: User clicks on /viewUser.do?id=4

Re: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread Michael Jouravlev
On 9/19/05, David Erickson [EMAIL PROTECTED] wrote: -Original Message- From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED] Use ActionRedirect class in your STRUTS Action's execute: ActionRedirect ar = new ActionRedirect(mapping.findForward(myRedirectForward);

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread David Erickson
On 9/19/05, David Erickson [EMAIL PROTECTED] wrote: -Original Message- From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED] Use ActionRedirect class in your STRUTS Action's execute: ActionRedirect ar = new ActionRedirect(mapping.findForward(myRedirectForward);

StrutsTestCase and Struts Validator PlugIn

2005-09-18 Thread Richard Yee
Does anyone know if StrutsTestCase works with the Struts Validator? ie. If I make a test case and set up the request parameters for a FormBean, will the FormBean be validated using the Validator Configuration in my struts-config.xml file. Thanks, Richard

Validator woes, modifying the input forward on the fly?

2005-09-18 Thread David Erickson
Hi I have a situation like this: User clicks on /viewUser.do?id=4 action, which loads the specific user with id4 to be viewed. On that page is a form, the form is submitted, if some part of the xml validation fails I need to return back to /viewUser.do?id=4. It would be ideal if the information

Re: Validator woes, modifying the input forward on the fly?

2005-09-18 Thread Laurie Harper
David Erickson wrote: Hi I have a situation like this: User clicks on /viewUser.do?id=4 action, which loads the specific user with id4 to be viewed. On that page is a form, the form is submitted, if some part of the xml validation fails I need to return back to /viewUser.do?id=4. It would be

RE: Validator woes, modifying the input forward on the fly?

2005-09-18 Thread David Erickson
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Sunday, September 18, 2005 7:26 PM To: user@struts.apache.org Subject: Re: Validator woes, modifying the input forward on the fly? David Erickson wrote: Hi I have a situation like

RE: Struts Validator Framework

2005-08-29 Thread Ashutosh Satyam
List Subject: RE: Struts Validator Framework Hi Hubert, Thanks for your response. It worked the way you told by using dot delimiters to point out the nested object. On the same lines, I have one more question. How do I validate an array of objects. This is my class strucutre

creditCard Validator plugin problems

2005-08-26 Thread jonathan gilmore
Hello, No matter what I type into my creditCard field the creditCard validator check allways comes back with the message Card Number is not a valid credit card number. If I substitute the 'creditCard' check to a 'long' check then I can pass validation by placing a 16 digit long number. Come

Re: Validator Questions?

2005-08-25 Thread 梁炳場
(1) Could I add extra message to html:errors property=username header=empty/ in addition to empty message? Does html:errors only capture ActionErrors, not ActionMessages? (2) I have fixed it by modifying validation.xml. Thank 2005/8/25, 梁炳場 [EMAIL PROTECTED]: Struts 1.2.7 (1) The

Validator plugin troubleshooting

2005-08-25 Thread jonathan gilmore
I cannot get my struts application to work with the Validator plugin. Can someone please review my code below to see if I'm doing something wrong. I have omitted the LoginForm class The only formset in validation.xml... formset form name=LoginForm field property

Validator hates ActionDispatcher

2005-08-25 Thread Danny Lee
Hi guys! I have a sample-application I've build together from couple of tutorials. It have HibernateStruts and works (fine) using Titles. My problem: * When I try to plug-in the Validator and change the parent of my forms * from ActionForm to ValidatorForm or ValidatorActionForm

Re: Validator hates ActionDispatcher

2005-08-25 Thread Hubert Rabago
Whoa. Hate is a strong word. Maybe Validator just dislikes ActionDispatcher? :) I'm having trouble making the connection between a change in form to ActionDispatcher not working. Then again maybe it's just me. Can you provide more info? Like, what flavor of ActionDispatcher are you using

Re: Validator hates ActionDispatcher

2005-08-25 Thread Danny Lee
DispatchAction {...} in my Action-Classes and ActionForwards in it to do my persistant stuff and then forward to specific JSP. Without validator it works fine. What's your validation look like? Basic stuff, I just checking if the Autor.name is not shorter then 3 symbols and is not empty... (seems

Re: Validator hates ActionDispatcher

2005-08-25 Thread Hubert Rabago
to specific JSP. Without validator it works fine. What's your validation look like? Basic stuff, I just checking if the Autor.name is not shorter then 3 symbols and is not empty... (seems to work fine standing alone). What are your form values? Nothing specific... seems to work without big

RE: Struts Validator Framework

2005-08-25 Thread Ashutosh Satyam
(Validator.java:367) Could you tell me where am I doing wrong. Regards, Ashutosh -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thu 8/25/2005 1:36 AM To: Struts Users Mailing List Cc: Subject: Re: Struts Validator

Struts Validator Framework

2005-08-24 Thread Ashutosh Satyam
Hi, I am using the Struts Validator(Commons Validator) outside the Struts framework, to do validation. I would like to know how to validate an object when it has objects nested within it, and I need to validate the fields in those nested objects, too. Precisely I intend to achieve

Re: Struts Validator Framework

2005-08-24 Thread Hubert Rabago
I've never used Validator outside of Struts, but I do know I've successfully referenced nested elements while validating, by using dot notation. In your case, you can refer to fields a, b, obj.i, obj.j, obj.obj.k. Hubert On 8/24/05, Ashutosh Satyam [EMAIL PROTECTED] wrote: Hi, I am using

Validator Questions?

2005-08-24 Thread 梁炳場
Struts 1.2.7 (1) The following tag can test the emptiness of the field. html:errors property=username header=empty/ If I want to display a specific message when it is not empty and display error message when it is empty, what should be done in header=??? or something else (2) I have a message

validator newbie

2005-08-11 Thread David McReynolds
If inherited some code. I'm not sure what its trying to tell me. The user is simpley forwarded on to the next page and there is no indication of a problem other than this logged exception. [11 Aug 2005 13:38:42,886] [org.apache.struts.validator.ValidatorForm] [ERROR] validateRequired

Validator...the 1001st question...

2005-08-10 Thread Albrecht Leiprecht
Hi all, I'm curious ... shouldn't it be possible to override the default error message assigned to a validator rule ? Here's the example: validator.xml [...] field depends=validwhen property=salutation msg name=testmsg key=error.saluation.makechoice/ arg key=label.salutation

RE: Validator...the 1001st question...

2005-08-10 Thread Duane Rosengartner
:23 PM To: 'Struts Users Mailing List' Subject: Validator...the 1001st question... Hi all, I'm curious ... shouldn't it be possible to override the default error message assigned to a validator rule ? Here's the example: validator.xml [...] field depends=validwhen property=salutation msg

RE: Validator...the 1001st question...

2005-08-10 Thread Albrecht Leiprecht
default error message ;) Stopped scratching his head albi -Original Message- From: Albrecht Leiprecht [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 9:23 PM To: 'Struts Users Mailing List' Subject: Validator...the 1001st question... Hi all, I'm curious ... shouldn't

<    6   7   8   9   10   11   12   13   14   15   >