aspose file tools*
The moose likes Servlets and the fly likes My Servlet's 'first time' rendering blues. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "My Servlet Watch "My Servlet New topic
Author

My Servlet's 'first time' rendering blues.

Vikram Ramaswamy
Greenhorn

Joined: Mar 21, 2009
Posts: 9
Hi All,

I have a servlet application running on JRUN\IIS and intermittently the servlet displays a blank page and then a IE page refresh displays the page correctly. I don't see anything unusual in the logs either.

I know the information above might be too generic, but I am hoping to getting some direction, if at all, on possible places to look at, from those that might have encountered such issues or "gurus" with incredible imagination.

Note: I will understand if this thread is ignored for want of code information, but I can't post any specific details of the application except that it is a normal servlet that tries to access a DB and displays data...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61429
    
  67

When you get the "blank page" is the servlet invoked at all?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
I have seen the "blank page" effect when I forgot to flush and close the response output stream.

Bill
Vikram Ramaswamy
Greenhorn

Joined: Mar 21, 2009
Posts: 9
Bear, yes, the Servlet is invoked.

William, I am looking into the code to see if response streams are being closed. The displayed page is made up of chunks of data processed by different classes and then combined together, so, there are plenty of places for me to check, thanks for the good lead!

 
 
subject: My Servlet's 'first time' rendering blues.