title: How do you do a line break in a Servlet response
body: <p>In my Servlet response, I would like to perform a line break for each println call.  Currently the response text shows up all on one line (i.e. "first line second line").  I have experimented with "\n" and setting the setContentType to "text/html" with &lt;br/&gt; to no avail.  Please advise.</p>
  
  <p><b>Here is my test code:</b><br/></p>
  
  <p>protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br/>
  &emsp;response.setContentType("text/plain;charset=UTF-8");<br/>
  &emsp;PrintWriter pw = response.getWriter();<br/>
  &emsp;pw.println("first line");<br/>
  &emsp;pw.println("second line");<br/>
  }  
  </p>