<script type="text/javascript">
setInterval("Push()",1000*60);
function Push() {
$.
ajax({
type: "POST",
url: encodeURI("crmMaintenance/crmAirpolicyAction-takeAllMonitor.action"),
success: function(data) {
$('#context').text(data);
}
});}
</script>
public void takeAllMonitor() {
try {
HttpServletResponse response = ServletActionContext.getResponse();
PrintWriter out;
out = response.getWriter();
response.setCharacterEncoding("utf-8");
//...插入业务逻辑
out.
print("Synchronous..." );
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}