Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

popup in struts or any other way to notify?  RSS feed

Dani Acedos
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!