jstl - JSTL标签处理 EL 算术运算或只是吐出字符串?
问题描述
我在 jsp 中有一个 EL 表达式 ${4+(param.a)*4}。
将其更改为以下代码行会先进行算术运算,然后将结果作为字符串吐出,还是先将整个表达式评估为字符串?
<c:out value='${4+(param.a)*4}'/>
我想先进行算术运算,然后将结果输出为字符串。
解决方案
Arithmetic operation first and gives you the result which will be printed in html element.
推荐阅读
- flutter - 为什么我不能在这里使用儿童数组?扑
- c++ - 特征矩阵的“模板参数推导/替换失败”
- vue.js - vue.js 框架中的分页
- google-cloud-platform - gcloud 命令输出格式以在另一个 gcloud 命令中使用结果
- python - 将新列插入数据框中会给出“ValueError:值的长度 (4) 与索引的长度 (6) 不匹配”
- swift - 字体大小可调的 UITextView
- c++ - 使用 libjpeg 在 C++ 中进行 JPEG 图像旋转
- python - python从远程文本文件读取并运行命令
- kotlin - 将 Kotlin 协程与 Spring Kafka 侦听器一起使用
- r - R中的randomForst模型中的ntree是什么意思?