Struts Validator Framework: client-side validation problem

2011-09-02 Thread RajasekharReddy
to nbsp; html:link href=SignUp.jspSignUp/html:link /strong/embr /center /body /html:html -- View this message in context: http://struts.1045723.n5.nabble.com/Struts-Validator-Framework-client-side-validation-problem-with-submitting-buttons-tp3481073p4761399.html Sent from the Struts - User mailing

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Dave Newton
-- View this message in context: http://struts.1045723.n5.nabble.com/Struts-Validator-Framework-client-side-validation-problem-with-submitting-buttons-tp3481073p4761399.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Brian Thompson
/html:link /strong/embr /center /body /html:html -- View this message in context: http://struts.1045723.n5.nabble.com/Struts-Validator-Framework-client-side-validation-problem-with-submitting-buttons-tp3481073p4761399.html Sent from the Struts - User mailing list archive at Nabble.com

Struts validator nested vector validation

2009-01-27 Thread Eugene Ezekiel
Hi All, I was reading the Struts validator API and i tried all kinds of forums and googling for days to no avail. How do I use the validator for nested vector validation. Here's my attempt but it doesn't seem to work. field indexedListProperty

How do i get a field value inside a custom Struts Validator, when the field’s type is FormFile?

2008-12-10 Thread Sergio del Amo Caballero
I am using struts 1.3.8 and I have a form field of type org.apache.struts.upload.FormFile. I would like to validate the field's size with a custom struts validator. To get the field's value, i have used for a text field the next code: String value = ValidatorUtils.getValueAsString(bean

Re: Struts Validator Framework: problem with Custom Validator

2008-06-26 Thread cacodemon79
://www.nabble.com/Struts-Validator-Framework%3A-problem-with-Custom-Validator-tp18098053p18137561.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Struts Validator Framework: problem with Custom Validator

2008-06-25 Thread cacodemon79
/Struts-Validator-Framework%3A-problem-with-Custom-Validator-tp18098053p18122639.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-24 Thread cacodemon79
help me. Thanks. cacodemon79 wrote: Hi, I'm using Struts Validator Framework (Struts 1.3). Server-side validation works well. The problem is in client-side validation. The form name I have to validate is: RegistrazioneUtenteForm. In my jsp page I have 2 buttons: 1) html:link href

Struts Validator Framework: problem with Custom Validator

2008-06-24 Thread cacodemon79
help me? Thanks in advance. -- View this message in context: http://www.nabble.com/Struts-Validator-Framework%3A-problem-with-Custom-Validator-tp18098053p18098053.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
. cacodemon79 wrote: Hi, I'm using Struts Validator Framework (Struts 1.3). Server-side validation works well. The problem is in client-side validation. The form name I have to validate is: RegistrazioneUtenteForm. In my jsp page I have 2 buttons: 1) html:link href

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, Maybe you should install Firebug for Firefox (not working with 3.0) and debug the JavaScript? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [struts] Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Dale Newfield
Lukasz Lenart wrote: Maybe you should install Firebug for Firefox (not working with 3.0) and debug the JavaScript? A beta version of firebug does work with 3.0 : http://getfirebug.com/releases/index.html -Dale - To

Re: [struts] Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
A beta version of firebug does work with 3.0 : http://getfirebug.com/releases/index.html Thanks! -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
javascript alerts. I can't understand where is the problem. I hope you can help me. Thanks. cacodemon79 wrote: Hi, I'm using Struts Validator Framework (Struts 1.3). Server-side validation works well. The problem is in client-side validation. The form name I have to validate

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
wrote: Hi, I'm using Struts Validator Framework (Struts 1.3). Server-side validation works well. The problem is in client-side validation. The form name I have to validate is: RegistrazioneUtenteForm. In my jsp page I have 2 buttons: 1) html:link href=javascript:submitRegistrazioneUtenteForm

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, 2008/6/23 cacodemon79 [EMAIL PROTECTED]: Bingo! Now it works! Thanks a lot. However i can't understand why the onsubmit handler is not triggered by the submit() function! Maybe it depends on Web Browser, did you try with others? Regards -- Lukasz http://www.lenart.org.pl/

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
document.registrazioneUtenteForm.submit()) instead of eval(document.+nomeForm+.submit()) but the result is the same. The form is submitted but I can't see any javascript alerts. I can't understand where is the problem. I hope you can help me. Thanks. cacodemon79 wrote: Hi, I'm using Struts Validator Framework

Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-21 Thread cacodemon79
Hi, I'm using Struts Validator Framework (Struts 1.3). Server-side validation works well. The problem is in client-side validation. The form name I have to validate is: RegistrazioneUtenteForm. In my jsp page I have 2 buttons: 1) html:link href=javascript:submitRegistrazioneUtenteForm

