aspose file tools*
The moose likes Struts and the fly likes popup in struts or any other way to notify? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "popup in struts or any other way to notify?" Watch "popup in struts or any other way to notify?" New topic
Author

popup in struts or any other way to notify?

Dani Acedos
Greenhorn

Joined: Apr 18, 2011
Posts: 4
Hi,

First, My name is Dani and I work as Java developer in Spain,

I need advice to implement a functionality I want to include into my application.

The application is a store where sellers can insert offers and I want clients to be notified by some way about the new offers. The favorite way is through popups. When the seller inserts the offer, all the clients who are online in the store receive a popup window to notify. Another choice could be by using Struts Cron, and read the new offers every minute (period is not important, I can read them for each 10 minutes) and open the popup to show all the offers together.

I am facing issues because I do not know how to do to notify the clients if they don't interact with the store, for instance, they opened the website but they do not click and they just stay in the welcome page. Another problem I cannot solve is the way to open a popup from an action. I read in other post that "I can use JavaScript in my JSP to trigger a popup, and I can write JavaScript code via Struts into the JSP before it is returned to the client browser" but I do not know how to do that.

Any help is useful, and any other idea about the way to develop the functionality will be accepted.

Thank you!
 
jQuery in Action, 2nd edition
 
subject: popup in struts or any other way to notify?