title: How to pass values from client side to server side?
body: <p>I got a situation to transfer values from jsp to servlet's action class. Previously we did it using</p>
  
  <pre><code>&lt;input type="hidden" id="name" value="manoj" /&gt;
  </code></pre>
  
  <p>we take this value in action class by <code>request.getParameter("name")</code>. But now we couldn't pass value like</p>
  
  <pre><code>"Hi\n
   i am\n 
   Manoj". 
  </code></pre>
  
  <p>Since it has new line included in the string we couldn't take it like this to action.
  So how I can take value like this to action or is there any way other than hidden input?</p>
  
  <p>Thanks .</p>