Struts validator framework

2008-05-15 Thread Zhang, Larry (L.)
Say if I have two text fields, one label is Please enter name:, and the other label is Please enter SSN:. In struts validator framework, if I need to validate these two fields using required validator, is there any way to relate the field label to the message? Or does struts validator support

RE: Struts validator framework

2008-05-15 Thread Givler, Eric
validator framework Say if I have two text fields, one label is Please enter name:, and the other label is Please enter SSN:. In struts validator framework, if I need to validate these two fields using required validator, is there any way

RE: Struts validator

2008-02-01 Thread Zhang, Larry (L.)
Can some Struts guru answer the following questions? -Original Message- From: Zhang, Larry (L.) Sent: Thursday, January 31, 2008 3:27 PM To: 'Struts Users Mailing List' Subject: Struts validator Hello coworkers, I have a questions regarding the struts validation..., say I have three

RE: Struts validator

2008-02-01 Thread David Harland
validator Can some Struts guru answer the following questions? -Original Message- From: Zhang, Larry (L.) Sent: Thursday, January 31, 2008 3:27 PM To: 'Struts Users Mailing List' Subject: Struts validator Hello coworkers, I have a questions regarding the struts validation..., say I have

RE: Struts validator

2008-02-01 Thread Zhang, Larry (L.)
We are not using Struts 2 tag and thus I can't use s:submit tag. -Original Message- From: David Harland [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 10:01 AM To: Struts Users Mailing List Subject: RE: Struts validator You can do it by having 3 different methods

RE: Struts validator

2008-02-01 Thread Dave Newton
--- Zhang, Larry (L.) [EMAIL PROTECTED] wrote: We are not using Struts 2 tag and thus I can't use s:submit tag. Are you using Struts 2 at all? You can still use the generated HTML as a template to create your own HTML, although... not sure why you wouldn't just use the tag in this case. Dave

RE: Struts validator

2008-02-01 Thread Zhang, Larry (L.)
Struts valdiator developers, Doesn't struts support this requirment? -Original Message- From: Zhang, Larry (L.) Sent: Friday, February 01, 2008 10:55 AM To: 'Struts Users Mailing List' Subject: RE: Struts validator No, I am using struts 1.1, I would like to implement the following case

RE: Struts validator

