Jfree Chart Frame Close Button
-
- Posts: 12
- Joined: Tue Nov 07, 2006 6:53 am
- Contact:
Jfree Chart Frame Close Button
Hi, i am developing a jsp using struts framework. After submitting the form and going to the action class, i instantiate the jfree chart class that i have created. Now, the chart pops up in a new frame which is great but as soon as the user closes this frame using the cross on the right hand corner of the title bar, the server shuts down ! Can someone please tell me why this is happening and how I can prevent this from happening ?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I can't help you with that, sorry. I don't do much work with web apps (lucky me!).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 12
- Joined: Tue Nov 07, 2006 6:53 am
- Contact:
Your WebApplication opens a local Swing-Frame?
I guess your Servlet-Container runs on the same machine as your browser. Imagine the fun your remote users (those without physical access to the server) have, once they realize that their action opened up a Frame on a server that is maybe a few hundred miles away. How should *they* close the frame?
(And you're using the 'ApplicationFrame' directly from the ChartDemos. Nice, but that one calls System.exit() (as it is there for DEMO purposes, not for the real world application). Your funny programming killed the server
It would be cool, if you buy a book about the basics on how the web works, and after reading it, reconsider your application's design
Regards,
Thomas
I guess your Servlet-Container runs on the same machine as your browser. Imagine the fun your remote users (those without physical access to the server) have, once they realize that their action opened up a Frame on a server that is maybe a few hundred miles away. How should *they* close the frame?
(And you're using the 'ApplicationFrame' directly from the ChartDemos. Nice, but that one calls System.exit() (as it is there for DEMO purposes, not for the real world application). Your funny programming killed the server

It would be cool, if you buy a book about the basics on how the web works, and after reading it, reconsider your application's design

Regards,
Thomas
-
- Posts: 12
- Joined: Tue Nov 07, 2006 6:53 am
- Contact:
-
- Posts: 12
- Joined: Tue Nov 07, 2006 6:53 am
- Contact: