Sometimes the "manual labor" approach really IS the right choice :)
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 Users Mailing List <[EMAIL PROTECTED]> Subject: RE: Overwritting RequestProcessor, how to??? Date: Mon, 16 Aug 2004 17:58:55 -0300 (ART)
Frank, as i said, i only want to call another method everytime validate() fails. That's the only thing i wanna do.
If i only overwritte ActionForm and create a MyBaseActionForm, in my specific forms i'd have to do something like this inside validate() method.
if (errors != null){ mySpecificMethod(); }
What will cause me to modify all action forms i got. I thought i'd be simpler if i just overwritte the request processor and put the above code inside it.
What do you thing now? Is still not the better idea?
I ask because i'm really a beginner, so i don't know if it would be the best architecture.
--- Frank Zammetti <[EMAIL PROTECTED]> escreveu: > 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] > >
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]