Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

setHeader("Refresh","10")-PROBLEM

843833Jun 26 2001 — edited Jul 11 2001
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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2001
Added on Jun 26 2001
3 comments
182 views