File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

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: 9043

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]
It is sorta covered in the JavaRanch Style Guide.
subject: create server side alert in struts 2