Issue with Validator DTD location

2006-09-28 Thread Asish_Thomas
-INF\validator_1_1_3.dtd (The system cannot find the path specified) As you can see, the app always seem to lookup the files in my WSAD installation folders. I've tried the following combinations of DTD references in my validator-rule.xml and validation.xml file. 1.validator_1_1.dtd 2

exists any way to know when validator framework turn on?

2006-09-28 Thread yamilka vallejo ramos
Hi Do exists any way to know when validator framework turn on? I think i could ask by a var in the session or something like that. Thanks for any help you could give me

Validate a multiple html:select with validator framework

2006-09-28 Thread Heidy Gutiérrez Guzmán
I have a multiple html:select and i need to validate it with validator framework. The attribute in the ActionForm is an array of strings. private String[] subtemas= new String[]{} The validation that i'm using is required.This validation works with others form fields This is the code

Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I need to validate an html:select with validator framework This is the code that i have html:select property=categoria styleClass=editGrande html:option value=null---/html:option html:options collection=categoriasDescarte property=id labelProperty= nombre/html:options /html:select I

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Chris Pratt
According to your code, the default value is the String null, not ---. You might want to try setting that to an empty value, e.g. html:option value=---/html:option (*Chris*) On 9/25/06, Heidy Gutiérrez Guzmán [EMAIL PROTECTED] wrote: Hi I need to validate an html:select with validator

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
, e.g. html:option value=---/html:option (*Chris*) On 9/25/06, Heidy Gutiérrez Guzmán [EMAIL PROTECTED] wrote: Hi I need to validate an html:select with validator framework This is the code that i have html:select property=categoria styleClass=editGrande html:option value=null

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Laurie Harper
You said your form property was of type 'Long'. By default, a null input value will be turned into 0, so the required validator rule will think the property has a value. You should generally use String-typed form bean properties, but if you need to keep it as Long, you'll want to configure

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Wendy Smoak
On 9/25/06, Laurie Harper [EMAIL PROTECTED] wrote: You said your form property was of type 'Long'. By default, a null input value will be turned into 0, so the required validator rule will think the property has a value. Good catch, Laurie! I completely missed the type... probably didn't

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
=categoriasDescarte property=id labelProperty= nombre/html:options /html:select The field in the ValidatorForm is: private String categoria With this type of html:select i can validate with validator framework. The second type is an htm:select wich input is a list of Enumerations html:select property

Re: Validator and At Least 1 Checkbox Checked

2006-09-20 Thread Laurie Harper
struts validator validate that at least one checkbox in a set is checked? I guess somehow it has to validate that a String[] array property of the form has size of 1 or more, but I dont know how. - To unsubscribe, e-mail

Re: Validator and At Least 1 Checkbox Checked

2006-09-20 Thread Paul Benedict
community. So you'll have to add this validation yourself by override the validate() method of your form, checking the property's length; if it is not null then add your message to the existing error messages. Paul Mississippi John Hurt wrote: Can struts validator validate that at least one

Validator and At Least 1 Checkbox Checked

2006-09-19 Thread Mississippi John Hurt
Can struts validator validate that at least one checkbox in a set is checked? I guess somehow it has to validate that a String[] array property of the form has size of 1 or more, but I dont know how.

Re: Validator and At Least 1 Checkbox Checked

2006-09-19 Thread Paul Benedict
then add your message to the existing error messages. Paul Mississippi John Hurt wrote: Can struts validator validate that at least one checkbox in a set is checked? I guess somehow it has to validate that a String[] array property of the form has size of 1 or more, but I dont know how

Re: Configuring Struts Validator with Multiple Modules

2006-09-15 Thread Niall Pemberton
think this is telling me it can't find any validation information for my form (formRegister)-which I assume means that the name specified in my form tag is not what validator expects to see for form within a module. I've tried a.formRegister in my form tag and that doesn't seem to work either. I

Configuring Struts Validator with Multiple Modules

2006-09-14 Thread Scott Smith
it can't find any validation information for my form (formRegister)-which I assume means that the name specified in my form tag is not what validator expects to see for form within a module. I've tried a.formRegister in my form tag and that doesn't seem to work either. I currently have a single

