• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Starting a GUI from a web application

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic