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
163 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 10 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

756 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