Problems with validator framework

2006-09-13 Thread Heidy Gutiérrez Guzmán
Hi I need to validate a form with fields wich data type is int and float The validation that i use is required, but that doesn't work. The fields are initilialized with default values (o for int types) and (0.0for float types). Whit string data types, validator works fine. If somebody would

RE: Problems with validator framework

2006-09-13 Thread Strachan, Paul
Gutiérrez Guzmán [mailto:[EMAIL PROTECTED] Sent: Wed 13/09/2006 11:13 PM To: user@struts.apache.org Subject: Problems with validator framework Hi I need to validate a form with fields wich data type is int and float The validation that i use is required, but that doesn't work. The fields

validator framework

2006-09-07 Thread Gomathi
Hai, Is the validator framework is only for dynavalidatorform? I am using actionform using validator framework.Its not working fine how? Kindly regards Gomes

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

Re: validator framework

2006-09-07 Thread Laurie Harper
Gomathi wrote: Hai, Is the validator framework is only for dynavalidatorform? I am using actionform using validator framework.Its not working fine how? You need to derive your form beans from ValidatorActionForm, not just ActionForm. DynaValidatorForm extends ValidatorForm, so that should

Re: Validator FRamework

2006-09-07 Thread Laurie Harper
sheetal wrote: Thanks for the help.. Yesterday I tried and it worked... But the problem now is that its message string is not coming... I had made an entry for it in applicationresoUrces.properties... BUT STILL IT'S UNABLE TO PICK IT FROM THERE.. What message string? How are you specifying

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

Validator FRamework

2006-09-05 Thread sheetal
Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml formset form name=runCommandForm field property=commandId

Re: Validator FRamework

2006-09-05 Thread Jorge Martín Cuervo
escribió: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml formset form name=runCommandForm

Re: Validator FRamework

2006-09-05 Thread Laurie Harper
sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml formset form name=runCommandForm field

Re: Validator FRamework

2006-09-05 Thread sheetal
Laurie Harper wrote: sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml formset form name

validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! I have the following form bean defined in struts-config.xml: form-bean name=changePersonalDataForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name

Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. I have the following form bean defined in struts-config.xml: form

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. David, This is EXACTLY what I like to AVOID

RE: validator and DynaValidatorActionForm

2006-08-30 Thread David Friedman
with a request that has its own values. Regards, David -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 12:34 PM To: Struts Users Mailing List Subject: validator and DynaValidatorActionForm I think the validator fires too early, but probably I am

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz [EMAIL PROTECTED] wrote: The idea is, that I show a form that contains already data and the user can edit it. When the form is submitted, the validator should check the user input. Here is my validator configuration: ... Now it seems, that the validator gets fired

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Laurie Harper
Tom Bednarz wrote: David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. Or at least two action mappings

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all your input and help. It looks like I need some basic concepts clarified. Here a very short background of the application and what my intension is: The object 'subscriber' is a special business object: it represents the logged in user and contains a lot of information

Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: So I used html:text value=${sessionScope.subscriber.firstname} property=firstname name=firstname maxlength=64 size=32/ Don't specify value. Simply copy the properties from a subscriber object (session scoped or otherwise) to a formbean (the one being used to

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz [EMAIL PROTECTED] wrote: What is the correct or preferred way to link business-objects with form beans. Is this only possible by copying data from a business object to a form bean or is there any 'smarter' way? You might want to take a look at FormDef:

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all that feedback. I think it gets me a step further. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Regarding Struts validator Framework

2006-08-29 Thread Lakshmi Saritha
path=/Success.jsp/ forward name=failure path=/Failure.jsp/ /action /action-mappings controller processorClass=org.apache.struts.action.RequestProcessor/ message-resources parameter=App1Messages/ !-- Validator Configuration -- plug-in className

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
In the jsp code u givenonsubmit=return validateCustomerForm(this); but in validator-user.xml the form name is custForm, so replace that with onsubmit=return validateCustForm(this); Thanks, Srinivas

validator needed jar files.

2006-08-28 Thread jeb001
Hi, I'm deploying a struts application with a weblogic server.. It seems to work fine, but I've got problems with validator and html:javascript tag. That tag does not work, maybe because a jar file is missing.. but I don't know which one. I've developped my app with Tomcat, and it works well

Struts 1.2 and the Validator Framework, how does this work ? continue

2006-08-26 Thread Ingimar Erlingsson
thanks for the reply. I am not yet used to this mailing list, sorry for that, I probably could have continued this question in the same thread - but not knowing how to do that. Niall you are probably right, that I should upgrade. Using Exadel and it's support for Struts, it only says struts 1.2

Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Ingimar Erlingsson
Hello! trying to get the validator framework in struts to work from within eclipse/exadel, using struts 1.2. following an example in the book 'professional jakarta struts' from WROX , that is chapter 12, but always getting errors like the following. The example is a simple form, submitting

Re: Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Li
did you configure your app and validation framework properly? can you paste full stack of error? On 8/25/06, Ingimar Erlingsson [EMAIL PROTECTED] wrote: Hello! trying to get the validator framework in struts to work from within eclipse/exadel, using struts 1.2. following an example

Re: Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Niall Pemberton
Usually this error occurs when people upgrade to a later version of Struts, but forget to upgrade the validator-rules.xml to the one shipped with the new Struts version. http://wiki.apache.org/struts/StrutsUpgrade Niall On 8/25/06, Ingimar Erlingsson [EMAIL PROTECTED] wrote: Hello! trying

RE: Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Raghuveer
I think your Configuration Struts+Validator may be giving problem. -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 1:02 PM To: Struts Users Mailing List Subject: Re: Struts 1.2 and the Validator Framework, how does this work ? did you configure your

Validator html args

2006-08-22 Thread Jean-Marie Pitre
Hi, I am using Validator 1.3, I would like to know if I can pass argument value issued from html element? I explain me: I have an html form : ... font id=labeluser class=testUser/font html:text property=userid/ ... My validation looks like this: form name=Identification field property

Re: Validator html args

2006-08-22 Thread Niall Pemberton
resource=false/ ... or even the whole error message. Niall On 8/22/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote: Hi, I am using Validator 1.3, I would like to know if I can pass argument value issued from html element? I explain me: I have an html form : ... font id=labeluser class=testUser/font

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts 1.2.8) don't actually make use of the bundle attribute in your validator xml files. So, what version

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts 1.2.8) don't actually make use of the bundle attribute in your validator xml

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts 1.2.8) don't actually make use of the bundle attribute in your validator xml

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from the 1.2.X branch

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from

