Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP as XML is rendered on the browser after session timeout and then login again  RSS feed

Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Thank you

Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
Why should you try IntelliJ IDEA ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!