aspose file tools*
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Returning to The Page Triggering Login