is there a good way to trim whitespaces generated by JSPs without resorting to the following techniques:
- trimSpaces jasper directive: may ruin your layout by eating significant spaces where you want them
- surrounding areas you want to trim with JSP comments, commenting out the spaces. this makes the JSP harder to edit and looks horrible
Id like to know if anyone knows a better way to selectively trim spaces in JSPs
edit: what i do now is put all my tags on one like like this:
<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>