Ulf Dittmer wrote:Not really, unless you want to (and can) use WebSockets. But I don't agree with Bear's statement that sockets are needed - FB and Gmail manage to do it using nothing but HTTP and JavaScript, too.
Bear Bibeault wrote:Then it won't be interactive chat like gmail or Facebook.
Lakshman Subramanya wrote:Hello,
I use Eclipse (kepler version, with JDK 7) on MacBook Pro (Lion)
I want to overwrite a line printed on my console. I used "\r" for that. I was expecting the cursor to go to the beginning of the line. Instead, it is going to the next line.
Could some one tell me how to rectify this problem ?
Code:
------
System.out.print("Superman\rSober");
Expected Output:
----------------
Soberman
Actual Output:
----------------
Superman
Sober
Any help appreciated.
E Armitage wrote:Then you can create an HTTPSessionListener and add all started sessions to a collection. You can then iterate all of them to invalidate them when you want to.
E Armitage wrote:You can call SessionMap.invalidate http://struts.apache.org/release/2.0.x/struts2-core/apidocs/org/apache/struts2/dispatcher/SessionMap.html#invalidate()