jsf-facelets 转发绕过 servlet 过滤器

发布于 2024-08-03 09:51:10 字数 250 浏览 11 评论 0原文

我玩了一周的 appfuse-jsf-basic 但我注意到了一些事情。如果我不将标签添加到导航规则中,我可以查看需要具有 ROLE_USER 权限的 ROLE_ADMIN 的页面。然后我了解到 Facelets 不使用“servlet.forward”方法进行转发,因此过滤器不会在导航规则中捕获 Facelets 转发。有没有其他方法可以使用具有无重定向导航规则和 acegi(又名 spring security)的facelets。我搜索了所有论坛,但找不到解决方案。先感谢您!

For one week, i am playing with appfuse-jsf-basic but i noticed something. If i do not put tag to my navigation rules, i can view a page that require ROLE_ADMIN with ROLE_USER rights. Then i understand something that facelets doesnt use "servlet.forward" methods for forwarding so filters does not catch facelets forwards in navigation rules. Is there any other way to use facelets with no-redirect navigation rules and acegi(aka spring security).I searched all the forums but could not find a solution. Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零時差 2024-08-10 09:51:10

您可以看看这个库:http://dominikdorn.com/facelets/

You can have a look at this library: http://dominikdorn.com/facelets/.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文