"Thiago H. de Paula Figueiredo" <thiag...@gmail.com> schrieb am 23.09.2009 
13:20:21:

> 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. 
:)

Oh, my. Thanks! Sometimes it is hard to see old friends when new 
technology hits in.
It simply didn't come to my mind to use Exceptions to pass information 
from the dispatcher to the error page.

As for the back button, I think I might use a SSO that every page can set 
to signal to
the error page where to link the "back" (or "continue") button to.

Thanks again,
Dirk

BGS Beratungsgesellschaft 
Software Systemplanung AG         Niederlassung Köln/Bonn 
Grantham-Allee 2-8 
53757 Sankt Augustin 
Fon: +49 (0) 2241 / 166-500 
Fax: +49 (0) 2241 / 166-680 
www.bgs-ag.de Geschäftssitz Mainz 
Registergericht 
Amtsgericht Mainz 
HRB 62 50 
  Aufsichtsratsvorsitzender 
Klaus Hellwig 
Vorstand 
Hermann Kiefer 
Nils Manegold 
Thomas Reitz 

  

Reply via email to