This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "create server side alert in struts 2" Watch "create server side alert in struts 2" New topic
Author

create server side alert in struts 2

lahiru pushpakumara
Greenhorn

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
Bartender

Joined: Oct 29, 2001
Posts: 8873
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: create server side alert in struts 2