开发者

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

开发者 https://www.devze.com 2023-02-13 12:30 出处:网络
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:

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" %开发者_如何学Go>

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.


This is container-specific; see this question.

0

精彩评论

暂无评论...
验证码 换一张
取 消