• Post Reply Bookmark Topic Watch Topic
  • New Topic

Action getting called when browser back button is pressed  RSS feed

 
Mohammed Abbas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

We are facing some problem with struts application that uses tiles as well.The problem is with 3 main jsp pages in the application which are starting points for different modules.The problem is when we go forward from one of this page and come back using browser back button instead of displaying the page from the cache or history the browser is some how calling struts action.Due to this we are getting some undesired effect in the application.We are unable to find any code in the JSP page page which is making this request.Infact we tried deleting all the content from the jsp pages and pressing the back button but still the action is getting called.Does any one has any idea about such a problem?
 
Subash Tiwari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
There may be the case that you are submitting page by java script on body load.
When you are clicking back button that jsp loading again and calling onLoad function .So Check ,How you are submitting jsp.


Regards,
Subash Tiwari
 
Mohammed Abbas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply!

Surprisingly there is no onLoad any where in our code.I have searched the whole repository but no where there is a java script onLoad function!!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!