Thanks Rick!
super.validate(mapping, request); works just fine for me.
I am able to now use both the validation.xml as well as the ones coded
in my actionform's validate method. :-)
~raghu~
On 1/21/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
> How are you certain the validation.xml isn't being c
How are you certain the validation.xml isn't being called? Log the
ActionErrors stuff in the try block after the call to
validator.validate()
Actually I think the easiest is to just validate what you need
manually and then I think you should just be able to do:
super.validate(mapping, request);
Thanks Rick! You spotted it correct...It now executes the validate
function of the form :-)
Now I move onto second step. I cut paste the code that you sent in the
action form's validate function. Now the problem is that
validation.xml is not having any effect.
Just to paste back the exact code I
On 1/20/06, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:
> Let me repaste what I think might be relevant for you to take a look at it:
>
> DynaActionForm code: [ Note: This is extending DynaValidatorForm ]
> ---
>
> public class StudentEnquiryDynaActionForm exten
Let me repaste what I think might be relevant for you to take a look at it:
DynaActionForm code: [ Note: This is extending DynaValidatorForm ]
---
public class StudentEnquiryDynaActionForm extends DynaValidatorForm
{
public ActionErrors validate(ActionMapping
What does your action mapping look like? Do you have validate=true set for
the form?
Mind you, I'm not a fan of using automatic validation:) I prefer to call
validate manually from my Action class. I explain my reasons here
http://www.learntechnology.net/validate-manually.do
On 1/20/06, Raghu K
Thanks Rick for the response.
My first issue Rick is that my validate function in the form is not getting
called at all.
I have simply put a "System.out.println" statement there to verify that it
is getting called.
What you have given is definitely useful for me in the second step :-) But I
need t
Raghu Kanchustambham wrote the following on 1/20/2006 9:22 AM:
Hi,
When I want to retain validation.xml for validation of most of my fields on
the form. However, the rules for one particular field is too complex to be
done with just the validation.xml. I intend to check for it in the
validation f
8 matches
Mail list logo