Skip navigation links

Package org.takes.facets.previous

Previous.

See: Description

Package org.takes.facets.previous Description

Previous.

These classes may be useful when you want to redirect your user to some location and remember what he/she wanted to see before. This is especially useful during login. When the user is trying to open some page, where access credentials are required, you throw RsForward to the home page, with this class inside, with the original URL:

 if (not_logged_id) {
   throw new RsForward(
     new RsWithPrevious(
       new RsFlash("You must be logged in!")
     )
   );
 }

Then, you decorate your application with TkPrevious and that's it.

Since:
0.10
Skip navigation links

Copyright © 2015–2019 Take. All rights reserved.