Re: regex validator problem

2014-12-28 Thread Chris
Hi, 1 - When you wrote "select box", did you mean drop-down list ? Because drop-down list are not exactly  input fields. The user can't write something he wants. Could you please give examples ? 2 - Why don't you use "" like in "EditAction-validation.xml" ? 3 - If you want tu use an input field

Re: regex validator problem

2014-12-27 Thread Dave Newton
Did you try defining a complete regex, e.g., with the start/end markers, `^` and `$`, at the beginning/end of the regex? On Sat, Dec 27, 2014 at 8:10 AM, Yaragalla Muralidhar wrote: > Hi Dave, > when "-1" is getting submited it has to display error msg which is > not getting displayed. succ

Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Hi Dave, when "-1" is getting submited it has to display error msg which is not getting displayed. successfully moving to the next page. It is not moving to the input page even. Now i have changed the validator to int so everything is working fine. but i need regex validator to work even

Re: regex validator problem

2014-12-27 Thread Dave Newton
On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar wrote: >> > validator in the following way but it is not working. Please help. Define "not working". -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton b: Bucky Bits g: davelnewton so: Dave Newton -

Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Number is fine Dev. But regex validator has to work right. i worked with it before. Now it is not working. I want to make it work. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Sat, Dec 27, 2014 at 6:37 PM, Dave Newton wrote: > W

Re: regex validator problem

2014-12-27 Thread Dave Newton
Why use a regex for what appears to be a number? On Dec 27, 2014 5:36 AM, "Yaragalla Muralidhar" wrote: > i have a select box. by defualt it submits "-1". I want to write a > validation using regex tosay the selection is mandatory. I have written the > validator in the following way but it is not

regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
i have a select box. by defualt it submits "-1". I want to write a validation using regex tosay the selection is mandatory. I have written the validator in the following way but it is not working. Please help. cannot find error.branch.required *Thanks and Regards,* M

Visitor validator problem

2009-10-19 Thread Jose Fco . Irles Durá
Hi, i'm developing a cms application with struts2 (2.1.8), spring as object factory and jpa for persistence. I have this struts.xml http://pastebin.com/f33635250 this BaseCrudAction http://pastebin.com/f7abb39b6 and its BaseCrudAction-validation.xml http://pastebin.com/f3eade052 this example mo

Re: Struts 1.2.7 custom validator problem

2007-11-05 Thread Paul Benedict
I wonder what the purpose is of returning false. On 10/30/07, John Doe <[EMAIL PROTECTED]> wrote: > > I've solved the problem. The only way to validate properly is to add an > error to the errors variable. Without this validator will think that > everything is OK even if you returned false in vali

Re: Struts 1.2.7 custom validator problem

2007-10-30 Thread John Doe
I've solved the problem. The only way to validate properly is to add an error to the errors variable. Without this validator will think that everything is OK even if you returned false in validate method. On 10/29/07, John Doe <[EMAIL PROTECTED]> wrote: > > No, there is no exception. > > On 10/28/

Re: Struts 1.2.7 custom validator problem

2007-10-29 Thread John Doe
No, there is no exception. On 10/28/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > > I think validation can pass if an exception is thrown. Please check your > log > files that no error is occurring with your validation. > > Paul > -- Best regards, Bashmaкov Anton

Re: Struts 1.2.7 custom validator problem

2007-10-28 Thread Paul Benedict
I think validation can pass if an exception is thrown. Please check your log files that no error is occurring with your validation. Paul

Re: Struts 1.2.7 custom validator problem

2007-10-27 Thread John Doe
Yes. I have validation working correctly. Required and mask works good. And my validator method gets called and returns false, but I do not add any errors message is it necessary? On 10/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > John Doe wrote: > > Hi, > > I have Struts 1.2.7 application

Re: Struts 1.2.7 custom validator problem

2007-10-26 Thread Laurie Harper
John Doe wrote: Hi, I have Struts 1.2.7 application and I need to write custom validator for my form. I've wrote struts tutorial at http://struts.apache.org/1.2.7/userGuide/dev_validator.html and have tried to do the same. But my validator is not working. Here is my class method : public class

Struts 1.2.7 custom validator problem

2007-10-26 Thread John Doe
Hi, I have Struts 1.2.7 application and I need to write custom validator for my form. I've wrote struts tutorial at http://struts.apache.org/1.2.7/userGuide/dev_validator.html and have tried to do the same. But my validator is not working. Here is my class method : public class GroupIdValidator {

Re: nested:iterate Validator problem

2007-09-13 Thread Matthew Schrader
I have my beans inheriting ValidtorActionForm. Is there anything else that I need to do to turn on server-side validation? At this point neither server-side or client-side validation is picking up this field. Paul Benedict wrote: I don't the client-side validator handles arrays? You should in

Re: nested:iterate Validator problem

2007-09-13 Thread Paul Benedict
I don't the client-side validator handles arrays? You should instead allow server-side validation to take care of complex scenarios. Paul On 9/12/07, Matthew Schrader <[EMAIL PROTECTED]> wrote: > > Users, > > I have been googling like crazy to find a workaround, or fix, to the > problem of Valida

nested:iterate Validator problem

2007-09-12 Thread Matthew Schrader
Users, I have been googling like crazy to find a workaround, or fix, to the problem of Validator not working properly with nested:iterate fields. Below I have included what I am doing for the code incase I have something wrong. Please let me know if anyone knows anything. My field is set u

Re: Validator Problem

2007-04-13 Thread Laurie Harper
Tom Bednarz wrote: I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: this actions opens a form with a request parameter op set to new. inside this form I do something like:

Validator Problem

2007-04-13 Thread Tom Bednarz
I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: this actions opens a form with a request parameter op set to new. inside this form I do something like:

form validator problem

2005-11-28 Thread Johnson, Kaerstin
I have added this line to my jsp (which works fine without it): When I add the validation line, the javascript code is generated in the source without any surrounding tags and is visible on the page? The form validation line works for other jsps in the app. ?? Any ideas what I've done wrong

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
AIM: jmitchtx - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 2:19 PM Subject: Re: 1.2.2 validator problem in websphere > That works for me. I'll

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
ng List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 2:17 PM Subject: Re: 1.2.2 validator problem in websphere > I was gonna post this suggestion anyway, but here's something that will work > with JDK 1.3 and is in the spirit of avoiding the creation of

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread Kris Schneider
MAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, August 31, 2004 1:54 PM > Subject: Re: 1.2.2 validator problem in websphere > > > > This is the only difference from 1.25 to 1.26 (file version) > > > >

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
ot;Michael Nascimento Santos" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 1:54 PM Subject: Re: 1.2.2 validator problem in websphere > This is the only difference from 1.25 to 1.26 (file version) > > http:/

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread Michael Nascimento Santos
PROTECTED]> Sent: Tuesday, August 31, 2004 2:46 PM Subject: Re: 1.2.2 validator problem in websphere > I would propose this as the fix > > [EMAIL PROTECTED] ~/cvs/jakarta-struts > $ cvs diff -u src/share/org/apache/struts/validator/ValidatorPlugIn.java > Index: src

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
eTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 1:41 PM Subject: Re: 1.2.2 validator problem in websphere > Let&#x

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
ng List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 1:37 PM Subject: Re: 1.2.2 validator problem in websphere > The exception is not clear enough, but it contains most info you need to > know: > > Some code in Struts 1.2.2 [probably > org.apache.struts.validator.

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread Michael Nascimento Santos
://www.javablogs.com.br/blogs/page/soujavamisterm http://today.java.net/pub/au/80 - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 2:23 PM Subject: Re: 1.2.2 validator problem in

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
y, August 31, 2004 11:51 AM Subject: 1.2.2 validator problem in websphere > I'm getting this error migrating to 1.2.2 from 1.1 in Websphere 5.0.x which > is running in the 1.3 JVM. > > > > [8/31/04 11:42:19:686 EDT] 5d4abeff ValidatorPlug I > org.apache.struts.validator.Val

1.2.2 validator problem in websphere

2004-08-31 Thread andmer
I'm getting this error migrating to 1.2.2 from 1.1 in Websphere 5.0.x which is running in the 1.3 JVM. [8/31/04 11:42:19:686 EDT] 5d4abeff ValidatorPlug I org.apache.struts.validator.ValidatorPlugIn Loading validation rules file from '/WEB-INF/validation.xml' [8/31/04 11:42:20:139 EDT] 5d4