user2219247 user2219247 - 3 months ago 14x
Java Question

Get maxInactiveInterval value in JSP page

I am trying to refresh a page when session has timedout. I am adding this into my

section of HTML:

<meta http-equiv="refresh"

However this:
prints out empty value (nothing).

I know that in JSF I can use:
and it works. How to make this for in JSP page?


below line will give you maxInactiveInterval


Because sessionScope maps only session-scoped variable names to their values, Where as pageContext.session gives session object for the client

You can find this in Official Documentation.