2012/4/21 gunay arslan <gunay.ars...@gmail.com>:
> HI,
>
> as the spec dictates every jsp file that specify session="true"  (this is 
> default in tomcat  )  forces a new session to be created, wether or not we 
> are using the session inside the jsp file.
>
> the session is triggered for creation at PageContextImpl file, isn't 
> meaningfull  to make this session creation on demand ?

It is not possible, because (by specification) the JSP page (unless it
has session="false")  needs to have local variable named "session"
that can be used from
java fragments (aka scriptlets).

You cannot create a Java variable "on demand".

Note that there is "needsSession" attribute in
PageContextImpl#_initialize(..), which is not always true.


> Most of the jsp files are using the session for checking an attribute 
> presence, so creating a new session just for get operations  is a wast of 
> memory.
> do I miss something ? I am ready to do the development, maybe someone is 
> working on this already ?


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to