File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!