aspose file tools*
The moose likes Servlets and the fly likes why page has been expired without take more time after page opened ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "why page has been expired without take more time after page opened ? " Watch "why page has been expired without take more time after page opened ? " New topic
Author

why page has been expired without take more time after page opened ?

pmani kandan
Greenhorn

Joined: Aug 01, 2004
Posts: 17
hai

i am developing project using jsp,servlets.i got a problem in page
expired .jsp for only view purpose . servlete processing the data(query execution ). database records are get through request.getAttribute(),and setAttribute method .why this was come.

further explain ny problem .first i give the search data . ts response some list of records i can display some format. then this list of records have hyperlink.when we click this link it will show the reports .after i saw this report i press the back button . it shows the page has been expired refresh your form . then i refesh this page it can show the list. but i need without refresh ,i press the back button .it will show the list of records .so , if anybody have an idea please reply immedietly.

thank you.


p.Manikandan
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
For your back button, try:

history.go(-1);


Vijayendra <br /> <br />"The harder you train in peace, the lesser you bleed in war"
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30973
    
159

Pmani,
Whether the page gets cached locally depends on several factors. First, check you don't have any meta tags dealing with caching. GET requests are more likely to get cached than POST requests. There are several server settings that affect caching too.

Vijayendra, history.go(-1) and other javascript solutions are equivalent to the back button. If one doesn't work, neither will the others.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
pmani kandan
Greenhorn

Joined: Aug 01, 2004
Posts: 17
thanks for ur reply

ur answer is correct .But i am in report form so cannot use any back button for this page .only way i came through browser back button . so, if i am click a back button in browser it will ask refresh ur page .after i refreshing the page it will submit the form and display the values
 
Don't get me started about those stupid light bulbs.
 
subject: why page has been expired without take more time after page opened ?