Hello, we have a new application that is deployed in Tomcat server 4.0. We have used Frames. The problem is, after submitting the JSP form, we get the target JSP correctly. But the I.E browser progress bar (at the bottom of internet explorer browser) still displays the progress as though something is still being downloaded. We tried deploying the application in BEA weblogic also. Still we see the same problem. Is it because of using Frames? Any suggestions?
I doubt that it is caused by the use of the frameset. Basically the browser doesn't believe that it has been passed enough bytes as set by the setContentLength() method on the servlet. I have seen this happen on a clients site on pages that were being served over HTTPS (basically the size of the page was always 1 byte small than expected) and so the browser keeps expecting info until the request eventually times out. I have never seen it happen on servlets generated from JSPs. On the servlets I eventually resolved the problem by simply removing the line of code that called the setContentLength() method. HTH
Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Joined: Jun 04, 2003
Andy, Thanks for your reply. In fact our JSP page (FORM) invokes a Servlet and when servlet returns the target JSP page, we see the problem that I mentioned earlier. There is no code in our servlet that checks for content length. Any suggestions?
Joined: Jan 14, 2003
Here is a snippet of code from the end of one of my servlets to show the order in which I set the details on the response:
Can you post the code in your servlet to this forum so that I can have a look at what you are doing. It could be as simple as not setting the status on the response. HTH