title: How to uri encode a string in jsp?
body: <p>if I have a string "output" that equals a url:</p>
  
  <pre><code>${output} = "/testing/method/thing.do?foo=testing&amp;bar=foo"
  </code></pre>
  
  <p><strong>in the jsp,</strong> how would I convert that string into:</p>
  
  <pre><code>%2Ftesting%2Fmethod%2Fthing.do%3Ffoo%3Dtesting%26bar%3Dfoo
  </code></pre>
  
  <p>using </p>
  
  <pre><code>&lt;c:out value="${output}"/&gt;
  </code></pre>
  
  <p>?
  I need to URLEncoder.encode(url) in the c:out somehow.</p>