• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

authentication before accessing resources

 
hrishih punekar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java web how to make login of user compulsory before accessing specific pages / resources
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic