jsp refresh/reload problem

Discussions

Web tier: servlets, JSP, Web frameworks: jsp refresh/reload problem

  1. jsp refresh/reload problem (2 messages)

    i have two pages. the first page displays records from a database of changelogs. the second page allows modification or new entries into the changelog table. the second page posts the info to itself and saved it in the database then goes back to the first page either by a response.sendRedirect or js window.location. the problem is the first page's data doesn't get refreshed unless i click the refresh button. any help? thanx

    Threaded Messages (2)

  2. jsp refresh/reload problem[ Go to top ]

    You should set the pragma-nocache HTTP header, which will stop both the browser and the proxy server (if there is one) from caching the contents of the page.

    That way, the redirect should work, but to be honest it usually works anyway!

    Chz

    Tony
  3. jsp refresh/reload problem[ Go to top ]

    You could use opener.location.reload() which refreshes the parent window.
    See if this works.