File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Refresh Once Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Refresh Once" Watch "Refresh Once" New topic
Author

Refresh Once

Pol Appan
Ranch Hand

Joined: Aug 26, 2004
Posts: 144
How can I make a JSP page refresh only once at the time of loading.

Any help is highly appreciable.

Thanks


Never take anything for granted because you never know when you will lose it
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

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?


My Blog: Down Home Country Coding with Scott Selikoff
Pol Appan
Ranch Hand

Joined: Aug 26, 2004
Posts: 144
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refresh Once
 
Similar Threads
Refresh Page In other Frame
JARS are visible threrough RAD 7.0
Refresh times to be one
javascript error in yahoo mail
Upload attachment to QC [Quality Center] using java