I have a Struts 2 web application.
Currently when user click on logout URL, we call a logout action and in the method we call session.invalidate()
. If it's success then we are calling logout.jsp
.
In logout.jsp
we need to redirect to another link. This link is currently hardcoded in JSP.
The link is different in test and production so we have to make changes to this link when we deploy in test & production. We have utility to get values from external file. But since the session is invalidated we are not able to set value in session and retrieve in JSP.
What is the best approach for this?