Em Wed, 23 Sep 2009 06:54:09 -0300, <dirk.latterm...@bgs-ag.de> escreveu:
Hi!
Hi!
In the howto, if a user that is not logged in tries to access a private page, the login page is shown (which may or may not be a sufficient solution there), using response.sendRedirect(). In my case, the user may be logged in but not as a member of the right group. So, ideally, I'd like to present a page with some message with a "back" link to the previously displayed application page or, if the page was directly called, with the application start page.
My approach was to define an exception hierarchy (AuthorizationException and some subclasses) and throw one of them in my dispatcher. Then, in my error page, I handle it apropriately. No javaScript, no use of session. :)
-- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org