How can I make variables appear not from a new line, but into a single line?
<c:forEach items="${arr}" var="url"> ${url} </c:forEach> ...">
How can I make variables appear not from a new line, but into a single line?
<c:forEach items="${arr}" var="url"> ${url} </c:forEach> You can concatenate strings in an array and then use the value of a variable, for example:
<c:forEach items="${arr}" var="arrUrl"> <c:set var="url" value="${url}${arrUrl}"/> </c:forEach> <c:out value="${url}"/> You can remove line breaks inside the source code:
<c:forEach items="${arr}" var="url">${url}</c:forEach> Source: https://ru.stackoverflow.com/questions/565202/
All Articles