当前位置:网站首页>EL表达式
EL表达式
2022-08-09 23:05:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
1、语法结构
${expression}
2、[ ]与.运算符
EL 提供“.“和“[ ]“两种运算符来存取数据。
当要存取的属性名称中包含一些特殊字符,如 . 或 – 等并非字母或数字的符号,就一定要使用“[ ]“。例如:
${ user. My-Name}应当改为${user[“My-Name”]}
如果要动态取值时,就可以用“[ ]“来做,而“.“无法做到动态取值。例如:
${sessionScope.user[data]}中data 是一个变量
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/105702.html原文链接:https://javaforall.cn
边栏推荐
- In-depth understanding of multithreading (Part 1)
- 蔚来杯2022牛客暑期多校训练营7 CFGJ
- CAD 绘制圆角处理
- 直播平台怎么搭建,原生js实现编辑器撤消/恢复功能
- CAD 截断线段
- 用哈希简单封装unordered_map和unordered_set
- 【集训DAY3】石油储备计划【树形DP】
- Has your phone ever been monitored?
- Description of AirFlow
- Golden Warehouse Database KingbaseGIS User Manual (6.5. Geometry Object Editing Function)
猜你喜欢
随机推荐
ES6 从入门到精通 # 13:数组的扩展方法二
Service Discovery @EnableDiscoveryClient
AUTOCAD——形位公差如何标注、CAD打断于点的操作
分布式数据库难题(三):数据一致性
第十二,十三章 mysql数据类型,视图的课后练习
Comprehensive analysis of FPGA basics
LiveData : Transformations.map and Transformations.switchMap usage
【集训DAY3】挖金矿【二分答案】
上交所实时行情文件汇总
【集训DAY4】矩形【线段树】
Qt 之 QDateEdit 和 QTimeEdit
【哲理】事教人
软考 --- 软件工程(7)软件项目管理(下)
Live Preview | ICML 2022 11 first-author scholars share online neural network, graph learning and other cutting-edge research
[Cloud Native] This article explains how to add Tencent Crane to Kubevela addon
工程 (七) ——PolarSeg点云语义分割
【诗歌】爱你就像爱生命
Travel with Shengteng: See all the AI attractions in Jinling City in one day
Eureka protects itself
Sqlserver restricts the ip under which accounts can access the database