Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

small problem with meta refresh and setting url

800409Jun 16 2005 — edited Jun 16 2005
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2005
Added on Jun 16 2005
2 comments
300 views