• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting a GUI from a web application

 
Alfred Thomas
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All - I have the following problem that I hope someone can help me with. I have written a web aplication that is used to update the state of objects. These objects are graphical objects and are displayed in a GUI java application. Whenever the state is changed from the web application, the GUI should update and reflect the changes.
I have tried to start the GUI when the servlet initializes, but then it is not visible although the log file shows that it did start.
Can anyone please point me in the right direction?

Regards
Alfred
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, welcome to the ranch!

Sounds like you're not entirely clear on where all the code runs. Servlets run on the server, so if you start a GUI program from a servlet it will run on the server. Users on PCs using the web app won't be able to see that. I'm not sure how you define "start" when you run the GUI program, but I think somebody logged on the server won't see the GUI either.

Who do you want to show the GUI to? If the answer is the end user your best choices is probably to write the GUI in an applet. That is Java code that displays its GUI inside the user's browser. Another option might be to generate an image (JPG or GIF file) that you could show in the browser like any other image.

Would those things solve the right problem?
[ April 05, 2006: Message edited by: Stan James ]
 
Alfred Thomas
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stan - Yes the GUI IS supposed to display on the server. Other applications will update the state of the Objects being displayed, but the actual GUI should display on the server and not in a client browser. Im trying JMS now, but having difficulty with that too

Thanks for your response
Alfred
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic