【发布时间】:2022-01-30 06:50:50
【问题描述】:
这是我的 jstl 版本
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
我想像在 Java 中一样从 double 转换为 int。
${(int)(Math.toDegrees(city.latitude))}
但我抓住了
[javax.el.ELException: Failed to parse the expression [${(int)(Math.toDegrees(city.latitude))}]] with root cause
【问题讨论】: