Re: how to selectively call struts validation from a form

2006-11-23 Thread Paul Benedict
Robin, I only have one issue with this approach. I dont know how to make use of the built-in validation rules provided in validation-rules.xml in my .java code. You are not trying to replace the validator. You are still going to use it, so code in your normal rules in the XML file. All you'r

Re: how to selectively call struts validation from a form

2006-11-23 Thread robin bajaj
Thanks Paul for your input on this issue and Thanks Wendy for suggesting the following link. > Rick has an article on calling validation manually, here: > http://learntechnology.net/validate-manually.do > I understand this stuff ActionErrors errors = form.validate( mapping, request )

Re: how to selectively call struts validation from a form

2006-11-23 Thread Paul Benedict
WongTseng wrote: You say the validator is based on whatever key I supply.Is that true, as far as I know the validation is linked with the form by the form's name. ValidatorForm and ValidatorActionForm are coded to select the keys for you. The former picks the form name, the second picks the acti

Re: how to selectively call struts validation from a form

2006-11-23 Thread Wendy Smoak
On 11/23/06, robinbajaj <[EMAIL PROTECTED]> wrote: Hi Folks, My previous post's subject was not clear. So here's a re-phrase of the problem. My loyaltyPAge.jsp has two buttons - Exit and continue. I want the validation to occur only when "Continue" is clicked upon. But the Rick has a

Re: how to selectively call struts validation from a form

2006-11-23 Thread WongTseng
hi,Paul: You say the validator is based on whatever key I supply.Is that true, as far as I know the validation is linked with the form by the form's name. 2006/11/24, Paul Benedict <[EMAIL PROTECTED]>: Robin, The validator is based on whatever key you supply. You can choose the key. I like t

Re: how to selectively call struts validation from a form

2006-11-23 Thread Paul Benedict
Robin, Yes, there is a way, but Struts cannot automatically supply the solution for you. The stumbling block is that you have automatic validation turned on. If you only want to validate on a certain button, first turn automatic validation off. This will prevent Struts from running the valida

how to selectively call struts validation from a form

2006-11-23 Thread robinbajaj
l etc.) in this case, Thanks for your help, regards, robin. -- View this message in context: http://www.nabble.com/how-to-selectively-call-struts-validation-from-a-form-tf2695232.html#a7516473 Sent from the Struts - User mailing list a