PDA

View Full Version : Does Spring have a Callback function (like Tapestry)?



fester
Aug 24th, 2004, 01:39 AM
Hi,

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)

irbouho
Aug 24th, 2004, 08:17 AM
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.