refresh the page doesnt work as i want
i want to refresh the page after ive updated the database however using thispageContext.forward( "update.jsp" );its just refeshing the page on the client because its not calling the database again using the jstl tags, how do i request the server to update the page?
[286 byte] By [
h1400046a] at [2007-11-26 15:49:27]

# 1
you need tou use the no-cache tag<%response.setHeader("Cache-Control","no-cache"); //HTTP 1.1response.setHeader("Pragma","no-cache"); //HTTP 1.0response.setDateHeader ("Expires", 0); //prevents caching at the proxy server%>
# 3
You should have these settings on every dynamic JSP that you generate.Otherwise the browser will just fetch its local version from the cache, without bothering the server.For a dynamic page which changes on every load, that is a bad thing ;-)
# 4
this still doesnt fix my problem, do i need to change anything else, any pointers would be fantastic!
ive placed the code at the top of the jsp as follows:
<%@ page import="java.util.*;" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%
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