title: import image with Javascript to jsp
body: <p>On my JSP I was using: </p>
  
  <pre><code>&lt;img id="sharkgraphic" src="&lt;c:url value="/images/fcs1.svg"&gt;&lt;/c:url&gt;"/&gt;
  </code></pre>
  
  <p>otherwise the browser could not find the svg file. Now I want to be able to set the src in javascript. </p>
  
  <p>I tried using:</p>
  
  <pre><code>      var sharkurl = require("../images/fcs1.svg");
        $( "#sharkgraphic").attr("src",sharkurl);
  </code></pre>
  
  <p>How would I properly set the source of that img ? </p>