This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes external program connection to web server should trigger pop up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "external program connection to web server should trigger pop up" Watch "external program connection to web server should trigger pop up" New topic
Author

external program connection to web server should trigger pop up

Joe Schaffer
Greenhorn

Joined: Mar 24, 2004
Posts: 29
Hi everybody,

I have a problem in understanding how to generate a special kind of pop up window. The pop up questions asked here before are related to clicks, or mouse movements but not to external programs.

I use tomcat as web server and the user can access servlets on it.

A mysql database in the background of the web server stores some information about the user.

If the user is logged into the system a userdependant page will be displayed. I store his session and username of the sql database temporary in a serialized final class object to identify the user (Session binding).

An external Java program is able to communicate through the Internet by using an XML-RPC server interface integrated in another servlet with the same serialized class and database to check if the user is online. If this is the case I want to trigger a pop up on the users computer if a special event on this java program happens. The pop up is not related to any mouse movement or button click of the user!

The pop up should only be displayed if an event on the program side happens!!

Thanks in advance for your help.

Greetings,

Joe
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Joe,
You can't send a request to the user browser without them doing something. You could have the user's browser periodically pool your server to see if it should create the pop-up, but the server can't initiate it.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: external program connection to web server should trigger pop up