I have one line of html in the form on a JSP page, for example:
<c:forEach var="entry" items="${set}"> <input type="checkbox" name="thing" value="${entry.key} ${entry.value}"> </c:forEach>
However, the space between the key and the value of ${entry.key} ${entry.value} is lost when the form is ${entry.key} ${entry.value} . I tried using \ before , in this case, everything \ and still present when shipping.
Java EL doesn't seem to preserve isolated spaces, right? If so, is there a valid workaround?
EDIT: This is so stupid that I am very grateful to Cthulhu. But I still don't understand the behavior after adding \ . Why should this show space?
source share