Home  >  Article  >  Backend Development  >  web - JSP请求中断会发生什么,JSP有没有类似PHP的ignore_user_abort()函数的功能。

web - JSP请求中断会发生什么,JSP有没有类似PHP的ignore_user_abort()函数的功能。

WBOY
WBOYOriginal
2016-06-06 20:40:151358browse

如题。
比如我一个JSP要执行很多的步骤(比如和数据库交互)之后才输出内容。
但是用户在请求执行完之前就关闭网页了。
这个时候,这个JSP会像PHP一样立即结束,还是忽略用户的操作继续执行完所有代码呢?
有木有什么类库、函数可以控制这个呢?
http://www.moonlord.cn

回复内容:

如题。
比如我一个JSP要执行很多的步骤(比如和数据库交互)之后才输出内容。
但是用户在请求执行完之前就关闭网页了。
这个时候,这个JSP会像PHP一样立即结束,还是忽略用户的操作继续执行完所有代码呢?
有木有什么类库、函数可以控制这个呢?
http://www.moonlord.cn

大概是在有输出的代码的地方报错吧。。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn