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
  • 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.
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.


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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
why cannot we forward request once the response is committed 2 46
ForLoop Example 3 52
MySQL  on Tomcat 8 68
How to convert from xls to xlsx using java 7 54
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

790 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