File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Returning to The Page Triggering Login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Returning to The Page Triggering Login " Watch "Returning to The Page Triggering Login " New topic

Returning to The Page Triggering Login

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
When using declarative security of web container with FORM authentication type, then requesting a protected page will cause my login FORM automatically be displayed by the container. Upon successful login, the container will AUTOMATICALLY return me to the page triggering the login. That is a good feature I want to keep.

But, in Struts, how do we achieve the automatic returning to the triggering page effect?
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Form-based authentication works the same with or without Struts. You will not need to make any changes.

A good workman is known by his tools.
I agree. Here's the link:
subject: Returning to The Page Triggering Login
It's not a secret anymore!