The tiles:insert problem is discussed here http://issues.apache.org/bugzilla/show_bug.cgi?id=13279
> -----Original Message----- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Friday, February 21, 2003 3:10 PM > To: [EMAIL PROTECTED] > Subject: Re: [PROPOSAL] Add Exception Handling to ActionForwards > > > I tried implementing a simpler solution for Tiles controllers > by customizing > the RequestProcessor. I discovered that the <tiles:insert> > tag also calls > the controller and just displays exceptions to the user. I'm > a little > unsure about what to do at this point... > > David > > >I'll start with a specific situation: > >Tiles allows you to configure a Controller class on a tile that gets > >executed whenever that tile gets used. This is most > commonly used to > >prepare data for the tile from some datasource. However, > the declarative > >exception handling feature does not apply to this, rendering > this Tiles > >feature fairly useless. > > > >The general feature idea: > >The problem is that the RequestProcessor only invokes the exception > >handling mechanism on an Action's execute() method. If we > extended this > >idea to handling exceptions from ActionForwards we could allow > >implementations to report errors that occurred while > forwarding and allow > >applications to recover gracefully. As it is, I think a > ServletException > >get propagated up to the servlet. > > > >I believe the changes would include changing > >RequestProcessor.processForwardConfig() throws IOException, > >ServletException > > > >to > > > >RequestProcessor.processForwardConfig() throws Exception > > > >and the 2 places that processForwardConfig() is called in > RequestProcessor > >would catch the Exception and pass it to processException(). > > > >Thoughts? > >David > > > > > > > > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > --------------------------------------------------------------------- > 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]