Solved

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

Posted on 2002-07-14
6
244 Views
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...
samjav
 
0
Comment
Question by:samjav
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:fontaine
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...
0
 

Author Comment

by:samjav
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!!!!
0
 
LVL 5

Expert Comment

by:fontaine
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.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:samjav
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....
samjav
0
 
LVL 5

Accepted Solution

by:
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...
0
 

Author Comment

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

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now