Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
Struts looks for the Validator configuration based on a key. The key is selected by the form. The key can either be the URI (DynaValidatorActionForm) or the Form Name (DynaValidatorForm). Your config file is obviously using bean names: So you need the correct Form superclass to select by bean na

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
Given my struts-config.xml entry in the previous post: what is the validator-users.xml entry supposed to look like? In other words what is wrong with my validator-users.xml file such that what is needed to be changed to get this to work? thanks for all the help. -- View this message in context

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
I am not sure I understand. -- View this message in context: http://struts.1045723.n5.nabble.com/DynaValidatorActionForm-using-Apache-Commons-Validator-project-tp5712255p5712261.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
Ooops. You shouldn't need "your_context" -- just the URI after the context. On Thu, Mar 21, 2013 at 4:32 PM, Paul Benedict wrote: > As I said, DynaValidatorActionForm validates by looking for the matching > URI in the Struts Config. If you want to continue using that superclass, > your Validator

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
As I said, DynaValidatorActionForm validates by looking for the matching URI in the Struts Config. If you want to continue using that superclass, your Validator XML contents must change to this: Otherwise, switch your base class to DynaValidatorForm and keep your Validator XML contents as-is. P

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread J.V.
I must be doing something wrong. Any ideas? When I hit submit on the form (and leave the fields empty), it continues with the lines in the Action method and never validates. Is there anything wrong with this configuration at all? --- My struts-config.xml entry looks like this:

Re: DynaValidatorActionForm (using Apache Commons Validator project)

2013-03-21 Thread Paul Benedict
DynaValidatorActionForm validates by looking for the matching URI in the Struts Config. Paul On Thu, Mar 21, 2013 at 3:57 PM, J.V. wrote: > > Is DynaValidatorActionForm.java intended for use in extending Action > classes or for use in extending Form classes? > > Does anyone have a working examp

Re: DynaValidatorActionForm File Upload

2005-12-14 Thread Daniel Kies
Ok, thanks. I never used that property before and I overlooked it. Thanks for your help. On 12/14/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > Daniel Kies wrote: > > >Here it is: > > > > > > > Should be a multipart form, no? > > Dave > > > >

Re: DynaValidatorActionForm File Upload

2005-12-14 Thread Dave Newton
Daniel Kies wrote: Here it is: Should be a multipart form, no? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DynaValidatorActionForm File Upload

2005-12-14 Thread Daniel Kies
Here it is: File:

Re: DynaValidatorActionForm File Upload

2005-12-14 Thread Dave Newton
Daniel Kies wrote: Hello. I am using DynaValidatorActionForm and I want to use File upload to upload a local file to my struts action class. Is this possible? Sure; I use FormFiles with DynaValidatorActionForms often. and jsp code: What does the html:f

Re: DynaValidatorActionForm

2004-04-12 Thread Niall Pemberton
Take a look at the LazyValidatorForm I wrote - specifically the get(String name, int index) method handles this scenario. http://www.niallp.pwp.blueyonder.co.uk Niall - Original Message - From: "Shoaib" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tu

Re: DynaValidatorActionForm

2004-04-12 Thread Shahriar Jamshidi
I dont think DynaActionForm will help you in what your trying to do. From what I understand DynaActionForm is an actionForm where the elements are defined in the struts-config file rather than in you own java code. (Ie you dont have to write java class that extends actionForm and make getValue() s

Re: DynaValidatorActionForm validation order of operations?

2004-04-12 Thread Stjepan Brbot
I don't know how does it work with DynaValidatorActionForm (I guess the same as with DynaValidatorForm) but DynaValidatorForm (Struts v1.1) shows all validation errors (for all fields in form) in only one round-trip. Do you use Struts v1.0 or v1.1? SB "Hodgeman, Robert (LNG)" <[EMAIL PROTECTED]

[SOLVED} RE: DynaValidatorActionForm client-side validation

2004-04-09 Thread Igor Antonacci
Hi, I solved with your advice. Thanks a lot! Igor. > -Original Message- > From: Saul Q Yuan [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 10:03 PM > To: 'Struts Users Mailing List' > Subject: RE: DynaValidatorActionForm client-side validation &

Re: DynaValidatorActionForm client-side validation

2004-04-09 Thread Niall Pemberton
etValidationKey() - when the next proper "release" of struts comes out, you can then delete the validate() method just leaving getValidationKey(). Niall - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[E

Re: DynaValidatorActionForm client-side validation

2004-04-09 Thread Adam Hardy
ge- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Friday, 9 April 2004 06:03 To: 'Struts Users Mailing List' Subject: RE: DynaValidatorActionForm client-side validation Hmmm, I don't seem to have that problem. Did you specify method="validateYourActionForm" in additi

RE: DynaValidatorActionForm client-side validation

2004-04-08 Thread Kunal H. Parikh
DynaValidatorForm.getValidationKey returns the mapping NAME! HTH, KP -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Friday, 9 April 2004 06:03 To: 'Struts Users Mailing List' Subject: RE: DynaValidatorActionForm client-side validation Hmmm, I don't seem to have th

RE: DynaValidatorActionForm client-side validation

2004-04-08 Thread Saul Q Yuan
truts Users Mailing List > Subject: Re: DynaValidatorActionForm client-side validation > > > Hmmm, good question. I had this problem, but never managed to > solve it. > I thought I was doing something wrong but I couldn't work it out. > Eventually I changed to DynaVal

Re: DynaValidatorActionForm client-side validation

2004-04-08 Thread Adam Hardy
Hmmm, good question. I had this problem, but never managed to solve it. I thought I was doing something wrong but I couldn't work it out. Eventually I changed to DynaValidatorForm, which wasn't a big problem because there were only 2 or 3 forms where I wanted to use the same DynaForm but differ