title: HTML get the value of an image field and use that value as a src for an image field
body: <p>I have a HTML input field like this</p>
  
  <pre><code>&lt;input type="text" id="Bild"/&gt;  
  </code></pre>
  
  <p>I want to get the value of the input field and store it in a String in my JSP page, something like this</p>
  
  <pre><code>&lt;%
  String theString= &lt;input type="text" id="Bild"/&gt;
  %&gt;
  </code></pre>
  
  <p>After that I want to use the string to as a source for my image field, like this</p>
  
  <pre><code>&lt;img src= &lt;%= theString %&gt; &gt;
  </code></pre>
  
  <p>I have no clue how to do this, and I've been staring at the screen for two hours not getting my head straight. How can I get the value of the input field to use for my image source? </p>
  
  <p>I'm new to JavaScript so if I have to use this, please be very descriptive. Thanks.</p>