Re: Validator Client-Side and Custom Classes

2006-08-16 Thread Scott Van Wart
using a custom java class I wrote that exists only on the server? Not possible right? So if that's the case, if you do leave some custom classname validator class in your validation.xml, then will that validation simply be ignored? Thanks for help with these 2 questions. If you look

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Niall Pemberton
On 8/16/06, Scott Van Wart [EMAIL PROTECTED] wrote: I tried the following: field property=name depends=maxlength msg name=maxlength key=error.name.overflow / arg name=maxlength bundle=constraints key=name.length / /field Now I figured that this would cause the maxlength validator

Validator Client-Side and Custom Classes

2006-08-15 Thread Mississippi John Hurt
wrote that exists only on the server? Not possible right? So if that's the case, if you do leave some custom classname validator class in your validation.xml, then will that validation simply be ignored? Thanks for help with these 2 questions.

Re: Validator

2006-08-12 Thread Dakota Jack
Don't think you really understand the issue, Simian. On 8/11/06, Monkeyden [EMAIL PROTECTED] wrote: Who cares where they're called or what their values are? Just add them to the application resources file. On 8/11/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote: Hi, I would like to change

Re: Validator

2006-08-12 Thread Ted Husted
On 8/11/06, Kalra, Ashwani [EMAIL PROTECTED] wrote: They are hard coded in html:errors tag... , you cannot change them. It's not a configurable property, but, if it's an issue for someone, just plug in your own version of the errors tag. -Ted.

Re: Validator

2006-08-12 Thread Niall Pemberton
change them. If these keys are not present in resource bundle, it will be simply ignored. /Ashwani -Original Message- From: Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 2:58 PM To: Struts Users Mailing List Subject: Validator Hi, I would like to change the key