2008-02-01 Thread Zhang, Larry (L.)
fields at the same time when just one submit button is clicked. Your helps are appreciated! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 10:45 AM To: Struts Users Mailing List Subject: RE: Struts validator --- Zhang, Larry (L.) [EMAIL

Struts validator

2008-01-31 Thread Zhang, Larry (L.)
Hello coworkers, I have a questions regarding the struts validation..., say I have three text fields to be validated in struts validation, and three submit buttons as well. When I submit one buttion, I only need to validate one field, and when I click on the other submit button, I need to

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Dave Newton
--- Mike Duffy [EMAIL PROTECTED] wrote: Does anyone have a great solution for a validator that will prevent users from entering malicious SQL into form entry text fields? I'm not sure that belongs in a validator; unless you never need to allow the use of a single quote. It is, hoever unlikely,

Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Mike Duffy
Does anyone have a great solution for a validator that will prevent users from entering malicious SQL into form entry text fields? Thx. Mike Get easy, one-click access to your favorites. Make Yahoo!

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Martin Gainty
- From: Mike Duffy [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, November 15, 2007 12:42 PM Subject: Struts Validator to Prevent SQL Injection Attacks Does anyone have a great solution for a validator that will prevent users from entering malicious SQL into form entry text fields

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Mike Duffy
=0postorder=asc And page 16 of the following link: http://www.net-security.org/dl/articles/IntegrigyIntrotoSQLInjectionAttacks.pdf Thx. Mike --- On Thu, 11/15/07, Antonio Petrelli [EMAIL PROTECTED] wrote: From: Antonio Petrelli [EMAIL PROTECTED] Subject: Re: Struts Validator to Prevent SQL

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Gary Affonso
Dave Newton wrote: --- Mike Duffy [EMAIL PROTECTED] wrote: Does anyone have a great solution for a validator that will prevent users from entering malicious SQL into form entry text fields? I'm not sure that belongs in a validator; unless you never need to allow the use of a single quote. It

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Mike Duffy
.). Has anyone created an elegant solution for this problem within the Struts framework? Mike --- On Thu, 11/15/07, Dave Newton [EMAIL PROTECTED] wrote: From: Dave Newton [EMAIL PROTECTED] Subject: Re: Struts Validator to Prevent SQL Injection Attacks To: Struts Users Mailing List user

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Roberto Nunnari
that), then you're not covered. But if you use the placeholder and HQL or the Criteria APIs, then you're covered. Mike --- On Thu, 11/15/07, Gary Affonso [EMAIL PROTECTED] wrote: From: Gary Affonso [EMAIL PROTECTED] Subject: Re: Struts Validator to Prevent SQL Injection Attacks To: Struts Users

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Antonio Petrelli
2007/11/15, Mike Duffy [EMAIL PROTECTED]: No matter where this is done, the basic problem is we have single quotes, double quotes, ampersands, semicolons, and parenthesis in our data. This may be off topic, but does not is suffice to use prepared statement and parameters to avoid such attacks?

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Antonio Petrelli
2007/11/15, Mike Duffy [EMAIL PROTECTED]: Prepared statements if created correctly will work, but if your statements are created dynamically with text strings as the values instead of ? placeholders problems can occur. I wonder why do you create query strings this way: you can always create

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Mike Duffy
Thx Gary. That is good information. We are actually using JBoss with EJB 3.0, which uses Hibernate under the covers, so I am assuming we are covered. Mike --- On Thu, 11/15/07, Gary Affonso [EMAIL PROTECTED] wrote: From: Gary Affonso [EMAIL PROTECTED] Subject: Re: Struts Validator

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Antonio Petrelli
Thx. Mike --- On Thu, 11/15/07, Antonio Petrelli [EMAIL PROTECTED] wrote: From: Antonio Petrelli [EMAIL PROTECTED] Subject: Re: Struts Validator to Prevent SQL Injection Attacks To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED] Date: Thursday, November 15, 2007

Re: Struts validator maskif

2007-06-14 Thread ugachaka
say nothing, except what they should say. br of course i am wondering is my syntax is ok, i dont now can i write like this - br br varbr var-namecheck/var-namebr var-value(country=='US')/var-valuebr /varbr -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22

Re: Struts validator maskif

2007-06-14 Thread ugachaka
say nothing, except what they should say. of course i am wondering is my syntax is ok, i dont now can i write like this - check (country=='US') -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8597 Sent from the Struts - User

Re: Struts validator maskif

2007-06-14 Thread ugachaka
say nothing, except what they should say. of course i am wondering is my syntax is ok, i dont now can i write like this - check (country=='US') -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8600 Sent from the Struts - User mailing

Re: Struts validator maskif

2007-06-14 Thread ugachaka
sorry! -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8601 Sent from the Struts - User mailing list archive at Nabble.com.

Struts validator maskif

2007-06-13 Thread ugachaka
are not working any more! It doesn't validate not required not even other fields. I am already stuck in this for few days, so i smb could help! -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913143.html#a11094652 Sent from the Struts - User mailing list archive

