wood burning stoves 2.0*
The moose likes Security and the fly likes authentication before accessing resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "authentication before accessing resources" Watch "authentication before accessing resources" New topic
Author

authentication before accessing resources

hrishih punekar
Greenhorn

Joined: Jan 08, 2013
Posts: 13
In java web how to make login of user compulsory before accessing specific pages / resources
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 958
    
  10

A very simple approach would be to place a flag of some sort in his session when a user logs on. One could then write a filter which checks for the flag and forwards the request to the desired page only if present and an error page if not.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: authentication before accessing resources
 
Similar Threads
Resource Reference problem
one more confusion over bean things
Filters - could not understand
Doubt in Security contraints
Container based authentication