Need to access session-timeout value in JSP -
i have standard tomcat/spring application, session timeout configured in web.xml :
<session-config> <session-timeout>15</session-timeout> </session-config>
i need access timeout setting in jsp:
properties.prototype.setproperty({ 'sessiontimeout' : "<c:out value='${session.sessiontimeoutinterval}'/>", });
any ideas on how that? possible add filter sets session timeout interval attribute:
session.setattribute("sessiontimeoutinterval", session.getmaxinactiveinterval());
but i'd rather avoid adding filter.
what better way of making value available in jsp?
here 1 way.
${pagecontext.session.maxinactiveinterval}
Comments
Post a Comment