Announcement Announcement Module
No announcement yet.
Does Spring have a Callback function (like Tapestry)? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does Spring have a Callback function (like Tapestry)?


    I never worked with Tapestry but I found in the documentation that they have something called Callback, which you can use to go back to the page that requested the current page. This would make the pages very re-usable in many situations.
    Is something like this possible in Spring?

    (In the example of Tapesty: you to page that is secure, you get redirected to the login, after that the login automatically redirects to the page you where trying to access)

  • #2
    I implement such behaviour programatically:
    I use a filter that check if the requested resource is secured and user is not loged in. In such case, the user is redirected to the login page and a new parameter is added into the request that hold the path to the secured resource.
    When the user login succefuly, he is redirected to the resource he requested originaly.
    The path to the secured request shoud of course survive multiple login tries.