问题描述
<%@pagelanguage="java"import="java.util.*"pageEncoding="utf-8"%><%@taglibprefix="s"uri="/struts-tags"%><%@taglibprefix="sx"uri="/struts-dojo-tags"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><sx:headparseContent="true"/><head><basehref="<%=basePath%>"><base><title>divTestpage</title><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"><metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="cache-control"content="no-cache"></head><body><s:urlid="myGetDate"value="getDate.do"></s:url>1...只在页面加载时获取数据<sx:divtheme="ajax"id="noUpdateFreq"href="%{myGetDate}"executeScripts="true"></sx:div><hr>2...每两秒后页面加更新获取数据<sx:divtheme="ajax"id="UpdateFreq"href="%{myGetDate}"updateFreq="2000"></sx:div><hr>3...每六秒后更新一次数据,但是延迟2s<sx:divtheme="ajax"id="delay"href="%{myGetDate}"updateFreq="6000"delay="2000"></sx:div></body></html>