Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!