How to Disable back button using Struts2

前端 未结 2 484
余生分开走
余生分开走 2021-01-15 14:10

I am using struts.serve.static=true and struts.serve.static.browserCache=false, but the back button is working even after logout. When i click on t

2条回答
  •  情歌与酒
    2021-01-15 14:53

    Creating a custom interceptor to add the header to every response is an easier way than adding response.setHeader to every jsp (If you are using Struts2).

    Please check this link for a beautiful example which works fine.

提交回复
热议问题