> -----Original Message-----
> From: Frank Zammetti [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 16, 2004 1:15 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Overwritting RequestProcessor, how to???
> 
> 
> 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?

I agree.... overload validate(), call super and if you get any errors back, then do 
your custom stuff.  Provided that your custom stuff your running after validation 
doesn't break the one method, one function rule.  If that's what you want, then I'd 
look to see if there's another way of triggering whatever it is you want... say with a 
tag or something.


> 
> 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]
> 
> 

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

Reply via email to