This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes Restrict access without authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Restrict access without authentication" Watch "Restrict access without authentication" New topic

Restrict access without authentication

Nicolás Muñoz

Joined: Nov 11, 2009
Posts: 17
Hello. I'm using Struts 1.3. I have a web page which requires the user to log in. Once the user does that, the page takes him to another page. The problem is, it is possible for someone to type the adress of the page and get in there without having to be logged on, and that's not something I want. I need to find a way to restrict access to the contents of the site without successful authentication. How can I do this with Struts? Thanks!
David Newton

Joined: Sep 29, 2008
Posts: 12617

The things I think of first include: use container-managed security, write a filter, use a custom request processor.
I agree. Here's the link:
subject: Restrict access without authentication
It's not a secret anymore!