This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes GWT and the fly likes Send information to client, which session is over Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Send information to client, which session is over" Watch "Send information to client, which session is over" New topic
Author

Send information to client, which session is over

Kakaja Razinica
Greenhorn

Joined: Oct 31, 2012
Posts: 1
Hi,can you help me with this situation.
On the servlet I am closing one of the sessions ( sessionName.close() ) if some condition appears to be true. No problems with that. But I also would like to send message to client with information, why this connection is lost. Now after " sessionName.close() " client gets '500 The call failed on the server; see server log for details' and detailed information is in server.log as it should be. But how to implement pop-up message which will show "Connection is lost due to THIS SPECIFIC situation"? It seems that "caught" is getting only this 500th error.
 
 
subject: Send information to client, which session is over