Struts validator maskif

2007-06-13 Thread ugachaka
are not working any more! It doesn't validate not required not even other fields. I am already stuck in this for few days, so i smb could help! -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a11094653 Sent from the Struts - User mailing list archive

Re: Struts validator maskif

2007-06-13 Thread Laurie Harper
ugachaka wrote: Hi. I am wondering is there really a validation attribute maskif. I one forum, i read that i just need to add the following lines to my validation-rules and validation xml files and it will work- validator name=validif classname=validation.ValidIf method=validateValidIf

Using Struts Validator framework

2007-03-19 Thread Kaushal, Anubhav
I am using Struts Validator framework and DynaActionForm for performing form data validations. The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve

Re: Using Struts Validator framework

2007-03-19 Thread Dave Newton
--- Kaushal, Anubhav wrote: The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve this? It's not clear to me what this has to do with the Validator framework,

Using Struts Validator framework

2007-03-18 Thread Kaushal, Anubhav
Hi, I am using Struts Validator framework and DynaActionForm for performing form data validations. The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve

Re: Using Struts Validator framework

2007-03-18 Thread Dave Newton
--- Kaushal, Anubhav wrote: The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve this? It's not clear to me what this has to do with the Validator framework,

Struts validator

2007-03-04 Thread Suman Maity
I am using struts validator framework for both client and server side validations. The problem is validations of the same type occur together. But I want all validations for a particular field to be finished first and if that field passes all validations, then only validations for the next field

Re: problems using httpunit / rhino with struts validator

2006-11-22 Thread Nathan Coast
Thanks Niall, perfect, you were right, it was an issue with the jcv_retrieveFormName. I'll post again when I've figured out whether it's caused by rhino, validator, httpunit or a combination of all three :) As a workaround I can override the jcv_retrieveFormName(form) in each jsp to return

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
On 11/22/06, Nathan Coast [EMAIL PROTECTED] wrote: snip Unfortunately I can't find any rhino mailing lists or docs. Any validator or rhino experts who can point me in the right direction? /snip http://www.mozilla.org/rhino/doc.html cheers Nathan

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
On 11/22/06, Nathan Coast [EMAIL PROTECTED] wrote: Hi Niall, thanks for the response. Httpunit handles the http/html side of things and delegates to mozilla's rhino jar for a 'standards compliant' java implementation of js (not sure how compliant or what version). I'm thinking either there's

problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
Hi, First off, thanks for the validator - saved me countless hours of writing js. I've started trying to introduce httpunit integration tests to my applications and unfortunately with both js and validator enabled, it barfs in fine style. httpunit 1.6.2, validator 1.3.0, rhino

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
The tags generate functions based on the form's name - looks like it isn't finding the form's name resulting in your undefined_required. I've not used httpunit, but I guess you need to get http unit to generate the html as a jsp would do and have it parse the form and set up the dom as the

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
Hi Niall, thanks for the response. Httpunit handles the http/html side of things and delegates to mozilla's rhino jar for a 'standards compliant' java implementation of js (not sure how compliant or what version). I'm thinking either there's a bug in rhino, alternatively commons-validator

Re: Configuring Struts Validator with Multiple Modules

2006-09-15 Thread Niall Pemberton
On 9/14/06, Scott Smith [EMAIL PROTECTED] wrote: I have a struts 1.2.9 app that has several modules (assume they are named a and b). In my struts-config-a.xml file, I have a form defined as followed: form-bean name=formRegister type=a.modules.register.RegisterForm / My validation.xml file

Configuring Struts Validator with Multiple Modules

2006-09-14 Thread Scott Smith
I have a struts 1.2.9 app that has several modules (assume they are named a and b). In my struts-config-a.xml file, I have a form defined as followed: form-bean name=formRegister type=a.modules.register.RegisterForm / My validation.xml file looks like: form-validation

conditional required in struts validator

