tomcat的ajax请求问题 [英] Ajax request problem with tomcat

查看:50
本文介绍了tomcat的ajax请求问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的应用程序使用 spring、JPA、jsf,Web 服务器是 tomcat.在我的应用程序中,我手动使会话过期.会话过期后,如果我提供任何 http 请求,页面将转到错误页面并加载我的错误页面.但如果我给 ajax 请求,则 url 已更改.但页面未加载.请帮助我解决此问题?提前致谢.

I am using spring,JPA,jsf for my application and webserver is tomcat.In my application i have expired the session manually.After expiring the session if i give any http request the page is going to the error page and load my error page.But if i give ajax request the url is changed.but the page is not loaded.Please help me to resolve this problem? Thankx in advance.

推荐答案

我已经找到了解决方案问题.它取决于配置tomcat 中的问题.tomcat的服务器配置文件 server.xml 其中居住在tomcat-folderlocation/conf"有很多配置元素,如连接器,lobalNamingResources,listeners.For解决我的问题我已经设置了连接器的属性 emtysessionpath元素是真的像.它用于启用空会话路径.

i have found the solution for this problem.Its upto the configuration problem in tomcat. The tomcat's server configuration file server.xml which is reside at "tomcat-folderlocation/conf" has the lot of configuration elements like connector,lobalNamingResources,listeners.For resolve my problem i have set the attribute emtysessionpath of connector element is true like .Its used for enable the empty session path.

这篇关于tomcat的ajax请求问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