Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Brian Thompson
I'm not familiar with the tag; does that auto-include the script defining the validateForm() function? If not, I'd suggest a missing

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Dave Newton
quot; uri="/WEB-INF/struts-bean.tld" %> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN"> > > > > LoginPage > > > > > > > > > > > > > > > > > > > > Click here to   href=

Struts Validator Framework: client-side validation problem

2011-09-02 Thread RajasekharReddy
/DTD HTML 4.01 Transitional//EN"> LoginPage > Click here to   SignUp > -- View this message in context: http://struts.1045723.n5

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. property="strDelvDate" depends="beforeSysDate&q

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.getValueAsS

Re: Struts Validator Framework: problem with Custom Validator

2008-06-26 Thread cacodemon79
core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) >

Re: Struts Validator Framework: problem with Custom Validator

2008-06-25 Thread cacodemon79
na.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > at > org.apache.coyote.http11.Http

Struts Validator Framework: problem with Custom Validator

2008-06-24 Thread cacodemon79
ariables had the correct value submitted through the form. Moreover, I'm not sure that Resources.getActionMessage(request, va, field) method in my custom validator class is correct. This method is deprecated and I don't know how to replace it. I can't understand where is the pro

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

2008-06-24 Thread cacodemon79
t; cacodemon79 wrote: >>>> No suggestions? :( >>>> >>>> I also tried to use >>>> document.registrazioneUtenteForm.submit()") >>>> instead of >>>> eval("document."+nomeForm+".submit()") >>>> but the r

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

2008-06-23 Thread Laurie Harper
ied to use 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. cacod

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 cacodemon79
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 Str

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

2008-06-23 Thread Laurie Harper
m 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 1.3). Server-side validation works well. The problem is in client-side val

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 PROTEC

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 unsubscr

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 Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
m. 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 is: RegistrazioneUt

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) 2) and the following form declaration: Moreover I have en

RE: Struts validator framework

2008-05-15 Thread Givler, Eric
--Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Sent: Thu 5/15/2008 6:14 PM To: Struts Users Mailing List Cc: Subject: Struts validator framework Say if I have two text fields, one label is Please

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

2008-02-04 Thread Alexandru BARBAT
om: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:29 PM To: Struts Users Mailing List Subject: RE: Struts validator --- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote: > No, I am using struts 1.1, Oh, wow. Does validwhen[1] not exist in S1.1? You can alway

RE: Struts validator

2008-02-01 Thread Dave Newton
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote: > No, I am using struts 1.1, Oh, wow. Does validwhen[1] not exist in S1.1? You can always create a custom validator as well if you find your validation stretches what's easy to do with the existing validation configuration possibilities. You may

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

RE: Struts validator

2008-02-01 Thread Zhang, Larry (L.)
No, I am using struts 1.1, I would like to implement the following case: In valiation.xml:

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. D

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 su

RE: Struts validator

2008-02-01 Thread David Harland
/validation.html -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Sent: 01 February 2008 14:45 To: Struts Users Mailing List Subject: RE: Struts validator Can some Struts guru answer the following questions? -Original Message- From: Zhang, Larry (L.) Sent

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

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 validate

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Antonio Petrelli
f 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 Val

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Roberto Nunnari
), 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 Att

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 attac

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 c

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

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Mike Duffy
mp;start=0&postdays=0&postorder=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]>

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: "

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 Martin Gainty
- From: "Mike Duffy" <[EMAIL PROTECTED]> To: 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

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! yo

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 unlik

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.

Re: Struts validator "maskif"

2007-06-14 Thread ugachaka
kif"! Log files 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

Re: Struts validator "maskif"

2007-06-14 Thread ugachaka
;maskif"! Log files 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#a85

Re: Struts validator "maskif"

2007-06-14 Thread ugachaka
if"! Log files 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#a85

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- mask ^\d{5}$ check (country=='US') but i DOESN'T!! :( even more - w

Struts validator "maskif"

2007-06-13 Thread ugachaka
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 at Nabble.com. - To unsubscribe, e-mail: [E

Struts validator "maskif"

2007-06-13 Thread ugachaka
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 at Nabble.com. - To unsubscribe, e-mail: [E

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 framewor

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 this? It will be

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 framewor

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 this ? It

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

using struts validator for a form-property of type="org.apache.struts.upload.FormFile"

2007-01-24 Thread Fleetwood, Brett \(DCS\)
G'day All, I'm trying to validate a form that contains a org.apache.struts.upload.FormFile as a form property on a JSP. From the struts HTML tag-lib I'm using in my JSP like this; and I've set up the form bean like this; whe

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 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 i

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 brow

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 js-1.6R3.jar

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

Re: problems using httpunit / rhino with struts validator

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

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: My validation.xml file looks like:

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: My validation.xml file looks like:

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 valu

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 n

Re: Regarding Struts validator Framework

2006-08-29 Thread Srinivas_Biragoni
08/30/2006 10:05 cc AM Subject Regarding Struts validator

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 tag to your CustomerDetails JSP, I don't see it there. -- Wendy ---

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.tl

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 m

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:

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 > >

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 relia

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 example,

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
r to the second half of my question (about any 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/V

RE: Quick Struts/Validator version question

2006-06-29 Thread David Friedman
some other committer will post soon 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

Re: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
ion: 1.1.4 ^^ 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/Validat

RE: Quick Struts/Validator version question

2006-06-29 Thread David Friedman
1.1.4 ^^ 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/Vali

RE: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
ut any 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 qu

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: Struts Validator, multiple checks on single property

2006-06-28 Thread paz . periasamy
AIL PROTECTED]> 29/06/2006 08:24 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" cc: Subject:Struts Validator, multiple checks on single property Hi, How can I use the validator plugin to validate a prope

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? Thanks

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 Nabbl

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 t

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 sho

RE: Question about Struts validator

2006-06-27 Thread David Friedman
ActionErrors errors = sform.validate( mapping, request ); } return mapping.findForward("success"); ---JSP file--- . . -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-t

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-- You need to set validate="false" in the actio

RE: Question about Struts validator

2006-06-27 Thread mosho
alidate( mapping, request ); } return mapping.findForward("success"); ---JSP file--- . . -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074256 Sent from th

RE: Question about Struts validator

2006-06-27 Thread mosho
alidate( mapping, request ); } return mapping.findForward("success"); ---JSP file--- . . -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074217 Sent from th

RE: Question about Struts validator

2006-06-27 Thread David Friedman
in the past, I thought I 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 PRO

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 exampl

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. - To

RE: Question about Struts validator

2006-06-26 Thread David Friedman
onday, June 26, 2006 4:20 PM To: user@struts.apache.org Subject: Question about Struts validator Hi All, I want to validate a form by using struts validator, it is working fine. It validates the form if I click submit button, and it also validates the form if I pass it as a url for example: http:

Question about Struts validator

2006-06-26 Thread mosho
Hi All, I want to validate a form by using struts validator, it is working fine. It validates the form if I click submit button, and it also validates the form if I pass it as a url for example: http://111.22.80.244:8989/eNOI/test.do I want to validate the form only if I hit submit button not by

RE: Struts Validator: form value1 < form value2

2006-06-22 Thread Jeremy Nix
day, 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

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 e

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 <[EM

RE: Struts Validator: form value1 < form value2

2006-06-22 Thread Jeremy Nix
thwest Financial Services, Ltd. (513) 621-6699 x1158 -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 an

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread Jakub Milkiewicz
D]> wrote: > 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: >

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread The Jasper
script 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. > &g

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 enf

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: 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 tag

  1   2   3   >