2006-09-07 Thread fea jabi
Have a Drop down and an input field. When user selects Type 1 from drop down only then the input field is required. otherwise it's not a required field. Looking at the validator guide in struts maybe I have to create a new validator rule which should check if drop down value Type 1. But not

Re: conditional required in struts validator

2006-09-07 Thread Laurie Harper
fea jabi wrote: Have a Drop down and an input field. When user selects Type 1 from drop down only then the input field is required. otherwise it's not a required field. Looking at the validator guide in struts maybe I have to create a new validator rule which should check if drop down value

Regarding Struts validator Framework

2006-08-29 Thread Lakshmi Saritha
Hello everybody, I'm new to Java. I'm working on Struts now. I got this application from one struts PDF. I've one jsp for customer details as follows: CustomerDetails.jsp: %@ page contentType=text/html;charset=UTF-8 language=java% %@ taglib uri=/WEB-INF/struts-html.tld

Re: Regarding Struts validator Framework

2006-08-29 Thread Wendy Smoak
On 8/29/06, Lakshmi Saritha [EMAIL PROTECTED] wrote: Please clear me why the message is not coming from properties file. Is the error in properties file or validator-rules.xml or some other. Try adding an html:errors / tag to your CustomerDetails JSP, I don't see it there. -- Wendy

Re: Regarding Struts validator Framework

2006-08-29 Thread Srinivas_Biragoni
10:05 cc AM Subject Regarding Struts validator Please respond

Problem with floatRange in Struts Validator

2006-07-15 Thread Marcelo V. F. Menezes
Hi people, I´m newbie in Struts World... I´m trying to configure the Struts validator.xml with floatRange argument but it don´t work correctly. The validator doesn´t check the decimal value of the 'min' and 'max' values: field property=bonus depends=required,float,floatRange

Re: Problem with floatRange in Struts Validator

2006-07-15 Thread Niall Pemberton
The struts-examples webapp has a floatRange example and I just tried it using Struts 1.2.9 and it worked fine (tests for the range -2.17 to 3.14) What version of Struts and Commons Valdiator are you using? Also try changing the minimum value to 0.01 - I think putting additional leading zeros

Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
Hi- Quick question: What is the version of the commons-validator that comes with Struts 1.2.8 and 1.2.9? Also, if, for Struts 1.2.9, the version of the validator is not 1.3.0, would there be any problems if I were to replace the commons-validator.jar file that comes with Struts 1.2.9 w/ the

RE: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
of throwing validator 1.3.0 into Struts 1.2.9) if anyone knows. Thanks, -Adam -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 June 2006 09:05 To: user@struts.apache.org Subject: Quick Struts/Validator version question Hi- Quick question: What

RE: Quick Struts/Validator version question

2006-06-29 Thread David Friedman
^^ There you go, the validator is version v1.1.4 in struts-1.2.9-bin.zip! Regards, David -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 11:36 AM To: Struts Users Mailing List Subject: RE: Quick Struts/Validator

Re: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
^^ There you go, the validator is version v1.1.4 in struts-1.2.9-bin.zip! Regards, David -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 11:36 AM To: Struts Users Mailing List Subject: RE: Quick Struts/Validator version

RE: Quick Struts/Validator version question

2006-06-29 Thread David Friedman
with a definitive answer. Regards, David -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 12:29 PM To: Struts Users Mailing List Subject: Re: Quick Struts/Validator version question You know, I saw that, but a co-worker told me that it was the version of Java

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
ramifications of throwing validator 1.3.0 into Struts 1.2.9) if anyone knows. Thanks, -Adam -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 June 2006 09:05 To: user@struts.apache.org Subject: Quick Struts/Validator version question Hi- Quick question

Re: Quick Struts/Validator version question

2006-06-29 Thread Scott Van Wart
David Friedman wrote: And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF file with this in it: I've found that this isn't always reliable -- commons-beanutils.jar in struts 1.2.9, for

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
On 6/29/06, Scott Van Wart [EMAIL PROTECTED] wrote: David Friedman wrote: And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF file with this in it: I've found that this isn't always reliable

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
On 6/29/06, Niall Pemberton [EMAIL PROTECTED] wrote: On 6/29/06, Scott Van Wart [EMAIL PROTECTED] wrote: David Friedman wrote: And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF file with

