Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

Page Refresh

I have the following flow:

actiivtyList.jsp ..based on selection gets posted to IndexStep3.jsp

IndexStep3.jsp has information that gets updated as per user's selection. This page immediately shows the update.
However, if I go to some other page from here and come back, the update which used to show earlier is not reflected.
IndexStep3.jsp has frames and the update problem is an issue with one of the pages.

IndexStep3.jsp is the page where I added:
  response.setDateHeader( "Expires", 0 );
  response.setHeader( "Cache-Control", "no-store, no-cache" );
  response.addHeader( "Cache-Control", "post-check=0, pre-check=0" );
  response.setHeader( "Pragma", "no-cache" );

I get the "page refresh warning" but it does what it is supposed to do..reflect the current state. But for user experience, I dont want to show the warning. Is there a way I can refresh this page without the user being aware of it?
0
srinivas_vemla
Asked:
srinivas_vemla
1 Solution
 
TimYatesCommented:
Is this the same as http:/Q_21345917.html ?

As I said over there, you need to change:

>>actiivtyList.jsp ..based on selection gets posted to IndexStep3.jsp

to:

activityList,jsp gets posted to DoTheUpdate.jsp (which processes the posted data), which then redirects the browser to IndexStep3.jsp to show the current status...

The user will not be able to go "Back" to DoTheUpdate.jsp

And therefore you shouldn't get this problem...

Tim
0
 
srinivas_vemlaAuthor Commented:
Hi Tim,

Yes, it is the same question. But I want to refresh a page within IndexStep3.jsp. Nothing to do with activityList.jsp
IndexStep3.jsp is a page with frames and one of the pages pdfPreview.jsp has information which needs to be refreshed. The user modifies data on pdfPreview.jsp which gets updated immediately.  I will try going from pdfPreview.jsp to some other page. Do the processing and redirect to pdfPreview again. Tubelight. That thing didnt strike me earlier. D'oh. Will let you know .

Thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now