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,082,665
  • 372
  • 3,610
  • 3,555
Pradeep Neo
  • 161
  • 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
  • 237,923
  • 42
  • 401
  • 438