Maybe it would be enough to just write your own base class that extends ActionForm, have your "common" code in it, and then extend your ActionForms from that class?

If not, take a look at my code from http://www.omnytex.com/strutsws for an example of writing your own command processor. I get the feeling it's not the right approach, but I could be wrong.

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com





From: Leandro Melo <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: struts jakarta <[EMAIL PROTECTED]>
Subject: Overwritting RequestProcessor, how to???
Date: Sun, 15 Aug 2004 14:06:34 -0300 (ART)

Hi,
i'd like to overwirte RequestProcessor, but actually i
don't really know if it's a good idea.

Here's the point:
I'd like to have one more action if my form.validate()
method fails on ActionForm. I'd like to do some
specific stuff everytime the validate method fails.
Then, i thought of overwritting the RequestProcessor.

Is that a good idea, or there's another way to
accomplish what i want???

Regards,
ltcmelo





_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: http://br.acesso.yahoo.com/


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


_________________________________________________________________
Get ready for school! Find articles, homework help and more in the Back to School Guide! http://special.msn.com/network/04backtoschool.armx



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



Reply via email to