Meaningless Drivel is fun!
The moose likes Struts and the fly likes create server side alert in struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "create server side alert in struts 2" Watch "create server side alert in struts 2" New topic

create server side alert in struts 2

lahiru pushpakumara

Joined: Jan 08, 2012
Posts: 5
i'm developing struts 2 web application.

i want to give alert from server side. but i don't know how to create a alert and how to pass it to the application from action class.

if any one knows about it, please give me a solution.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Create a dummy jsp file to display the message.

ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

You want to alert the client when an event happens on the server? The only way to do that is to have the client keep polling the server.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: create server side alert in struts 2
It's not a secret anymore!