未终止的& lt; c:set标记-JSTL [英] Unterminated <c:set tag - 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('.', '_')}">
.
这篇关于未终止的& lt; c:set标记-JSTL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!