Collection<ScriptSession> sessions = new HashSet<ScriptSession>();
sessions.addAll(ServerContextFactory.get(request.getSession().getServletContext())
.getScriptSessionsByPage("/fly-web/ind.jsp"));
for (ScriptSession session1 : sessions) {
ScriptBuffer sb = new ScriptBuffer();
sb.appendScript("showMessage({msg: '").appendScript(msg).appendScript("'})");
System.out.println(sb.toString());
session.addScript(sb);
}
Util util = new Util(session);