title: How to display String variables recieved from a servlet into a form text field of JSP
body: <p>I have created a servlet that passes a string variable strname to a JSP page.
  The JSP recieves it into a variable "strname" using</p>
  
  <pre><code>request.getAttribute("strname") 
  </code></pre>
  
  <p>Now I want to display this inside the text field of a form</p>
  
  <pre><code> &lt;form action="LogoutServlet" method="post"&gt;
              &lt;% String strname =(String)request.getAttribute("uname");%&gt; 
              Username:&lt;input type="text" name="username" value="${username}"/&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>but it is displaying "username" int the text field.
  How can I display the strname var in the text ??
  Please Help</p>