• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

popup in struts or any other way to notify?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic