Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GIF encoding in JSP  RSS feed

 
Dave Foley
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create a GIF format graphic in the form of a pie chart. I have a number of questions (some of which I'm sure might be covered in other forums on this site).
1. Can I use JSP rather than a Servlet to make these GIFs.
2. Which GIF encoder should I use and where can I download it from.
3. Is there an easy way of creating pie charts in Java by just passing in arc values?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why on earth would you want to do that via a JSP rather than a servlet? JSP's by nature are a text-centric templating mechanism, whereas servlets are geared to delivery of any content type.
curious,
bear
 
sampy jagan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why go for Gif parsing & etc when there are so many open source chart utilities, which apart from generating pie, bar & bla bla bla.. charts, have much more features like zooming, printing, saving & etc.
Have a look at the article :
http://www.javaworld.com/javaworld/jw-12-2002/jw-1227-opensourceprofile.html
You can download one from
http://www.object-refinery.com/jfreechart
Regards
jagan
 
Dave Foley
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I know using a JSP over a Servlet is a bit strange but its because my project will be put on a college server where there was/is an issue over Servlets working. The JSPs work fine though so I would prefer to do the GIF drawing and encoding like that if its possible.
Secondly I can't use any packages because its part of my project.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!