RE: Validation problem

2004-02-03 Thread Jiin-Her Lu
This is an interesting thing. Here is the way to avoid Struts calls validate method on ActionForm This one Struts framework will NOT call validate method on ActionForm html:cancel value=Cancel / While this one does html:cancel property=mycancelbutton value=Cancel / The only difference is

RE: Validation problem

2004-01-29 Thread Robert Taylor
What's the name of your Cancel button? Struts should not validate if it finds org.apache.struts.taglib.html.CANCEL or org.apache.struts.taglib.html.CANCEL.x Take a look at the RequestProcessor.processValidate() code: if (request.getAttribute(Globals.CANCEL_KEY) != null) { if

RE: Validation problem

2004-01-29 Thread Barnett, Brian W.
The Struts Validator provides a mechanism to deal with Cancel buttons. A flag is set in the onclick method for the cancel button in the jsp page. The validate methods check this flag and if it is set, they skip validation and just return true. html:cancel onclick=bCancel=true; If you're not

RE: validation problem

2004-01-16 Thread Matthias Wessendorf
hi kelly, did you integrate it into struts-config? -- plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in greetings

Re: validation problem

2004-01-16 Thread Kelly Goedert
Yes I did. It is exactly like your application. Matthias Wessendorf wrote: hi kelly, did you integrate it into struts-config? -- plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames

RE: validation problem

2004-01-16 Thread Matthias Wessendorf
what is about name=loginForm instead: name = loginForm (as action.-attribute)? but can´t be... ?!? -Original Message- From: Kelly Goedert [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 11:41 AM To: Struts Users Mailing List Subject: Re: validation problem Yes I did

Re: validation problem

2004-01-16 Thread Kelly Goedert
11:41 AM To: Struts Users Mailing List Subject: Re: validation problem Yes I did. It is exactly like your application. Matthias Wessendorf wrote: hi kelly, did you integrate it into struts-config? -- plug-in className=org.apache.struts.validator.ValidatorPlugIn set

Re: validation problem

2004-01-16 Thread Eric C
Shouldn't your formbean type point to the actual class loginForm instead of org.apache.struts.validator.DynaValidatorForm, which i believe should be in the bean code (bean extends DynaValidatorForm) ? - Original Message - From: Kelly Goedert [EMAIL PROTECTED] To: Struts Users Mailing

RE: validation problem

2004-01-16 Thread Matthias Wessendorf
To: Struts Users Mailing List Subject: Re: validation problem I'm sorry, I didn't get what you mean... could you explain? Matthias Wessendorf wrote: what is about name=loginForm instead: name = loginForm (as action.-attribute)? but can´t be... ?!? -Original Message- From: Kelly Goedert

Re: Validation: Problem with datePattern and JavaScript

2003-12-11 Thread Rouven Gehm
[mailto:[EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 12:00 PM To: Struts Users Mailing List Subject: Re: Validation: Problem with datePattern and JavaScript Hi, Do u have an example of using validate-rules.xml in a JSP file. Thanks - Original Message - From: Rouven Gehm [EMAIL

Re: Validation: Problem with datePattern and JavaScript

2003-12-10 Thread Zakaria khabot
Hi, Do u have an example of using validate-rules.xml in a JSP file. Thanks - Original Message - From: Rouven Gehm [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 1:53 PM Subject: Validation: Problem with datePattern and JavaScript

RE: Validation: Problem with datePattern and JavaScript

2003-12-10 Thread Andy Schmidgall
, 2002 12:00 PM To: Struts Users Mailing List Subject: Re: Validation: Problem with datePattern and JavaScript Hi, Do u have an example of using validate-rules.xml in a JSP file. Thanks - Original Message - From: Rouven Gehm [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Re: validation problem

2003-06-17 Thread salgado . pc
Check in your validation.xml if the messages (arg0, in this case) that are binded with your error message is correct... maybe it always returns the same error... (have you checked filling other form fields and checking if messages change)? Without the xml validation rule it is the best i can

Re: validation problem

2003-06-16 Thread David Graham
Post the relevant section of your validation xml file and more info about your form. David Hi there, this is my first post! I have inherited a web-based struts project that is frankly a mess... I have managed to straighten out most things except something that is driving me nuts - this is

Re: validation problem

2003-06-16 Thread Aleksandar Matijaca
Well, this is what I inherited: formname=/public/EventRegistration fieldpage=1 property=registrant.firstname depends=required,mask,minlength,maxlength arg0 key=eForm.firstname/ arg1 name=minlength

ValidatorBaseForm - Re: validation problem

2003-06-16 Thread Aleksandar Matijaca
The ValidatorBaseForm simply extends ValidatorActionForm - sorry I fergot to add that... On Mon, 16 Jun 2003, Aleksandar Matijaca wrote: Well, this is what I inherited: formname=/public/EventRegistration fieldpage=1 property=registrant.firstname

Re: validation problem

2003-06-16 Thread David Graham
I believe the form name must be the same as what you defined in struts-config.xml. Try form name=eventRegistrationForm in your validation rules. David Well, this is what I inherited: formname=/public/EventRegistration fieldpage=1 property=registrant.firstname

Re: ValidatorBaseForm - Re: validation problem

2003-06-16 Thread David Graham
The ValidatorBaseForm simply extends ValidatorActionForm - sorry I fergot to add that... Oh, that might be why they used /public/EventRegistration as the form name. Try extending ValidatorForm and using the bean name defined in struts-config.xml instead. David On Mon, 16 Jun 2003,

RE: Validation Problem

2003-06-09 Thread Bailey, Shane C.
I didn't notice if you got your problem solved but it is a simple spelling error: public void setField1(String feld1) { this.field1 = field1; } should be: setField1(String field1) -Original Message- From: Thomas Miskiewicz [mailto:[EMAIL PROTECTED] Sent: Sunday, June

Re: Validation Problem

2003-06-08 Thread David Graham
Well, these validations have already been coded for you and can be configured in an xml file by using the Validator. I highly recommend you look into using the validator because it will save you a bunch of time. Your problem may have something to do with setting the fields = in reset. I

Re: Validation Problem

2003-06-08 Thread Thomas Miskiewicz
David, Well, these validations have already been coded for you and can be configured in an xml file by using the Validator. I highly recommend you look into using the validator because it will save you a bunch of time. I'll do soon. I getting acquainted with Struts working with the book

Re: Validation Problem

2003-06-08 Thread Marco Tedone
Why don't you use html:text? Marco - Original Message - From: Thomas Miskiewicz [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, June 08, 2003 9:47 PM Subject: Validation Problem Hi! I now have a strange validation problem. I use this ActionForm class:

Re: Validation Problem

2003-06-08 Thread David Graham
The author is incorrect. Check out http://jakarta.apache.org/struts/faqs/newbie.html#reset for more info. David Well, these validations have already been coded for you and can be configured in an xml file by using the Validator. I highly recommend you look into using the validator because

Re: Validation problem

2003-02-20 Thread alexj
have you try to restart tomcat ? - Original Message - From: Johan Kumps [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 10:02 PM Subject: Validation problem Hi all, I have a problem displaying error messages. Why is my message not

Re: Validation problem

2003-02-20 Thread Ian Hunter
When you add your error message to the errors object, you are specifying Action.ERROR_KEY instead of ActionErrors.GLOBAL_ERROR -- so you'd have to do something like html:errors property=something/ to get that SPECIFIC error. If you switch to ActionErrors.GLOBAL_ERROR it will display all of them

RE: Validation problem

2003-02-20 Thread Johan Kumps
Aan: Struts Users Mailing List Onderwerp: Re: Validation problem When you add your error message to the errors object, you are specifying Action.ERROR_KEY instead of ActionErrors.GLOBAL_ERROR -- so you'd have to do something like html:errors property=something/ to get that SPECIFIC error

Re: Validation problem

2003-02-20 Thread Ian Hunter
: Thursday, February 20, 2003 4:25 PM Subject: RE: Validation problem Thanks for your help. My jsp is displaying : ???nl_BE.error.invalid.email??? Still something wrong. It seems my key is not found. Can you help me again please? Kind regards, -Oorspronkelijk bericht- Van: Ian

RE: Validation problem

2003-02-20 Thread Johan Kumps
I implemented your second option. -Oorspronkelijk bericht- Van: Ian Hunter [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 20 februari 2003 22:35 Aan: Struts Users Mailing List Onderwerp: Re: Validation problem Did you switch to ActionErrors.GLOBAL_KEY or change your JSP code? 1

Re: Validation problem

2003-02-20 Thread Ian Hunter
Did the logic:notPresent tag cause your app to complain about not having the resources loaded? - Original Message - From: Johan Kumps [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 4:51 PM Subject: RE: Validation problem I

RE: Validation problem

2003-02-20 Thread Johan Kumps
no app did not complain -Oorspronkelijk bericht- Van: Ian Hunter [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 20 februari 2003 22:55 Aan: Struts Users Mailing List Onderwerp: Re: Validation problem Did the logic:notPresent tag cause your app to complain about not having the resources

Re: Validation problem

2003-02-20 Thread Ian Hunter
] Sent: Thursday, February 20, 2003 4:55 PM Subject: RE: Validation problem no app did not complain -Oorspronkelijk bericht- Van: Ian Hunter [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 20 februari 2003 22:55 Aan: Struts Users Mailing List Onderwerp: Re: Validation problem Did

Re: validation problem

2001-07-15 Thread Yuriy Zubarev
, Yuriy Zubarev - Original Message - From: David Winterfeldt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 14, 2001 8:48 PM Subject: Re: validation problem Is your bean:define inside your html:form tags? If the userForm doesn't exist, you would get a null pointer

Re: validation problem

2001-07-15 Thread Gregor Rayman
Yuriy Zubarev [EMAIL PROTECTED] wrote: David, Yes it is. I think that userForm exists after the validation process (otherwise I would have gotten an error earlier), but something is wrong with countriesList. The form is quite big so I'll post part of it. The problem might be that your

Re: validation problem

2001-07-14 Thread David Winterfeldt
Is your bean:define inside your html:form tags? If the userForm doesn't exist, you would get a null pointer exception trying to call it. If this doesn't help, seeing the whole form might. David --- Yuriy Zubarev [EMAIL PROTECTED] wrote: Salutation to everyne! I have a form (extends