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