Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to access html page by back button which was generated when request with post method was  submitted

Posted on 2000-03-25
4
Medium Priority
?
169 Views
Last Modified: 2013-12-25
My web server is running servlet which is maintaining sessions. Based on session data different dynamically generated html pages are shown. All html pages update session data when their forms are submitted with post method.How can client access previously seen Html page with back method? I can not change post method.Can I repost the posted data automatoically, without using reload?
0
Comment
Question by:nishant1
4 Comments
 
LVL 1

Expert Comment

by:mafweb
ID: 2657363
Have you tried the javascript history.back() command? I'm not sure whether this works for the post method
0
 
LVL 1

Expert Comment

by:lambda
ID: 2659605
javascript:history.go(-1) goes one page back.

0
 

Author Comment

by:nishant1
ID: 2659882
My condition is if user clicks back, the html page having form with post method must be posted again.
0
 
LVL 2

Accepted Solution

by:
DKostov earned 40 total points
ID: 2662449
Try to use

window.location.reload()

with some conditional statement which will meet your requarements during the page loading. (For example you won't need this to be executed when the user accesses the page for the first time).
It will have the same effect as the "Reload" button pressed.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question