Validator

2006-08-11 Thread Jean-Marie Pitre
Hi, I would like to change the key name of errors.header, errors.footer, errors.suffix ... but I don't see where they are called. Have you got any idea ? Thanks, Jean-Marie. --- Email Disclaimer http://www.cofidis.be/emaildisclaimer.php

RE: Validator

2006-08-11 Thread Kalra, Ashwani
List Subject: Validator Hi, I would like to change the key name of errors.header, errors.footer, errors.suffix ... but I don't see where they are called. Have you got any idea ? Thanks, Jean-Marie. --- Email Disclaimer http://www.cofidis.be/emaildisclaimer.php

Re: Validator

2006-08-11 Thread Monkeyden
Who cares where they're called or what their values are? Just add them to the application resources file. On 8/11/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote: Hi, I would like to change the key name of errors.header, errors.footer, errors.suffix ... but I don't see where they are called.

Validator dynamic var

2006-08-07 Thread Jean-Marie Pitre
Hi, Is it possible to set dynamic variable value in validation.xml file ? My application is in several language and I would like avoid to define several formset definition according to each language to just change datepatternstrict value. Any idea ? Thanks, Regards Jean-Marie.

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Romu
U mean a javascript error ? u need to define a message.properties file too which will define the error messa 2006/8/6, Bart Busschots [EMAIL PROTECTED]: OK, I got all this figured out in the end. The validator was being called but because of problems with the page attribute in the form

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Romu
all this figured out in the end. The validator was being called but because of problems with the page attribute in the form the validator appears to have been receiving a page value of zero and hence not validating the items on pages 1 or two because neither 1 nor 2 are less that or equal to zero

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Bart Busschots
point, post edited. Bart. 2006/8/6, Bart Busschots [EMAIL PROTECTED]: OK, I got all this figured out in the end. The validator was being called but because of problems with the page attribute in the form the validator appears to have been receiving a page value of zero and hence not validating

Re: Validator dynamic var

2006-08-07 Thread Niall Pemberton
You can do this in Struts 1.3.x and Commons Validator 1.3.0 where the var element can come from a resource bundle. See the 1.2 Variables in Resource Bundles section here: http://wiki.apache.org/jakarta-commons/ValidatorVersion120 Niall On 8/7/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote

RE: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Givler, Eric
I had a similar problem here. I used formdef to define the page attribute and didn't specify the type. When the cast was made inside of validator, it was unable to cast the value to an Integer. The field was a string containing the page number. Couldn't it use Integer.valueOf

RE : Validator dynamic var

2006-08-07 Thread Jean-Marie Pitre
Thank you Niall, Do you know if I can call a java class instead of a properties file ? Jean-Marie. -Message d'origine- De : Niall Pemberton [mailto:[EMAIL PROTECTED] Envoyé : lundi 7 août 2006 15:37 À : Struts Users Mailing List Objet : Re: Validator dynamic var You can do

Re: RE : Validator dynamic var

2006-08-07 Thread Niall Pemberton
: Thank you Niall, Do you know if I can call a java class instead of a properties file ? Jean-Marie. -Message d'origine- De: Niall Pemberton [mailto:[EMAIL PROTECTED] Envoyé: lundi 7 août 2006 15:37 À: Struts Users Mailing List Objet: Re: Validator dynamic var You can do this in Struts 1.3

Re: Validator not getting called and I can't see why [resolved]

2006-08-06 Thread Bart Busschots
OK, I got all this figured out in the end. The validator was being called but because of problems with the page attribute in the form the validator appears to have been receiving a page value of zero and hence not validating the items on pages 1 or two because neither 1 nor 2 are less

RE: Validator not getting called and I can't see why

