Is there a way to make jsp communicate with an applet

Hi all,

I've saw lot of thread about JSP communication with Applet and it seems that it is not an easy way to make both communicate together.

I'm developping a web application which should display chart (simple bar, pie,...). It's easy to generate an HTML bar chart thanks to a bean, but how can I do it for a pie charts (I need awt or swing).

The specifications of my problem are the follow :

I have to loop into a resultset (coming from an Oracle db) in order to sort value. Then with this value I want to build a Pie chart (so it's dynamic).

Apparently the best way to create pie charts is thanks to an applet, but how can i make them communicate together.

Where should i place my applet,...

I'm using Tomcat.

Thanks a lot to all kind of help.

Just a last thing i don't want to take a third part tool or commercial solutions.

Regards

STF

[933 byte] By [stfohr] at [2007-9-26 1:59:14]
# 1

Hi

About the applet - anyway you will use it. Is it OK for you it to request values it needs from your jsp? It would be the easiest way I think, and you could place the applet source in the same place as its HTML page.

If data is static, your jsp could generate appropriate tags, and the applet still could be deployed whereever you want: for example in the root dir, with your index.html.

But I believe that the best way is to use SVG (humble opinion). It should save much bandwith and troubles once you make it. Your client still may have to download a plug-in, but it could not be so bad.

At least, why not generating the image on the server side?

HtH

cheffo at 2007-6-29 3:18:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi againAbout svg:visit http://www.adobe.com/svg/demos/chart.html
cheffo at 2007-6-29 3:18:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
It is more compatible to display the pie chart on the server side. There is no real reason to use an applet for it unless you are updating the data second by second.
Breakfast at 2007-6-29 3:18:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...