I have a main page say Main.jsp which has a Iframe in it whose src is page1.jsp
Page1.jsp has a form in it and we have a button on Main.jsp
We submit form inside Ifame(page1.jsp ) using the button on main page with javascript.
Once a form is submitted, we redirect it to some error page in case of error.
Here we have a back button which should move us to Main.jsp.
We are using referer for identifying the page from which error page is coming so that when we press back button, we will be redirect to correct page.
But, whats happening is that when we are submitting form, url of Frame is passed as referer instead of Main.jsp.
How can we get the Main.jsp in Referer?
Please note for some security reason history.go(-1) doesn't work.
Page1.jsp has a form in it and we have a button on Main.jsp
We submit form inside Ifame(page1.jsp ) using the button on main page with javascript.
Once a form is submitted, we redirect it to some error page in case of error.
Here we have a back button which should move us to Main.jsp.
We are using referer for identifying the page from which error page is coming so that when we press back button, we will be redirect to correct page.
But, whats happening is that when we are submitting form, url of Frame is passed as referer instead of Main.jsp.
How can we get the Main.jsp in Referer?
Please note for some security reason history.go(-1) doesn't work.
Comment