Prevent accessing restricted page without login in Jsf2

后端 未结 2 1163
一整个雨季
一整个雨季 2020-12-03 02:26

I have a problem. I want to prevent a user from accessing a page without login in jsf2. When a user directly write restricted page url into browser, s/he should not see the

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 02:45

    have you tried writing a filter... you can intercept all calls check if the user has access to a page if not you can redirect the user to the login page...

提交回复
热议问题