JSP as XML is rendered on the browser after session timeout and then login again
posted 5 years ago
I am going through hell lot of trouble identifying the issue but haven't reached any conclusion.
The thing is - We have one application which authenticates the user and then after authentication, redirects the user to a different application.
The home page of the second application is a JSP containing JSF tags and is displayed properly, means JSP is properly rendered as HTML to the browser.
Then, if the page is in stale state for, say, 30 minutes, the user is thrown to the main application, for re-authentication. The problem, now, is that once user gets past the authentication, the home page of the second application is rendered as XML and not HTML.
The JSP does contain proper page directive as shown below in the code -
The above code is rendered properly when the user first visits the application, but, after the session timeout happens, and after again logging in, the above JSP is shown as an XML as shown below -
However, if, I refresh the page using right click - > Refresh, the page is displayed again normally, i.e as HTML.
Can someone point me in the right direction towards solving the problem ?