小编bal*_*alu的帖子

如何使用JSTL在JSP中捕获变量中的当前日期和时间?

如何使用JSTL在JSP中捕获变量中的当前日期和时间?

<c:set property="currentTime" value="${System.CurrentTimeMillis()}"/> 
Run Code Online (Sandbox Code Playgroud)

我在我的JSP中使用上面的代码但它抛出了一个错误.

org.apache.jasper.JasperException: The function currentTimeMillis must be used with a prefix when default namespace is not specified.
Run Code Online (Sandbox Code Playgroud)

jsp jstl

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

jsp ×1

jstl ×1