There is a good way to trim spaces created by JSP without resorting to the following methods:
- trimSpaces jasper: directive can ruin your layout by placing significant spaces where you want.
- surrounding areas that you want to crop using JSP comments by commenting on spaces. it makes JSP harder to edit and looks awful
I'd love to know if anyone knows a better way to selectively crop spaces in JSP
edit : now I am doing all my tags on one, for example:
<c:forEach var="date" items="${model.list}"><%-- --%><c:set var="dateStr"><ct:dateFormat date="${date.startDate}"/></c:set><%-- --%><option value="${dateStr}">${dateStr}</option><%-- --%></c:forEach>
source share