This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 60078
    
  65

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: 12682
    
    5
I have seen the "blank page" effect when I forgot to flush and close the response output stream.

Bill

Java Resources at www.wbrogden.com
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!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My Servlet's 'first time' rendering blues.
 
Similar Threads
Netsacpe Browser with Orion Server Problem.
How do I include my FrontController with <jsp:include>?
Which Scope to use in Bean
welcome file list
How to get dynamic content in index.jsp page