I'm in the process of upgrading from tapestry-security 0.3.1 to 0.4.4.
Other than the two extra dependencies, I'm having problems with my
custom login form.
Comments on the mailing list said to use this to redirect to the
original page before the redirect to the login page:
SavedRequest savedRequest =
WebUtils
.getAndClearSavedRequest(requestGlobals.getHTTPServletRequest());
response.sendRedirect(savedRequest.getRequestUrl());
This no longer works now that it's storing the URL in a cookie.
Looking at LoginForm.java, I see this code that sort of works:
String requestUri = pageService.getSuccessPage();
if (!requestUri.startsWith("/")) requestUri = "/" + requestUri;
pageService.redirectToSavedRequest(requestUri);
However, the entire PageService interface is deprecated and the
comments note an indent to remove it. What's the proper way to do
this? It would be nice to have a single call to redirect on success,
or at least have getSuccessPage return a proper URL.
I'll do what LoginForm does for now, but I hate using deprecated APIs.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]