Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

popup in struts or any other way to notify?

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!
A day job? In an office? My worst nightmare! Comfort me tiny ad!
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic