> -----Original Message-----
> From: Michael Finger [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 16, 2004 2:22 PM
> To: Struts Users Mailing List
> Subject: RE: Overwritting RequestProcessor, how to???
> 
> 
> Or you look at this as a opportunity to take aspectj for a spin :)

*LOL* now thats an idea... better... and probably less complex...
the input param takes a uri which could be 
/whoopsValidationError.do?actualyPage=page.jsp


> 
> Mike
> 
> -----Original Message-----
> From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 16, 2004 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Overwritting RequestProcessor, how to???
> 
> Frankly, that's a pretty trivial change to make to all your 
> ActionForms, I 
> would in all probability, were it me, just add that code to 
> all of them.  
> Either that or do the base class approach, but that still 
> requires you to 
> touch all the classes.  I wouldn't override RequestProcessor 
> for something 
> like this, it's really overkill and questionable architecturally.
> 
> 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]
> 
> 
> ---------------------------------------------------------------------
> 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