加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Java – JSTL标签中的Spring安全开关案例

发布时间:2020-12-15 01:39:35 所属栏目:大数据 来源:网络整理
导读:有没有办法转换窗体的jsp代码 到另一种形式,类似于以下(不起作用)? 更确切地说,有没有办法用JSTL标签替换这个Spring Security taglib功能? 最佳答案 您可以使用 的var属性.标签将创建: A page scoped variable into which the boolean result of the tag

有没有办法转换窗体的jsp代码

到另一种形式,类似于以下(不起作用)?

更确切地说,有没有办法用JSTL标签替换这个Spring Security taglib功能?

最佳答案
您可以使用< security:authorize />的var属性.标签将创建:

A page scoped variable into which the boolean result of the tag
evaluation will be written,allowing the same condition to be reused
subsequently in the page without re-evaluation.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读