RE: Question about Struts validator

2006-06-28 Thread mosho
I really appreciate all your help. David, I want to use struts validator and just control validation manually. Why do I need saveErrors() method and what does it do? Isn't the validator does all that. I am little confused. I am pasting my execute method below, please let me know what should I

RE: Question about Struts validator

2006-06-28 Thread David Friedman
Rosh, I want to use struts validator and just control validation manually. Why do I need saveErrors() method and what does it do? Isn't the validator does all that. I am little confused. If you are going to call the validation manually, then you will have to perform the same steps

RE: Question about Struts validator

2006-06-28 Thread mosho
David, Thanks a lot! I understood the whole concept now. It's working perfectly!!! Thanks again! Rosh -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5089649 Sent from the Struts - User forum at Nabble.com

Struts Validator, multiple checks on single property

2006-06-28 Thread Mississippi John Hurt
Hi, How can I use the validator plugin to validate a property with a compound rule such as the property must be both 1) 9 digits long 2) contains an uppercase letter 3) contains a symbol I know how to do each individually, but how to make it validate where all 3 have to be true for success?

Re: Struts Validator, multiple checks on single property

2006-06-28 Thread paz . periasamy
:Struts Validator, multiple checks on single property Hi, How can I use the validator plugin to validate a property with a compound rule such as the property must be both 1) 9 digits long 2) contains an uppercase letter 3) contains a symbol I know how to do each individually, but how to make

RE: Question about Struts validator

2006-06-27 Thread mosho
validate method in Action class, execute method. Thanks Rosh -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5073203 Sent from the Struts - User forum at Nabble.com

Re: Question about Struts validator

2006-06-27 Thread Wendy Smoak
On 6/27/06, mosho [EMAIL PROTECTED] wrote: If I call validate method manually, can I still use validator framework and use the input attribute in the config file to display the errors? I need to validate only if form is submitted by clicking on a button. If, yes can you show me with an example

RE: Question about Struts validator

2006-06-27 Thread David Friedman
would emphasize the point for you. :) Regards, David -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 4:27 PM To: Struts Users Mailing List Subject: Re: Question about Struts validator On 6/27/06, mosho [EMAIL PROTECTED] wrote: If I call validate

RE: Question about Struts validator

2006-06-27 Thread mosho
=selState.do method=POST onsubmit=return validateSelStateForm(this); . . html:hidden property=isSubmitted value=yes / /table html:javascript formName=selStateForm / /html:form -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074217 Sent

RE: Question about Struts validator

2006-06-27 Thread mosho
method=POST onsubmit=return validateSelStateForm(this); . . html:hidden property=isSubmitted value=yes / /table html:javascript formName=selStateForm / /html:form -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074256 Sent from

Re: Question about Struts validator

2006-06-27 Thread Wendy Smoak
On 6/27/06, mosho [EMAIL PROTECTED] wrote: Thanks David and Wendy for your help but it doesn't seem to work. I added manually validate in my execute method. It still validates if I directly enter the url. ... --Struts config part-- action path=/selState

RE: Question about Struts validator

2006-06-27 Thread David Friedman
=return validateSelStateForm(this); . . html:hidden property=isSubmitted value=yes / /table html:javascript formName=selStateForm / /html:form -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a507421 7 Sent from the Struts - User forum

Re: Struts Validator: form value1 form value2

2006-06-22 Thread The Jasper
for existed validation rule should help. Regards. Tinh Jeremy Nix wrote: How can I use the Struts Validator to enforce the above rule? Neither of the fields are required, but if both are given, they must adhere to the given rule. Thanks for any help, _ Jeremy Nix

Re: Struts Validator: form value1 form value2

2006-06-22 Thread Jakub Milkiewicz
: Hi there, You can write a custom validator in Struts to do that, it's rather easy, both client-side and server-side. Open the jar of commons-validator to see some script for existed validation rule should help. Regards. Tinh Jeremy Nix wrote: How can I use the Struts Validator to enforce

