File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresh Once

 
Pol Appan
Ranch Hand
Posts: 144
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I make a JSP page refresh only once at the time of loading.

Any help is highly appreciable.

Thanks
 
Scott Selikoff
author
Saloon Keeper
Posts: 3889
15
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Save a flag that indicates if the page has been refreshed using a session variable or cookie. On the second time you could then program the variable to wipe itself so future refreshes will still happen if the page is loaded all over again.

Why would you want to refresh a page immediately after loading it?
 
Pol Appan
Ranch Hand
Posts: 144
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to load it in the JSP which I deployed to portal.

Could you kindly give a sample code. I have a dynamic image.

THanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic