How do you disable session creation for all JSPs with Tiles?

一曲冷凌霜 提交于 2020-01-21 12:16:17

问题


Is there any way to make all my JSPs not create sessions when using Jasper (Tomcat)? Apparently Jasper will create a session unless you specify not to:

<%@ page contentType="text/html;charset=UTF-8" language="java" session="false" %>

Is there way to do this for the entire webapp (session="false")?

Its seems you can't change:

org.apache.jasper.runtime.JspFactoryImpl.getPageContext

Which will create a session unless the JSP says session=false.


回答1:


This is container-specific; see this question.



来源:https://stackoverflow.com/questions/5093032/how-do-you-disable-session-creation-for-all-jsps-with-tiles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!