Graph generated from website displays on wrong workstation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Linda
Posts: 2
Joined: Wed Jun 23, 2004 6:38 pm
Location: Carroll County, Maryland, USA

Graph generated from website displays on wrong workstation

Post by Linda » Wed Jun 23, 2004 7:56 pm

Hi Folks,

I'm working on a UNIX/Solaris 8 workstation telnetted to a UNIX server. I developed a time-series graph using TimeSeriesDemo as my example.

The graph is always launched from a web browser using a servlet which calls the graphing program (tsd1). tsd1 is NOT a servlet. The graph is displayed in a separate window so that users can zoom, change parameters, etc.

When I run tsd1 from my workstation (using the browser), it works fine and displays a nice graph.

Here's the problem: When someone runs tsd1 from another workstation (UNIX or NT), tsd1 works fine and displays a nice graph ON MY WORKSTATION.

Has anyone had/solved this problem?

TIA,
Linda
Linda Ann Coffel
Byte By Byte Software, Inc.

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Fri Jun 25, 2004 7:44 am

Do you generate the chart on the fly or save it to file system?
Perhaps a browser cache problem?

richard_atkinson
Posts: 115
Joined: Fri Mar 14, 2003 3:13 pm
Location: London, England
Contact:

Image displaying on the wrong workstation

Post by richard_atkinson » Mon Jun 28, 2004 8:04 pm

Sounds like you have a mismatch between a web based application and a normal X-Windows style application. Better to stick on one or the other. Either have the servlet generate the chart and return it over the HTTP connection or have the other clients launch Swing applications and generate their own charts.

Currently it sound like you are using a servlet to initiate a call to your own Swing client which then sends you a chart because the DISPLAY variable is set to your IP address.

Regards,
Richard...

Locked