未终止的& lt; c:set标记-JSTL [英] Unterminated <c:set tag - JSTL

查看:722
本文介绍了未终止的& lt; c:set标记-JSTL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误消息"Unterminated< c:set标签-JSTL"

I am getting the error "Unterminated <c:set tag - JSTL"

代码: <c:set var="p" value="${entity.metadata().type().name()}${entity.metadata().type().version().toString().replace(".", "_")}"> </c:set>

我也尝试过-<c:set var="p" value="${entity.metadata().type().name()}${entity.metadata().type().version().toString().replace(".", "_")}"/>.

推荐答案

使用引号的方式会使解析器感到困惑.一旦遇到第二个",它将假定它是标记的结尾,因此是例外. 试试这个:<c:set var="p" value="${entity.metadata().type().name()}${entity.metadata().type().version().toString().replace('.', '_')}">.

The way you use quotation marks is confusing for the parser. Once it meets the second ", it assumes it to be the end of the tag, hence the exception. Try this: <c:set var="p" value="${entity.metadata().type().name()}${entity.metadata().type().version().toString().replace('.', '_')}">.

这篇关于未终止的&amp; lt; c:set标记-JSTL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