Hello All,
I use sturts 2. My web program work well but when i add a refresh link in my
page, starting a problem.
First i had use javascript:reload() function. When use this link, page
sometimes not get data. But sometimes get. I change my reload() function.
<script name="javascript">
function refresh()
{
var sURL = unescape(window.location.pathname);
window.location.href = sURL;
}
</script>
<a href="javascript:refresh();">Yenile</a>
This is old style and working.
After, i prepared a small report page. It has JFreeChart's charts. It is
working but when i add a refresh link it has a problem. I research ajax. I
change my refresh link
<s:url id="ajaxTest" value="CampaignManagerCallDurationSlice.action">
<s:param name="id" value="${id}" />
</s:url>
<br><br><br>
<s:a theme="ajax" href="%{ajaxTest}" targets="Div1" notifyTopics="/request"
Yenile</s:a>
But result not change. I watched this process. Page not waiting action class
work done. Page has waiting.... and show result but action class still
working.
It can be possible a settings in action mapped xml file? Or any suggestion?
Regards,
--
----------------------------------
Volkan OZYILMAZ
Volko
http://www.volko.biz
----------------------------------