即使用户知道某些页面的URL,我也想阻止访问某些页面.例如,/localhost:8080/user/home.xhtml(需要先登录)如果没有记录则重定向到/index.xhtml.
/localhost:8080/user/home.xhtml
/index.xhtml
在JSF中如何做到这一点?我在Google上读到需要过滤器,但我不知道该怎么做.
jsf authorization login jsf-2 servlet-filters
authorization ×1
jsf ×1
jsf-2 ×1
login ×1
servlet-filters ×1