Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3210

JFreeChart plugin not setting correct mime type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.6
    • 2.1.8
    • Plugin - JFreeChart
    • None

    Description

      Using the jfreechart plugin. You can select PNG or JPEG image - but the HTML response sends HTML content type

      e.g. in my app

      Content-Type: text/html; charset=iso-8859-1

      This works if you use an <img src="..:"/> tag - but a direct call to the image URL returns the image as text to the browser.

      (BTW - not sure why there are several plugin components in this JIRA but not one for the chart plugin or for plugin: other)

      Attachments

        1. ChartResult.java.diff
          5 kB
          Mike Baranski
        2. cr.diff
          6 kB
          Mike Baranski

        Activity

          People

            Unassigned Unassigned
            chrissearle Chris Searle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: