IE出现网页失效,但刷新后出现数据!
IE点击返回按钮时,上一个页面出现网页已过期失效,但session未失效,刷新页面后数据重新加载出来了。(FF没问题)
?修改方法:如下:相当于中间架桥,多做了一步,防止IE不识别
@RequestMapping("/getResult")
?public String getResult(RetrievalForm retrievalForm){
??System.out.println(retrievalForm==null);
??this.getRequest().getSession().setAttribute("retrievalForm", retrievalForm);
??return "redirect:/v/gene/result";
?}
?@RequestMapping("/result")
?public String result(){
??RetrievalForm retForm = (RetrievalForm) this.getRequest().getSession().getAttribute("retrievalForm");
??this.getRequest().setAttribute("sample", retForm.getSample());
??this.getRequest().setAttribute("diagnosis", retForm.getDiagnosis());
??return "/v/gene/retrieval/search_result";
?}