Results 1 to 3 of 3

Thread: Spring + Jfreechart

  1. #1
    Join Date
    Mar 2008
    Posts
    2

    Default Spring + Jfreechart

    Hi all,

    I'm trying to represent a chart generated with JFreechart into my jsp but I have a terrible doubt about it.

    I return de chart into my mav but I donīt know how to interpretated it into the following jsp. I've been reading something about it and I've seen that I can use cewolf or make directly an image with the chart generated. I don't want to generate an static image.

    Somebody can give an example to represent it into my jsp withot creating an static image??

    Thank you!

  2. #2
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    18

    Smile

    If you are using Spring Web MVC

    you can implement in this way.

    1. create an AbstractPDFView as a ModelView : re org.springframework.web.servlet.view.document.Abst ractPDFView;
    2. build your document inside the method of buildPDFDocument. (iText PDF document).
    but you can change the model or content by adding your document ( jfreeChart image) and provide your own logic and display.

    Hope this help!

    Thanks
    ORLANDO

  3. #3
    Join Date
    Mar 2008
    Posts
    2

    Default

    Well, maybe I haven't explained at all.

    I have generate my chart into my controller but, now, I don't know how to return it into the mav and how to interpretaded it into my JSP.

    It could be more than one user into the web so, I think, generate a jpg for each people if can access currently to the same funcionality, it's not a good option.

    Do you have an example about how I can do it???

    Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •