title: Newline not preserved when reading from Textarea
body: <p>My java webapp fetches content from a textarea, and e-mails the same.</p>
  
  <p>The problem I'm facing is that the newline character in the textarea message is not preserved when reading the same using </p>
  
  <pre><code>request.getParameter("message");
  </code></pre>
  
  <p>Any clues how it can be tackled?</p>
  
  <p>TIA.</p>
  
  <p><code>EDIT:</code></p>
  
  <p>The content in the textarea is:<br>
  abcd<br>
  abcd  </p>
  
  <p>CODE:   </p>
  
  <pre><code>String message = request.getParameter("message");
  
          System.out.println("index loc for message "+message+" using \\r\\n : "+message.indexOf("\r\n"));
          System.out.println("index loc for message "+message+" using \\n : "+message.indexOf("\n"));
          System.out.println("index loc for message "+message+" using \\r : "+message.indexOf("\r"));
          System.out.println("index loc for message "+message+" using \\n\\r : "+message.indexOf("\n\r"));
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <blockquote>
    <p>index loc for message asdfasdf using \r\n : -1<br>
    index loc for message asdfasdf using \n : -1<br>
    index loc for message asdfasdf using \r : -1<br>
    index loc for message asdfasdf using \n\r : -1  </p>
  </blockquote>