I am new in
Struts 2.0
I tried to use struts 2.0 tag <s:div ( ajax ) to refresh Table contains
I can able fetch data from server after each 2 sec But its gives me flickering effect to table
So any one can tell me how to avoid this flickering effect on table
please go through code
Input:
<s:url id="ajaxTest" value="/TEST/DataRefreshAction.action" />
<s:div id="once" theme="ajax" href="%{ajaxTest}" updateFreq="2000">
Output:
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
request.setAttribute("decorator", "none");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>
<html>
<link href="../jsp/style1.css" rel="stylesheet" type="text/css">
<link href="../jsp/Pages.css" rel="stylesheet" type="text/css"/>
<head>
<title>Transactions</title>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF" >
<table class="repTableLayout">
<s:iterator value="transdata">
<tr>
<td width="8%" class="frontValid11"></td>
<s:iterator value="top" >
<td width="15%" class="frontValid11">
<s:property />
</td>
</s:iterator>
</tr>
</s:iterator>
</table>
</body>
</html>