Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can help. I have a MessageResources.properties under WEB-INF/classes which contains all the messages. In my struts-config I have the following line message-resources key=messages

Re: Validator question Struts 1.2.9

2007-03-21 Thread Nuwan Chandrasoma
: Wednesday, March 21, 2007 4:48 PM Subject: Validator question Struts 1.2.9 I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can help. I have a MessageResources.properties under WEB-INF/classes which contains all the messages. In my

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
parameter=MessageResources / in struts-config and see., Thanks Regards, Nuwan. - Original Message - From: Dilip Ladhani [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, March 21, 2007 4:48 PM Subject: Validator question Struts 1.2.9 I have gotten the validator to work

Re: Validator question Struts 1.2.9

2007-03-21 Thread Niall Pemberton
On 3/21/07, Dilip Ladhani [EMAIL PROTECTED] wrote: I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can help. I have a MessageResources.properties under WEB-INF/classes which contains all the messages. In my struts-config I have

Re: Validator question Struts 1.2.9

2007-03-21 Thread Niall Pemberton
=MessageResources / in struts-config and see., Thanks Regards, Nuwan. - Original Message - From: Dilip Ladhani [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, March 21, 2007 4:48 PM Subject: Validator question Struts 1.2.9 I have gotten the validator to work in may of my

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
Thanks, I figured it out. I made sure this was by default bundle. On 3/21/07, Niall Pemberton [EMAIL PROTECTED] wrote: On 3/21/07, Dilip Ladhani [EMAIL PROTECTED] wrote: I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can

Validator question

2007-02-27 Thread Tom Bednarz
I have a FormBean derived from ValidatorActionForm. I define validation rules for certain properties in validation.xml. No I like to add some additional validations which depend on user input. I thought, I can handle this in the validate(..) method but it gets never called! I implemented

Re: Validator question

2007-02-27 Thread Laurie Harper
Tom Bednarz wrote: I have a FormBean derived from ValidatorActionForm. I define validation rules for certain properties in validation.xml. No I like to add some additional validations which depend on user input. I thought, I can handle this in the validate(..) method but it gets never

Re: Pluggable Validator question

2006-04-25 Thread kkumar
Subject Please respond to Re: Pluggable Validator question Struts Users Mailing List [EMAIL PROTECTED

Re: Pluggable Validator question

2006-04-25 Thread kkumar
Hi Niall, Up on further search, I found questions like mine in various forums. The problem is I guess I am not adding the errors in the validation method correctly. Also, the I added the following line in my method. --- errors = new ActionErrors(); I did this

Re: Pluggable Validator question

2006-04-25 Thread kkumar
Everyone, I found the problem in my code. I was using ActionErrors in my custom validation method instead of ActionMessages. I found again that the mistakes done on obvious pieces are difficult to track down. Do I need to close this discussion? Thanks all, Kiran

Pluggable Validator question

2006-04-24 Thread kkumar
Hello All, I am trying to use the TwoField pluggable Validator example from the struts's site. I replaced the deprecated method calls in validateTwoFields(..). For some reason, when I run my application, it doesn't validate the input fields. Instead it directly takes me to the success page after

Re: Pluggable Validator question

2006-04-24 Thread Dave Newton
[EMAIL PROTECTED] wrote: What am I doing wrong? Don't know. Unfortunately showing us an action mapping isn't enough to help, since there's configuration, code, etc. involved. Dave - To unsubscribe, e-mail: [EMAIL

Re: Pluggable Validator question

2006-04-24 Thread kkumar
Please respond to Re: Pluggable Validator question Struts Users Mailing List [EMAIL PROTECTED

Re: Pluggable Validator question

2006-04-24 Thread Niall Pemberton
On 4/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello All, I am trying to use the TwoField pluggable Validator example from the struts's site. I replaced the deprecated method calls in validateTwoFields(..). For some reason, when I run my application, it doesn't validate the input

RE: Validator Question

2006-02-06 Thread Kalcevich, Daniel
-Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 03, 2006 5:02 PM To: Struts Users Mailing List Subject: Re: Validator Question You shouldn't need to use validwhen to do what you describe - try just using email... field property=notificationBcc depends

RE: Validator Question

2006-02-06 Thread Tom Ansley
, 2006 8:32 AM To: Struts Users Mailing List Subject: RE: Validator Question So then how would you test a field that is not required to enter a value into, but if the user does, it must be a valid email address? That is what I am ultimately looking for. Is there a way to achieve this using

Re: Validator Question

2006-02-06 Thread Tom Ansley
Subject: RE: Validator Question So then how would you test a field that is not required to enter a value into, but if the user does, it must be a valid email address? That is what I am ultimately looking for. Is there a way to achieve this using the validators that exist already, or do I need

RE: Validator Question

2006-02-06 Thread Kalcevich, Daniel
To: Struts Users Mailing List Subject: Re: Validator Question The email rule does that for you. If you do not enter an email address the rule is not applied. If you enter an email address the rule is applied to make sure the email is valid. Cheers Tom On 2/6/06, Tom Ansley [EMAIL PROTECTED] wrote

Validator Question

2006-02-03 Thread Kalcevich, Daniel
Everyone, I am using the validator to validate an email address in a text field. The field is not required, but when there is a value in there, I want it to be a valid email address. Here is my XML, field property=notificationBcc depends=validwhen,email arg0

Re: Validator Question

2006-02-03 Thread Niall Pemberton
You shouldn't need to use validwhen to do what you describe - try just using email... field property=notificationBcc depends=email arg0 key=notification.pref.error.notificationbcc/ /field If however you do have reasons for using validwhen then the thing to remember is that the test

Re: validator question

2005-08-04 Thread Dewitte Rémi
Le Mardi 2 Août 2005 20:14, Dewitte Rémi a écrit : Hi ! In a wizard, I have some required checks with struts-validator assigned to pages (with page=). There is sometimes a jump in the wizard so that a property is null. When validating the page after the jump, the server-side validation failed

validator question

2005-08-02 Thread Dewitte Rémi
Hi ! In a wizard, I have some required checks with struts-validator assigned to pages (with page=). There is sometimes a jump in the wizard so that a property is null. When validating the page after the jump, the server-side validation failed as if validator checked all previous pages. For

Validator question

2005-06-03 Thread Lucas Bern
Hi all... I am trying to validate a form... public XForm extends ValidatorForm{ private YForm[] subForms; getters.. setters-- } public YForm extends ValidatorForm{ private String field; getters.. setters.. } I need to validate my XForm first validating each YForm in subForms... I

Re: simple Validator question

2005-05-24 Thread Andreas Toom
I haven't tried this but you shouldn't it be possible to use the 'attribute' attribute in your action mapping configuration ? action path=/action1 type=Action1 name=form1 attribute=form action path=/action2 type=Action2 name=form2

simple Validator question

2005-05-23 Thread Riyaz Mansoor
i saw a doc which had form name=formaname1,formname2 wondering if multiple forms could be declared like this? sorry but am t tired to test right no :) riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Validator question

2005-01-20 Thread Hubert Rabago
I'm not exactly sure what you mean. If you meant the html:javascript resulted in javascript code being written without being surrounded by script tags, it happens to me whenever I forget to specify the form I wanted validation for. html:javascript formName=.../ On Wed, 19 Jan 2005 20:50:51

Re: Validator question

2005-01-20 Thread Curtis Taylor
Hi Hubert, Thanks for the reply; very helpful much appreciated (as is all your work ;-). I've done a bit more gumshoeing; it seems to me the html:javascript tag's exception handling is a bit different than other Struts tags. I discovered that the reason that the html:javascript tag printed

Validator question

2005-01-04 Thread Manisha Sathe
I just started learning validator (struts) and developed one small form with one single field. I used Javascript and serverside validatin both. Till now i used to put all my jar files inside {Tomcat home}/common/lib and it was all ok. (I do not want to keep too many copies of jar files inside

RE: Validator question

2005-01-04 Thread Ashutosh Satyam
-Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 2:32 PM To: user@struts.apache.org Subject: Validator question I just started learning validator (struts) and developed one small form with one single field. I used Javascript

RE: Validator question

2005-01-04 Thread Jim Barrows
-Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 2:02 AM To: user@struts.apache.org Subject: Validator question I just started learning validator (struts) and developed one small form with one single field. I used Javascript

RE: Validator question

2005-01-04 Thread Chaikin, Yaakov Y.
needs to be in the same (or below) classloader. I don't think validator framework does the same, does it? Thanks, Yaakov. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 12:00 PM To: Struts Users Mailing List Subject: RE: Validator question

RE: Validator question

2005-01-04 Thread Jim Barrows
-Original Message- From: Chaikin, Yaakov Y. [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 10:52 AM To: 'Struts Users Mailing List' Subject: RE: Validator question Although I agree with you that it's much easier to keep it all in the lib of the webapp, I think

RE: Validator question

2005-01-04 Thread Chaikin, Yaakov Y.
be in a situation where such things matter enough for me to start doing these tricks. Thanks, Yaakov. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 1:05 PM To: Struts Users Mailing List Subject: RE: Validator question -Original Message- From

RE: Validator question

2005-01-04 Thread Jim Barrows
-Original Message- From: Chaikin, Yaakov Y. [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 11:30 AM To: 'Struts Users Mailing List' Subject: RE: Validator question Agree 100%. My comment was purely theoretical. On a side note though... Does it consume more RAM

Re: Validator question

2005-01-04 Thread Craig McClanahan
- Wrom: XOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZU Sent: Tuesday, January 04, 2005 11:30 AM To: 'Struts Users Mailing List' Subject: RE: Validator question Agree 100%. My comment was purely theoretical. On a side note though... Does it consume more RAM if you have 10

Validator question

2004-12-13 Thread Vinicius Caldeira Carvalho
Hi there. Correct if I'm wrong, validator returns to the input jsp after a validation fails right? Now if my jsp was called by an action that receives parameters throught the request, how can I handle this? Imagine this flow: Search Action (receives parameters on the request) - forwards to jsp

RE: Validator question

2004-12-13 Thread Jim Barrows
-Original Message- From: Vinicius Caldeira Carvalho [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 11:32 AM To: Struts Users Mailing List Subject: Validator question Hi there. Correct if I'm wrong, validator returns to the input jsp after a validation fails

Re: Validator question

2004-12-13 Thread Susan Bradeen
On Mon, 13 Dec 2004 10:44:24 -0700, Jim Barrows [EMAIL PROTECTED] wrote: -Original Message- From: Vinicius Caldeira Carvalho [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 11:32 AM To: Struts Users Mailing List Subject: Validator question Hi there. Correct

Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Hi there! I'm trying to make my validator projetct work on oc4j (oracle 10g) and so far I got no success at all. First thing that is really strange is that at deploy time the application runs it complains about some attributes being used but not declared: XML-0149: (Error) Element 'arg0' used

Re: Validator question

2004-11-30 Thread Bill Siggelkow
Make sure you are using the latest release of Struts (http://struts.apache.org/acquiring.html). In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator that caused this problem. -Bill Siggelkow Vinicius Caldeira Carvalho wrote: Hi there! I'm trying to make my validator projetct

Re: Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Bill Siggelkow wrote: Make sure you are using the latest release of Struts (http://struts.apache.org/acquiring.html). In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator that caused this problem. -Bill Siggelkow Vinicius Caldeira Carvalho wrote: Hi there! I'm trying to make my

Re: Validator question

2004-11-30 Thread Duncan Mills
It might be worth enabling logging on the digester classes to see what's happening on the XML. I run validator using apps with Struts 1.1 in OC4J with no problem so there's not a fundamental issue here. Are you using OC4J inside JDeveloper or deploying to it from an external IDE? / Manually

Re: Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Duncan Mills wrote: It might be worth enabling logging on the digester classes to see what's happening on the XML. I run validator using apps with Struts 1.1 in OC4J with no problem so there's not a fundamental issue here. Are you using OC4J inside JDeveloper or deploying to it from an

RE: Validator question

2004-11-30 Thread Ram Venkataswamy
.../ - it should work -Original Message- From: Vinicius Caldeira Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 5:44 AM To: Struts Users Mailing List Subject: Validator question Hi there! I'm trying to make my validator projetct work on oc4j (oracle 10g) and so far I

RE: Validator question

2004-11-30 Thread Ram Venkataswamy
Or if you want custom msg for required validator then name attribute of msg element should match that specified for depends attribute -Original Message- From: Ram Venkataswamy Sent: Tuesday, November 30, 2004 9:57 AM To: Struts Users Mailing List Subject: RE: Validator question Check

Validator question

2004-09-16 Thread Marco Mistroni
Hi all, I have following issue with Validator I have a form that has, between other fields, two fields, destinationReference and destinationName. destinationName is required only when destinationReference is null AND the parameter 'buttonSelected' is 'find' destinationReference is

Re: Validator question

2004-09-16 Thread Niall Pemberton
: Marco Mistroni [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 16, 2004 12:13 PM Subject: Validator question Hi all, I have following issue with Validator I have a form that has, between other fields, two fields, destinationReference

XDoclet + Struts validator question

2004-09-12 Thread Eric Chow
Hello, How can I define the xdoclet tag for struts validator that the validated field muct depends to another field ?? For example, if the action is new then all the fields(name, sex) must be required. if the action is edit then only the name is required !!! Please give me a hand. Best

Validator question

2004-05-25 Thread Peter Martin
I have a select list that I want to validate the user picked one of the values. The options in the select list are as follows: option[0]value = label = Please Select option[1]value = P label = Probation option[2]value = T label = Trial option[3]value = label = None

Validator question

2004-04-22 Thread Marco Mistroni
Hi all, I need help on struts validator. I have a form bean with two fields,and either one Or the other needs to be entered. How can I express, in validation.xml, that I want that either One field or the other is required? Thanx in advance and regards marco

Re: Validator question

2004-04-22 Thread hernans
In de Struts Validator guide, under the title Conditionally required fields is an example of how to do conditional requirement. http://jakarta.apache.org/struts/userGuide/dev_validator.html Hope it helps Hernan Hi all, I need help on struts validator. I have a form bean with two

RE: Validator question

2004-04-22 Thread Marco Mistroni
to find and the other field is empty... thanx and regards marco -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 22 April 2004 15:21 To: Struts Users Mailing List Subject: Re: Validator question In de Struts Validator guide, under the title