2006-08-04 Thread Givler, Eric
: Bart Busschots [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 6:10 PM To: Struts Users Mailing List Subject: Validator not getting called and I can't see why I'm either missing something stupid (which is always possible) or I've managed to break the validator. I have an app that uses

RE: validate integer with a comma thousands seperator using Validator

2006-08-04 Thread fea jabi
Thanks, Eric. From: Givler, Eric [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: RE: validate integer with a comma thousands seperator using Validator Date: Thu, 3 Aug 2006 11:45:28 -0400 You could

RE : Re: Messages and Validator

2006-08-04 Thread Jean-Marie Pitre
: Messages and Validator There's no reason a database-backed message bundle can't load all its messages in one go and cache them. That's all the standard property file-backed implementation does. To provide an alternate message bundle implementation, you just need to configure a custom factory

RE: Validator lost data when go back to form

2006-08-04 Thread Martin Gainty
recipient. Sender does not necessarily endorse content contained within this transmission. Hi, I'am using validator to validate data on client side and server side. It works fine, but when I validate on server side when there are errors detected I go back to the html but without user data

RE: Validator not getting called and I can't see why

2006-08-04 Thread Samere, Adam J
: Friday, August 04, 2006 10:41 AM To: Struts Users Mailing List Subject: Re: Validator not getting called and I can't see why Hi Eric, Thanks for the reply but I'm using a DynaValidatorForm so I don't have a class to override things in. I would assume that DynaValidatorForm validates correctly

Re: Validator not getting called and I can't see why

2006-08-04 Thread Niall Pemberton
Try turning on logging in debug mode, should give you more info about what its doing. Niall On 8/3/06, Bart Busschots [EMAIL PROTECTED] wrote: I'm either missing something stupid (which is always possible) or I've managed to break the validator. I have an app that uses validator all over

Re: Validator not getting called and I can't see why

2006-08-04 Thread Bart Busschots
Hi Niall, I don't seem to be able to get log output form the validator. Maybe I'm doing something wrong? This is my commons-logging.properties file: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog org.apache.commons.logging.simplelog.defaultlog=debug

Re: Validator not getting called and I can't see why

2006-08-04 Thread Niall Pemberton
On 8/5/06, Bart Busschots [EMAIL PROTECTED] wrote: Hi Niall, I don't seem to be able to get log output form the validator. Maybe I'm doing something wrong? This is my commons-logging.properties file: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog

Re: Re: Validator not getting called and I can't see why

2006-08-04 Thread Matt Kurjanowicz
().getName()) to see what the actual class is - it could be that struts thinks you only have a DynaActionForm instead of a DynaValidatorForm. Cheers, Matt On 8/4/06, Bart Busschots [EMAIL PROTECTED] wrote: Hi Niall, I don't seem to be able to get log output form the validator. Maybe I'm doing something

Re: RE : Re: Messages and Validator

2006-08-04 Thread Niall Pemberton
a custom database-backed ressource bundle with cache and it works well. Regards -Message d'origine- De: news [mailto:[EMAIL PROTECTED] De la part de Laurie Harper Envoyé: mercredi 2 août 2006 23:59 À: user@struts.apache.org Objet: Re: Messages and Validator There's no reason a database

RE: validate integer with a comma thousands seperator using Validator

2006-08-03 Thread fea jabi
can someone help me with this please? From: fea jabi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: validate integer with a comma thousands seperator using Validator Date: Wed, 02 Aug 2006 10:09:19 -0400 Using struts validator

RE: Accepting multiple date masks with the date validator

2006-08-03 Thread Adam Gordon
IIOC, the only way you can do this with the stock validator is to use mask rather than date as the validator. Then, you can use a regex to dictate your mask. I'll warn you though, if you use a regular expression it's going to be VERY long because it will also need to validate that the date

RE: validate integer with a comma thousands seperator using Validator

2006-08-03 Thread Givler, Eric
You could create another validator, and inside that perform a stripping of non-numeric characters (stripCommas), then execute code similar to the existing long range validator like this: /** * Determines if a formatted numeric value is between a range as defined by * the user

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Scott Van Wart
Adam Gordon wrote: IIOC, the only way you can do this with the stock validator is to use mask rather than date as the validator. Then, you can use a regex to dictate your mask. I'll warn you though, if you use a regular expression it's going to be VERY long because it will also need

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Monkeyden
validator is to use mask rather than date as the validator. Then, you can use a regex to dictate your mask. I'll warn you though, if you use a regular expression it's going to be VERY long because it will also need to validate that the date entered is valid. Additionally, the stock date validator

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Adam Gordon
almost a week to track down what was going on between the validator and his code. -adam Scott Van Wart wrote: Adam Gordon wrote: IIOC, the only way you can do this with the stock validator is to use mask rather than date as the validator. Then, you can use a regex to dictate your mask. I'll

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Scott Van Wart
and it took me almost a week to track down what was going on between the validator and his code. Yeah, essentially I'm covering all the bases (null pointers, index out of bounds, etc.) so no RuntimeExceptions can be thrown either. If anything doesn't look right to the translation method

Validator not getting called and I can't see why

2006-08-03 Thread Bart Busschots
I'm either missing something stupid (which is always possible) or I've managed to break the validator. I have an app that uses validator all over the place and it's working fine in all my other actions but for this one action it is simply not getting called. I can't see any difference between

Re: Validator not getting called and I can't see why

2006-08-03 Thread Matt Kurjanowicz
either missing something stupid (which is always possible) or I've managed to break the validator. I have an app that uses validator all over the place and it's working fine in all my other actions but for this one action it is simply not getting called. I can't see any difference between this action

Messages and Validator

2006-08-02 Thread Jean-Marie Pitre
Hello, I am using Validator framework with a Struts application. I would like to know if it is possible to use message provided by a database (or java class) rather than a propertie file ? Thank you, Jean-Marie. --- Email Disclaimer http://www.cofidis.be/emaildisclaimer.php

validate integer with a comma thousands seperator using Validator

2006-08-02 Thread fea jabi
Using struts validator. have to validate the user entered value. The value entered should be a positive integer with a comma thousands seperator. the number need not be in thousands. I have as below to check for positive integer without comma seperator. but not sure how to validate

Re: Messages and Validator

2006-08-02 Thread Romu
interesting question , but u will suffer low performance i think ( one database access for each message ? ) . i think if it's in a property file it's for simulate a static class . 2006/8/2, Jean-Marie Pitre [EMAIL PROTECTED]: Hello, I am using Validator framework with a Struts application

Accepting multiple date masks with the date validator

2006-08-02 Thread Scott Van Wart
I have a requirement in my project that I be able to accept two different date masks. One with slashes (thus, 10 characters) and one without (8 digits). Is there any way to do this with the stock date validator, or do I need to roll my own wrapper? Thanks, Scott

Re: Messages and Validator

2006-08-02 Thread Laurie Harper
, I am using Validator framework with a Struts application. I would like to know if it is possible to use message provided by a database (or java class) rather than a propertie file ? Thank you, Jean-Marie. --- Email Disclaimer http://www.cofidis.be/emaildisclaimer.php

Validating through validator framework

2006-08-01 Thread Rauf Khan
Hi, Iam trying to validate a simple form which has a name, password email field. I have validated that name field(html:text) should contain only characters, password field(html:text) contains only numbers email field(html:text) should contain proper email id. When i enter only numbers

Re: pb using validator with struts1.2.9

2006-07-27 Thread Jeremy Jardin
on the ValidatorForm. Since server-side validation has to be done anyway, it's not like this detracts from the functionality. -Adam Jeremy Jardin wrote: -Adam, first, thanks for all those explications. but I've still a problem with my validator using 'validwhen'. I've seen first, that I don't

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
-Adam, first, thanks for all those explications. but I've still a problem with my validator using 'validwhen'. I've seen first, that I don't have any errors.validwhen = mymessage line in my messageResource file ? I guess I need to add it and I did it. Otherwise, I've now clearly understood (I

Re: pb using validator with struts1.2.9

2006-07-26 Thread Irwan Nurwandi
rather than not display fields.. ?? thx On 7/25/06, Adam Gordon [EMAIL PROTECTED] wrote: Jeremy- Ok, sanity-check time. Make sure your field names are all spelled correctly. Also, are any errors being output to the form? I had errors displaying and it turned out that the validator

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
names are all spelled correctly. Also, are any errors being output to the form? I had errors displaying and it turned out that the validator was doing exactly what I was asking it to do and the problem was that I just didn't understand the validwhen validation rule. I've found

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