title: In jsp a request parameter (a string value with white spaces)displayed only upto the first whitespace in text box
body: <pre><code>&lt;input type="text" name="designation" value=&lt;%=request.getParameter("designation")%&gt; &gt;&lt;/input&gt;
  </code></pre>
  
  <p>In this JSP, I've send request parameters from an another JSP page via javascript using window.location.replace() function.</p>
  
  <p>I want to display that request parameter in this jsp page in a text-box.</p>
  
  <p>But its showing only a part of the string up to the first white-space only. remaining string is got trimmed.</p>
  
  <p>What might be the cause of this problem?</p>
  
  <p>e.g. if designation="software engineer" then it is displaying in the text box only "software", and not " "(space) and "engineer"</p>