but ... Larry,

iBatis has BaseBean, BeanAction

BaseBean here is extended from org.apache.struts.action.ActionForm
BeanAction is extended from org.apache.struts.action.Action

I must build my bean bases on BaseBean, which means that my bean must extend from BaseBean.

But, to use validator of Struts, my bean must extend from ValidatorForm.

again, help me!

Bowl

----- Original Message ----- From: "Larry Meadors" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, April 11, 2005 9:43 PM
Subject: Re: [HELP] How to do validation in Struts + iBatis + DAO???



I am not sure why this is a problem, unless you are passing your action form into iBATIS.

If that is the case, that is a really, really, really bad idea.

What I would recommend (beyond not using validator) is nesting your model
bean on the action form.

Larry

On Apr 11, 2005 2:02 AM, Pham Anh Tuan <[EMAIL PROTECTED]> wrote:

Hi all,

I don't know how to do Validation in Struts + iBatis + Dao.

Because when I use above Structure, I must extends from BaseBean to create
my own Bean. As you know, if we want to use Validator of Struts, our
ActionForm must extends from ValidatorForm.

So ... help me.

bowl




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to