3 Replies Latest reply on Aug 16, 2006 11:45 AM by James McLean

    Looking for an example

    Rob Newbie

      I have written some portlets that grab information like ASPUsed and CPU Usage from our AS400 systems I would like to chart these in a portlet into pie charts and such. Is there a good example portlet out there I could learn from.

      Thanks,

        • 1. Re: Looking for an example
          James McLean Newbie

          I don't know of what you're looking for in an example per se; there are plenty of examples of portlets out there, you just have to look around. But, if you want to create charts using Java, one of the best ways is to use JFreeChart (http://www.jfree.org/jfreechart/). Hope this helps!

          • 2. Re: Looking for an example
            Rob Newbie

            Thats true I am trying to use jfrechart for this project. I guess what I am looking for is something like the HellowWorld portlet example that I can see how the code works. I am new to java and really just learning how it all works. I come from the Sys Admin side so I am not the greatest code writer.

            • 3. Re: Looking for an example
              James McLean Newbie

               

              "rbreault" wrote:
              Thats true I am trying to use jfrechart for this project. I guess what I am looking for is something like the HellowWorld portlet example that I can see how the code works. I am new to java and really just learning how it all works. I come from the Sys Admin side so I am not the greatest code writer.

              Since HTML requires that images reference a source, you're probably going to have to write an HTTP servlet to create the charts, and then reference that in your JSPs. Also, I would highly recommend choosing a presentation layer technology like Struts or JSF, if you haven't already done so.