title: Jasper Report HTML preview showing unwanted data ( images )
body: <p>I am working on Jasper Report with Spring MVC - <a href="http://chathurangat.blogspot.in/2012/02/jasperreport-with-spring-mvc-fully.html" rel="nofollow noreferrer">I referred this example</a>. Every thing is working fine except HTML and CSV.</p>
  
  <p>This is my Template code:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report7" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e781fb26-bdb1-4341-b785-875a90e92412"&gt;
      &lt;property name="ireport.zoom" value="1.0"/&gt;
      &lt;property name="ireport.x" value="0"/&gt;
      &lt;property name="ireport.y" value="0"/&gt;
      &lt;parameter name="titlenumber" class="java.lang.String"/&gt;
      &lt;parameter name="title" class="java.lang.String"/&gt;
      &lt;parameter name="author" class="java.lang.String"/&gt;
      &lt;parameter name="edition" class="java.lang.String"/&gt;
      &lt;parameter name="publisher" class="java.lang.String"/&gt;
      &lt;parameter name="publishedyear" class="java.lang.String"/&gt;
      &lt;parameter name="noofcopies" class="java.lang.Long"/&gt;
      &lt;parameter name="organisationname" class="java.lang.String"/&gt;
      &lt;parameter name="gropwisereportname" class="java.lang.String"/&gt;
      &lt;parameter name="slno" class="java.lang.Long"/&gt;
      &lt;parameter name="noofdistincttitle" class="java.lang.Long"/&gt;
      &lt;parameter name="copies" class="java.lang.Long"/&gt;
      &lt;parameter name="totalnoofdistincttitle" class="java.lang.Long"/&gt;
      &lt;parameter name="totalnoofcopies" class="java.lang.Long"/&gt;
      &lt;field name="title" class="java.lang.String"/&gt;
      &lt;field name="author" class="java.lang.String"/&gt;
      &lt;field name="edition" class="java.lang.String"/&gt;
      &lt;field name="publisher" class="java.lang.String"/&gt;
      &lt;field name="publishedyear" class="java.lang.String"/&gt;
      &lt;field name="noofcopies" class="java.lang.Long"/&gt;
      &lt;field name="organisationname" class="java.lang.String"/&gt;
      &lt;field name="groupwisereportname" class="java.lang.String"/&gt;
      &lt;field name="titlenumber" class="java.lang.String"/&gt;
      &lt;field name="slno" class="java.lang.Long"/&gt;
      &lt;field name="noofdistincttitle" class="java.lang.Long"/&gt;
      &lt;field name="copies" class="java.lang.Long"/&gt;
      &lt;field name="totalnoofdistincttitle" class="java.lang.Long"/&gt;
      &lt;field name="totalnoofcopies" class="java.lang.Long"/&gt;
      &lt;group name="Department"&gt;
          &lt;groupExpression&gt;&lt;![CDATA[$F{groupwisereportname}]]&gt;&lt;/groupExpression&gt;
          &lt;groupHeader&gt;
              &lt;band height="51"&gt;
                  &lt;staticText&gt;
                      &lt;reportElement uuid="85e3c1cd-d52f-4711-9598-69991f424d6d" x="1" y="17" width="108" height="20"/&gt;
                      &lt;textElement&gt;
                          &lt;font size="12" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;text&gt;&lt;![CDATA[Department : ]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement uuid="f6144a0a-28a4-4167-9ccb-8d06a98b1061" x="119" y="17" width="445" height="20"/&gt;
                      &lt;textElement markup="none"&gt;
                          &lt;font size="12" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;text&gt;&lt;![CDATA[$F{groupwisereportname}]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
              &lt;/band&gt;
          &lt;/groupHeader&gt;
          &lt;groupFooter&gt;
              &lt;band height="34"&gt;
                  &lt;staticText&gt;
                      &lt;reportElement uuid="b07c4e8a-cdc8-40c5-b24c-4a784178283a" x="438" y="8" width="103" height="20"/&gt;
                      &lt;textElement markup="none"/&gt;
                      &lt;text&gt;&lt;![CDATA[$F{noofcopies}]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;line&gt;
                      &lt;reportElement uuid="3256c6db-ee6f-42e6-ba36-64e039dac413" x="1" y="0" width="555" height="1"/&gt;
                  &lt;/line&gt;
                  &lt;line&gt;
                      &lt;reportElement uuid="787435f7-1985-4f2d-95d8-1606107f423b" x="1" y="27" width="555" height="1"/&gt;
                  &lt;/line&gt;
                  &lt;staticText&gt;
                      &lt;reportElement uuid="3392c742-48bf-4af9-9a9d-563b5bf4db84" x="1" y="7" width="165" height="20"/&gt;
                      &lt;textElement&gt;
                          &lt;font size="12" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;text&gt;&lt;![CDATA[Number Of Distinct Title : ]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement uuid="1111dd28-8037-426c-a421-0d2a2913ebfe" x="327" y="7" width="104" height="20"/&gt;
                      &lt;textElement&gt;
                          &lt;font size="12" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;text&gt;&lt;![CDATA[No Of Copies :]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement uuid="1ff4e899-b6be-44f6-86eb-b3426da1d04a" x="172" y="8" width="104" height="20"/&gt;
                      &lt;textElement markup="none"/&gt;
                      &lt;text&gt;&lt;![CDATA[$F{noofdistincttitle}]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
              &lt;/band&gt;
          &lt;/groupFooter&gt;
      &lt;/group&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height="22" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="2b29cfa5-162a-44f7-b97a-9c96867bef0f" mode="Opaque" x="-1" y="0" width="555" height="20" forecolor="#333333" backcolor="#FFFFFF"/&gt;
                  &lt;textElement textAlignment="Center" markup="none"&gt;
                      &lt;font size="14" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[$F{organisationname}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/title&gt;
      &lt;columnHeader&gt;
          &lt;band height="17" splitType="Stretch"&gt;
              &lt;frame&gt;
                  &lt;reportElement uuid="6af6ec1d-6a7d-4421-b5f7-4e69fb52e90a" mode="Opaque" x="0" y="1" width="555" height="16" forecolor="#000000" backcolor="#33CCFF"/&gt;
              &lt;/frame&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="91a75deb-ed83-4f44-8efc-acc5e971f7b5" x="36" y="1" width="60" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Title No]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="bae56609-14a3-4919-bb0d-edc85acb9ac9" x="98" y="1" width="135" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Title]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="623aaa5f-2d39-4f31-bdd5-09adb6dd9ee4" x="235" y="1" width="90" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Authors]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="1018336a-d7fa-43dc-aad0-c89214f680ce" x="328" y="1" width="31" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Edn]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="23a0c55c-1daa-4601-b726-23688d229341" x="361" y="1" width="87" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Publisher]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="4bb0fbec-07e7-4e08-a55e-76a445bc29a5" x="450" y="1" width="47" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Year]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="588d37b3-1e19-4644-bfb5-74f3c71db65e" x="499" y="1" width="55" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Copies]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="9f6289db-d4a3-4d60-9cc2-ed56cb6e2be1" x="-1" y="1" width="35" height="16"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[SlNo]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="22" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="4de128bc-8717-42e6-af2e-7e2a9e311807" x="35" y="1" width="60" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{titlenumber}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="faf07beb-d19e-44a3-b3a7-2fd7d6b83f44" x="97" y="1" width="135" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{title}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="7aefa31d-a4a2-404d-a072-6c6cfc3136e2" x="234" y="1" width="90" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{author}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="84e5116f-db2e-46d2-bc04-8874c1810b65" x="326" y="1" width="31" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{edition}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="a9960c07-397e-46d6-8e43-3411ceeb9371" x="359" y="1" width="87" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{publisher}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="f5da8326-733b-4ae3-8f52-ef689fe2f76b" x="389" y="1" width="48" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{publishedyear}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="e464649d-6afc-4ad5-aad0-b8f8562951f1" x="498" y="1" width="58" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{copies}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;line&gt;
                  &lt;reportElement uuid="45d573ee-f741-4a09-be39-749e2c2c7da8" x="1" y="21" width="555" height="1" forecolor="#CCCCCC"/&gt;
              &lt;/line&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="eecddf5a-1f22-4cb7-89c5-9a94e9de366b" x="-2" y="1" width="35" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{slno}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;summary&gt;
          &lt;band height="47" splitType="Stretch"&gt;
              &lt;line&gt;
                  &lt;reportElement uuid="365a7e6d-52e2-4ab4-9787-06455b19e980" x="0" y="25" width="555" height="1"/&gt;
              &lt;/line&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="233e4ff7-3a3b-46d9-ad07-9b24b2990af0" x="313" y="26" width="126" height="20"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Total No Of Copies :]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;line&gt;
                  &lt;reportElement uuid="61066175-bd0b-4e30-8abe-4e64c2083e32" x="1" y="46" width="555" height="1"/&gt;
              &lt;/line&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="b3629b63-77a0-40cb-9c6c-780a26894808" x="163" y="27" width="122" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{totalnoofdistincttitle}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="dd38b5d3-5b1d-43b6-b89e-2e02405104cb" x="439" y="27" width="103" height="20"/&gt;
                  &lt;textElement markup="none"/&gt;
                  &lt;text&gt;&lt;![CDATA[$F{totalnoofcopies}]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="ac0976b4-c696-4cf7-a465-da04a5a3046a" x="1" y="26" width="153" height="20"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Total No OF Distinct Title : ]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p>How it looks:</p>
  
  <p><img src="https://i.stack.imgur.com/IXu2E.png" alt="enter image description here"></p>
  
  <p>If I see the preview in PDF it will come as expected: </p>
  
  <p><img src="https://i.stack.imgur.com/fRxne.png" alt="enter image description here"></p>
  
  <p>But if I see in HTML, it add some image tags itself:</p>
  
  <p><img src="https://i.stack.imgur.com/luti3.png" alt="enter image description here"></p>
  
  <p>Like this 
  <img src="https://i.stack.imgur.com/d9gPw.png" alt="enter image description here"></p>
  
  <p>I do not understand what mistake I have made.</p>
  
  <p>CSV preview looks like this:</p>
  
  <h2>,,,,,,,Wings OF FireWings ,,,,,,,,, Title,,,,Subtitle,,,,PublishedYear,,,No,,,Accesn,, ,Wings OF FireWings ,,,,,,,,,,,,,,, ,,Wings OF FireWings ,,,,V0001,,,2013,,,,Wings OF FireWings ,,,Wings OF FireWings ,,Wings OF FireWings ,,,,V0001,,,2013,,,,Wings OF FireWings ,,,Wings OF FireWings ,,Wings OF FireWings ,,,,V0001,,,2013,,,,Wings OF FireWings ,,,Wings OF FireWings ,,Wings OF FireWings ,,,,V0001,,,2013,,,,Wings OF FireWings ,,,Wings OF FireWings ,,Wings OF FireWings ,,,,V0001,,,2013,,,,Wings OF FireWings ,,,Wings OF FireWings Wings OF FireWings ,,,,,,,,,,,,,,,, ,,,Wings OF FireWings ,,Wings OF FireWings ,,,,,Wings OF FireWings ,,Wings OF FireWings ,,,Wings OF FireWings ,</h2>
  
  <p>Any help would be appreciated, and thanks.</p>