RE: Best way to forward to login,then re-forward to originally requested resource?

2002-05-29 Thread Alex Paransky
Rick, I recently had a similar problem. Using J2EE security, I was not sure how to detect a user login. After all, a user can go into ANY protected page, and I did not want to put the same tag in to EVERY single .JSP page that was protected. The solution, at least in my case, came in a form a

RE: Best way to forward to login, then re-forward to originally requested resource?

2002-05-29 Thread Tero P Paananen
Well, let's say for the sake of argument, that it's not authentication we're talking about. Let's say, instead, that in order to perform some Action B, some other Action A must be done first. However, doing A does not necessarily mean you'll do B next. What's the best way to remember

Re: Best way to forward to login, then re-forward to originally requested resource?

2002-05-29 Thread Charles Brault
This question seems to come up frequently, probably should be in a FAQ. Using Servlet Filters is one approach. If you are using Struts 1.1 (in 1.0.2 it's slightly different), and want to use a Struts approach, try the following. I have an application that requires everyone to log in and

RE: Best way to forward to login,then re-forward to originally requested resource?

2002-05-28 Thread Alex Paransky
Why not use J2EE/WEB standard container authentication? It will do what you want. In fact, it was designed to do what you want, which is called Lazy, or just in time, authentication. The user can surf your page, however, when he links to a protected item, a login page (of your choosing) will