how to use back button in a java code
843841Jul 18 2006 — edited Jul 24 2006Hi all,
I have written a servlet in which i have displayed output by using out.println(). There are two such servlets. In the second servlet i have given a button to go to previous page. the code for the button is:
<input type=button value="Back" onClick="history.go(-1)">
It is working fine in most of the systems. But in some systems, when i click the button, the source code of previous page is displayed. Can anyone help me to find a solution to the problem...