Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page Refresh Problem

 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying out a WML,Servlet based Chat that retrieves the Message from the DB for a specified time delay, i use Nokia Toolkit 2.0 to test it.

The problem is the refresh happens only once and then the page is not updated.. anybody can pls suggest how to get rid of the problem.

code
------------------------------------------------------------------------
out.println("<head>");
out.println("<meta forua=\"true\" http-equiv=\"Cache-Control\" content=\"max-age=0\"/></head>");
out.println("<card id=\"msg\" title=\"" + username + ":Msg's\" ontimer=\"" + url + "\" newcontext=\"true\">");
------------------------------------------------------------------------

Roshini.S
 
Bonagiri UmaMaheshwar Rao
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
instead of setting the headers using out.println() method set the header using response object.
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic