简体   繁体   中英

JSTL Tags committing HTTP Response

I have a JSP that uses JSTL heavily (c:out, c:if, c:choose, the works). I am running into an interesting condition where during mid-for loop in the JSP my HTTP Response flips from being NOT committed to committed

The JSP has no reference to the response object at all, so I am not accidently flushing the response buffer.

I've set my response buffersize to be 1MB for testing (my page is 100KB) - in order to avoid automatic buffer flushing (and thus response commits).

The only thing I can think of is the JSTL tag libs (since they have access to the response object) is committing my response under the covers.

I cannot find any helpful docs online or the source code for the JSTLs to take a look myself.

Any thoughts?

问题是JSP保持了自己的缓冲区大小,该大小不受响应对象setBuffer(..)的影响。

<%@page buffer="256kb"%>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM