java 刷新jsp页面

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3777848/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 03:20:22  来源:igfitidea点击:

refresh jsp page

javajspservlets

提问by yonatan

how can i refresh a jsp page from other jsp page i have a jsp (jsp1) page that hold 2 frame of jsp i need that the jsp (jsp2) will refresh the other jsp (jsp3)

如何从其他jsp页面刷新jsp页面我有一个jsp(jsp1)页面,其中包含2个jsp框架我需要jsp(jsp2)将刷新另一个jsp(jsp3)

and another question same one as above only with servlet how can i make a servlet page refresh a jsp page

另一个与上面相同的问题仅使用 servlet 如何使 servlet 页面刷新 jsp 页面

回答by Bozho

Refreshing is a purely client-side concept. So you must do it with javascript:

刷新是一个纯粹的客户端概念。所以你必须用javascript来做:

location.reload(true)