2

I need a help on login authorization. When I use a direct link of one of my web page without providing credentials (without logging in) then I need to be redirected to the login page for proper login with login credentials. How can I go about this with JSP?

BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513
Pradeep Neo
  • 141
  • 1
  • 2
  • 13

1 Answers1

2
  • Create a filter

  • Check for some session attribute . if present consider logged in user , otherwise response.sendRedirect("url to login page");

jmj
  • 232,312
  • 42
  • 391
  • 431