I'm using the following line of code in my jsp.
<meta http-equiv="refresh" content="<c:out value='${pageContext.session.maxInactiveInterval+60}'/>">
This works fine in that 60 second after the session times out the refresh is called. This then goes into my action class and checks to see if my user object is still in session. It does not find it and forwards it to my login page with a message saying the session timed out.
this works just fine
Now instead of this happening I want to forward to an error page.
so I can add a url into the content section of the tab... but when I try to use a
<c:out value='${pageContext.request.contextPath}'/>
this evaluates to nothing.. so that then the forward is to /sessionTimoutError.jsp instead of /appName/jsp/sessionTimeoutError.jsp.
So my question is more of a verification. Is it true then that when the session times out it has absolutely nothing to do with struts and java.. and that when the refresh actually gets called and forwards it back to the logoff page that I've in effect created a new session that will timeout in 60 minutes and call a refresh in 61minutes?
So the only way I can think of forwarding to the other page would be to change the forward in my action class... but changing this is not worth modifying all the action classes.. and I can't just change the definition of the forward since other places use that forward and I don't want to change them either...
any othe ways anyone could think of doing this without hardcoding any url's in?