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

Re: Validator question Struts 1.2.9

2007-03-21 Thread Niall Pemberton
On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote: Thanks for the reply. However, after doing that I get the error Unhandled exception thrown during validation: No message resources found for bundle: messages java.lang.NullPointerException: No message resources found for bundle: messages

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 Dilip Ladhani
Thanks for the reply. However, after doing that I get the error Unhandled exception thrown during validation: No message resources found for bundle: messages java.lang.NullPointerException: No message resources found for bundle: messages Also, on various jsps, I would have to, I would have to

Re: Validator question Struts 1.2.9

2007-03-21 Thread Nuwan Chandrasoma
make your message resource as the defautl one, dont put any key just add the entry in struts-config and see., Thanks & Regards, Nuwan. - Original Message - From: "Dilip Ladhani" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 21, 2007 4:48 PM Subject: Validator question Struts 1.

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

RE: Validator Question

2006-02-06 Thread Kalcevich, Daniel
: 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]>

Re: Validator Question

2006-02-06 Thread Tom Ansley
bruary 06, 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. I

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 the

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... If however you do have re

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... If however you do have reasons for using validwhen then the thing to remember is that the "test" variable specifies the condition when the field is valid. So what you have specified is that this field i

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 validatio

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 th

Re: Validator question

2005-01-20 Thread Hubert Rabago
I'm not exactly sure what you mean. If you meant the resulted in javascript code being written without being surrounded by

Re: Validator question

2005-01-04 Thread Craig McClanahan
gt; > > -Original Message- > > Wrom: XOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZU > > Sent: Tuesday, January 04, 2005 11:30 AM > > To: 'Struts Users Mailing List' > > Subject: RE: Validator question > > > > > > Agree 100%. My

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

RE: Validator question

2005-01-04 Thread Chaikin, Yaakov Y.
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

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

RE: Validator question

2005-01-04 Thread Chaikin, Yaakov Y.
therefore 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: Val

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 Javasc

RE: Validator question

2005-01-04 Thread Ashutosh Satyam
It'll be good if you can have a look at Tomcat documentation - 'Class Loader Section' It clearly says that if you want to have jars accessible to different web application, then it should be placed in $CATALINA_HOME/shared/lib directory. Hope this should address your problem. - Ashutosh

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

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

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

RE: Validator question

2004-11-30 Thread Ram Venkataswamy
Check "required" validator in your validator-rules file - the message takes one argument {0} is required - whereas in validation file you are passing two values for 1 argument try removing - it should work -Original Message- From: Vinicius Cald

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 externa

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 R

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 v

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 work

Re: Validator question

2004-09-16 Thread Niall Pemberton
Are you sure your destinationName validation is correct - seems to me like it should always give a validation error if buttonSelected is not "find"? I think it should be something like the following > destinationName is required only when destinationReference is null AND > the parameter 'butt

Re: Validator question

2004-05-25 Thread Joe Germuska
At 5:15 PM -0500 5/25/04, Peter Martin wrote: 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"

RE: Validator question

2004-04-22 Thread Marco Mistroni
ge- 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 "Conditionally required fields" is an example of how to do conditional requirement. http://jakar

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 f