Help me....
I need to refresh the JSP file on client every 10 sec...
When this page refreshed in my computer (browser) it work fine, but on another computer it say(can not be refreshed without resending parammeters).
I use JRUN 3.0 .
This is a sample code of this file :
<jsp:useBean id="test" class="chat.initBean" scope="application"/>
<html>
<meta http-equiv="Content-Type" content="charset=windows-1251">
<body bgcolor="#6A6E7E">
<%
int i;
String newMess = request.getParameter("newMess");
String roomName = (String)session.getAttribute("roomName");
String userName = (String)session.getAttribute("userName");
response.setHeader("Refresh","10");
if(newMess!=null && newMess.length()!=0){
test.setMessage(newMess, roomName, userName);
}
if(!test.isEmptyList(roomName)){
for(i=0; i<test.getListSize(roomName); ++i){
%><p><%=test.getMessage(roomName, i)%></p><%
}
}
%>
</body>
</html>