In the response my server gives to the client, I am noticing quite a bit of whitespace and newlines. The response body seems to be sending a newline for every line of parsed JSP. I am just curious if this is a problem someone has already written a bean for? Is this something I even need to worry about?
Example JSP:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="java.util.Date"%>
<%@page import="java.util.GregorianCalendar"%>
<%@page import="java.util.Properties"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.io.IOException"%>
<head>
<title>My Page!</title>
<% String message = "Hello World!"; %>
</head>
<body>
<div><%=message%></div>
</body>
</html>
Example HTML Response:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- THESE ARE BLANK NEWLINES ... -->
<head>
<title>My Page!</title>
</head>
<body>
<div>Hello World!</div>
</body>
</html>