title: How to create svg file in jsp?
body: <p>I'm trying to create jsp page which will create a svg graphic file. Based on various examples of jsp pages and svgs i come with this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  
  &lt;%@ page language="java" contentType="image/svg+xml; charset=UTF-8;"    pageEncoding="UTF-8"%&gt;
  
  &lt;%
  response.addHeader(
          "Content-Disposition","attachment; filename=blob3" );
  %&gt;
  &lt;svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="140" width="140" viewBox="0 0 14 14"&gt;
    &lt;circle cx="7" cy="7" r="6" fill="blue" /&gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>but it is not working. it allows me to download blob3.svg file, but it is empty file.</p>
  
  <p>Can anyone could give me hint, what i'm doing wrong?</p>