struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer" <raghuve...@infotechsw.com>
Subject Removing page from browser history
Date Wed, 02 Aug 2006 11:01:16 GMT
I am able restrict the user going back to previous page from current page by
browser "BACK" button.

<script language="javascript">
window.history.forward(1);
</script>

How to restrict the user going to previous page by removing the Previous
page accessed by user from BROWSER HISTORY(Cntrl+H in IE).
I am using Struts Tiles Web application i have few modules to navigate from
home page after login.


HOME PAGE
- Module 1
- Module 2
- Module 3

In my Module 1 i have
page1.d0
page2.do
page3.do.


Page3.do will load page3.jsp.
This Jsp page can be viewed by User only if he comes from
Home->page1.do
page1.do->page2.do
page2.do->page3.do
page3.do->Home page

User After Submit Form in page3 he will navigate to HOME page with message
records saved succefully.

My Requirment is he cannot go to page 3 from browser BACK Button or from
Browser History.

So,
page 3.do is accessed only if user navigates all before 2 pages.
What ever i write code for this issue can be written only in Page3.jsp,

Any Suggestions on this.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message