Re: Manually call strust validation

2002-11-03 Thread Mr Alireza Fattahi
I got the answer!

Here is code

DynaActionForm dy = (DynaActionForm) form;
ActionErrors err  = new ActionErrors();
err = dy.validate(mapping,request)

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Manually call strust validation

2002-11-03 Thread Mr Alireza Fattahi
Thanks, but i get Nullpointer exception, Can you
please help me with more details.

This is my code:
ValidatorActionForm vl = new ValidatorActionForm();
ActionErrors err = new ActionErrors();
err  = vl.validate ( mapping, request );

Is above correct should my action calss extend
ValidatorActionForm?


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Manually call strust validation

2002-11-03 Thread V. Cekvenich
validate()

Mr Alireza Fattahi wrote:

Hi,
I am using validitor feature. I have turn the
validation OFF on struts_config.xml. How can I
manually do the validation on my action class by
calling validitor objects. 

Thanks.
P.S: I want validate my form, not before the action is
executed but after I have done some logics.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Manually call strust validation

2002-11-02 Thread Mr Alireza Fattahi
Hi,
I am using validitor feature. I have turn the
validation OFF on struts_config.xml. How can I
manually do the validation on my action class by
calling validitor objects. 

Thanks.
P.S: I want validate my form, not before the action is
executed but after I have done some logics.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: