This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes Using form based authentication and Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using form based authentication and Struts" Watch "Using form based authentication and Struts" New topic

Using form based authentication and Struts

Babis Routis

Joined: Dec 15, 2002
Posts: 1
How can I use the standard form based authentication in a struts application?
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 567
form based authentication is not part of struts. It's a container-specific functionality. Tomcat for instance can be configured to use form-based authentication, with which it will redirect requests to your login form if it doesn't recognise the request as part of an authenticated session.
Doesn't matter if the request is for the struts servlet or an error - it depends on how you configure the authentication options in your appserver.

I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
I agree. Here's the link:
subject: Using form based authentication and Struts