RE: Struts Validator: form value1 form value2

2006-06-22 Thread Jeremy Nix
-Original Message- From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 4:01 AM To: Struts Users Mailing List Subject: Re: Struts Validator: form value1 form value2 Yeah validwhen can do it. anyway these antlr expressions are not very intuitive. If You have

Re: Struts Validator: form value1 form value2

2006-06-22 Thread The Jasper
The struts validator guide says you can only join 2 values with and or or. I'm guessing that means you either have to put in a lot more parentheses or that you can't use and or or more than once. I would first try parenthesizing everything. mvg, Jasper On 6/22/06, Jeremy Nix [EMAIL PROTECTED

Re: Struts Validator: form value1 form value2

2006-06-22 Thread Niall Pemberton
On 6/22/06, The Jasper [EMAIL PROTECTED] wrote: The struts validator guide says you can only join 2 values with and or or. I'm guessing that means you either have to put in a lot more parentheses or that you can't use and or or more than once. I would first try parenthesizing everything. Yes

RE: Struts Validator: form value1 form value2

2006-06-22 Thread Jeremy Nix
, June 22, 2006 10:50 AM To: Struts Users Mailing List Subject: Re: Struts Validator: form value1 form value2 The struts validator guide says you can only join 2 values with and or or. I'm guessing that means you either have to put in a lot more parentheses or that you can't use and or or more than

Struts Validator: form value1 form value2

2006-06-21 Thread Jeremy Nix
How can I use the Struts Validator to enforce the above rule? Neither of the fields are required, but if both are given, they must adhere to the given rule. Thanks for any help, _ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513

Re: Struts Validator: form value1 form value2

2006-06-21 Thread Truong Xuan Tinh
Hi there, You can write a custom validator in Struts to do that, it's rather easy, both client-side and server-side. Open the jar of commons-validator to see some script for existed validation rule should help. Regards. Tinh Jeremy Nix wrote: How can I use the Struts Validator to enforce

Re: reset button deos not work with struts validator

2006-06-04 Thread Laurie Harper
Victor.T. Ying wrote: Hi, I meet a problem using structs validator and reset button The problem occurs when the validator find a validation error, then reset button can not clear the input field but retain the error values. BTW the respective form is in the session and I am using html:reset

reset button deos not work with struts validator

2006-05-30 Thread Victor.T. Ying
Hi, I meet a problem using structs validator and reset button The problem occurs when the validator find a validation error, then reset button can not clear the input field but retain the error values. BTW the respective form is in the session and I am using html:reset tag.

any help ?? Fwd: html:multibox validation using Struts Validator framework

2006-04-24 Thread HSS STANLEY
any help on this??? Date: Fri, 21 Apr 2006 11:00:34 -0700 (PDT) From: [EMAIL PROTECTED] Subject: html:multibox validation using Struts Validator framework To: user@struts.apache.org Hi I am trying to do a client side validation for html: multibox tag. I need to do client side

html:multibox validation using Struts Validator framework

2006-04-21 Thread HSS STANLEY
Hi I am trying to do a client side validation for html: multibox tag. I need to do client side validation if all the boxes are checked, before submitting the request. I tried using the depends=required rules in the validator-rules.xml. I see the JavaScript code in my jsp when I try

html:multibox validation using Struts Validator framework

2006-04-21 Thread HSS STANLEY
Hi I am trying to do a client side validation for html: multibox tag. I need to do client side validation if all the boxes are checked, before submitting the request. I tried using the depends=required rules in the validator-rules.xml. I see the JavaScript code in my jsp when I

html:multibox validation using Struts Validator framework

2006-04-20 Thread Stanley, Hazel
Hi I am trying to do a client side validation for html: multibox tag. I need to check if all the boxes are checked, before submitting the request. I tried using the required rules in the validator-rules.xml. I see the JavaScript code in my jsp when I try to view source but I'm not

  1   2   3   >