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
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
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.
---
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
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
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:
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
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
>
>
>
>
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]
Here it is:
File:
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
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
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
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]
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
&
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
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
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
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
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
20 matches
Mail list logo