You could also consider using container managed security, which handles this use case transparently, or one of a number of existing authentication frameworks (e.g. Spring Security) which can also take care of it.

Basically, the exact solution depends on your requirements, particularly with respect to authentication.

L.

Jim Cushing wrote:
It's been a while since I've used Struts 1.x, but back in the day, I did implement this type of functionality. Basically, the app would redirect to the login action, with the destination what the user tried to access) as an encoded parameter in the URL. Something like "/login.do?destination=http://...";. The login action would look for the "destination" parameter, and send a redirect to that URL if present.

I don't have specific code for you (again, it's been a while since I've used Struts 1.x), but that gives you an outline of what you'd need to do.

On Oct 15, 2007, at 12:47 PM, Viplav Kallepu wrote:

Hi all,

I am using struts 1.3.8. I was trying bookmarking functionality out of
curiosity.(User will bookmark a page then if he clicks that link he should be informed to login which is the entry point into application and then he should be forwarded to the page he bookmarked) . I wish to do it even when
session is expired. Any one who achieved this functionality before please
help me in knowing the solution. I did google but I wasn't able to find any thing useful. If you can give me any tutorial kind of thing that would be a
great help.

--
Regards
Viplav Kallepu


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to