It's not a secret anymore!*
The moose likes JSP and the fly likes JSP as XML is rendered on the browser after session timeout and then login again Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP as XML is rendered on the browser after session timeout and then login again" Watch "JSP as XML is rendered on the browser after session timeout and then login again" New topic
Author

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

Girish Vasmatkar
Ranch Hand

Joined: Apr 24, 2008
Posts: 199
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


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP as XML is rendered on the browser after session timeout and then login again
 
Similar Threads
prototype framework with ajax in struts 2 'jsp
struts action class
ServletException: bean not found within scope
JSF page Declarations
Error with http://java.sun.com/jsf/core