I am getting the error "Unterminated <c:set tag - JSTL"
Code:
<c:set var="p" value="${entity.metadata().type().name()}${entity.metadata().type().version().toString().replace(".", "_")}"> </c:set>
I tried -
<c:set var="p" value="${entity.metadata().type().name()}${entity.metadata().type().version().toString().replace(".", "_")}"/>
too.
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('.', '_')}">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.