How to disable session creation for all JSPs using Tiles?

Is there a way to get all my JSPs to create sessions when using Jasper (Tomcat)? Jasper seems to create a session if you don't specify:

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

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

It seems that you cannot change:

org.apache.jasper.runtime.JspFactoryImpl.getPageContext

What will create a session if the JSP does not say session = false.

+3
source share
1 answer

This is container specific; see this question .

+1
source

Source: https://habr.com/ru/post/1794167/


All Articles