user2219247 user2219247 - 1 year ago 144
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download