Adam Gent
Adam Gent

Reputation: 49095

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

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.

Upvotes: 3

Views: 8053

Answers (1)

Haakon
Haakon

Reputation: 1741

This is container-specific; see this question.

Upvotes: 1

Related Questions