• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

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

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
samjav
Asked:
samjav
  • 3
  • 3
1 Solution
 
fontaineCommented:
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
 
samjavAuthor Commented:
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
 
fontaineCommented:
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
Technology Partners: 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!

 
samjavAuthor Commented:
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
 
fontaineCommented:
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
 
samjavAuthor Commented:
Thank you fontaine for your help....
I will check the code again....
samjav

0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now