Progress bar problem!!!! Plz help!!!

Posted on 2002-07-14
Last Modified: 2010-03-31
Hi All,
I have a servlet that reads cookies(added by another previous servlets), adds cookies, reads from Database tables and outputs data as html page.
The output comes as expected, but the problem is with the progress bar of the browser, it indicates that the page to be loaded is not loaded yet, although it is already completly loaded!!!!
Note: i use Internet Explorer browser version 6.0
I realy need to know what is the reason for this and how it will be solved...
Any comment will be very helpful...
Thanx in advance...
Question by:samjav
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Expert Comment

ID: 7152222
Are you sure that your doGet() or doPost() method actually returns? The connection is actually closed at that time and the only reason I can see - a priori - for the progress bar to react like this is that the connection to the server is actually still opened...

Author Comment

ID: 7152261
I use the service method...
and i close the PrintWriter instance (that is used for printing the html page tags) using the close method,close it after drawing the html page tags...
I don't know if this is what you meant!!!!

Expert Comment

ID: 7152277
Yes, this is what I wanted to verify. If the code is short enough or if you can reproduce the problem in a short similar example, it would be worth posting.

If you can't reproduce the problem with a short similar example, we at least know that the problem is more likely with the code, not with the servlet environment.
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now


Author Comment

ID: 7152364
Thank you fontaine very much...
The code is not short & i cann't reproduce the problem in a short similar example since i don't know what exactly the problem is,,,but as you said the problem is seems to be more likely with code...
So, i will check my code again...
Thank you again for you help....

Accepted Solution

fontaine earned 50 total points
ID: 7152389
What I would do is be sure that the PrintWriter.close() is indeed invoked. Maybe is the servlet stuck "just before" that line is executed... For example, I can think about a loop that doesn't end correctly, or other...

Author Comment

ID: 7153528
Thank you fontaine for your help....
I will check the code again....


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hibernate insert example 13 40
how to install java on RHEL image on EC2 4 58
hibernate example issues from command prompt 10 66
java mysql insert application 14 47
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question