Olve,

Would love to see the src for your ExceptionRethrower if you are still
willing to post it.

Geoff

On 5/23/05, Olve Hansen <[EMAIL PROTECTED]> wrote:
> Michael Echerer <mech <at> tngtech.com> writes:
> >
> > Olve Hansen wrote:
> > > [snip]
> > You can customize the stale link, stale session and exception pages.
> >
> > See oder Howard's book:
> > http://tapestry-tutorial.cloudnine.net.nz/pages-example.html
> >
> > Basically you could create your own exception page that gets called.
> > Then you can filter/rethrow or let anything pass thru you want in your
> > custom exception page class.
> >
> I will definitely do this later, but for this case I found a more elegant way 
> of
> solving the problem. By overriding the activateErrorPage in AbstractEngine,
> and before I call super, fetch a SpringManagedBean where I can configure which
> families of exceptions to rethrow:
> 
> <bean id="exceptionRethrower" 
> class="no.imb.bite.framework.ExceptionRethrower">
>   <!--  Remember that this list is in prioritized order -->
>   <property name="toRethrow">
>     <list>
>       <value>net.sf.acegisecurity.AuthenticationException</value>
>       <value>net.sf.acegisecurity.AcegiSecurityException</value>
>     </list>
>   </property>
> </bean>
> 
> Works perfectly. I'll post the class as well, if someone is interested. (Not
> posting now, as gmane is quite pedantic about the 80 character limit, and all 
> my
> classes are above).
> 
> Thanks a lot for the link, haven't seen that one before, and thanks to Gregor
> for the hispacta. It didn't solve this problem, but definitely a good source 
> for
> acegi setup.
> 
> --
> Cheers
> Olve
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

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

Reply via email to