Peter,
Are you sending your data on the fly or are you collecting the data in a
buffer and then sending the data to the browser? The term "buffer" is used
very loosely. I use a ByteArrayOutputStream to write data to. Once I'm
finished building the page, I set the content length to the number of bytes
in the ByteArrayOutputStream, and write the Stream to the browser. This has
eliminated most page reception problems for me.
It is my understanding and experience that IE 4.x is a little buggy in the
area of receiving html data when the content-length has not been explicitly
set.
Hope this helps.
Brian
PS - On the other hand, IE may see that you're using an Apache web server
and drop the connection every once and a while for the heck of it. I
haven't experienced any particularly buggy connections to Apache/JServ
through IE4.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of peter
Sent: Monday, May 31, 1999 11:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Servlet output got truncated in IE but not Netscape. Why?
Yup!
Both source HTML are the same.
BTW I'm running the servlet on a Linux RH 5.2 Apache 1.3.6 with ApacheJServ
1.0b5.
There was a suggestion that it could be the servlet engine (ApacheJServ)
thats
incompatible with
IE4. Could this be true ? If yes, considering the number of apache web
servers
out there, I rarely get
truncation errors like these when going to sites with servlets.
Anyone experienced this truncation error when using ApacheJServ with the
Apache
web server?
Pls shed some info, as I would like to avoid going to all 24 PCs (I just
hate
to barge into peoples office - especially
the managers') in our network just to install Netscape (all client
machines are Windows98 connected via Samba to the Linux server)
Amaresh Rajasekharan wrote:
> This is just a quick suggestion. Did you see the source of the html page
by
> right clicking on both the browsers? If so, are they same? If they are
same,
> then there could be some problem at IE side in displaying. If they are
> different,then you may have to check as to why the page was not received
> properly.
> Thanks and Regards,
> Amaresh
>
> >--- Peter <[EMAIL PROTECTED]> wrote:
> >> I have a servlet that resides in a Linux RH5.2 box.
> >>
> >> The strangest thing is that, whenever I tried to access the servlet
> >> using IE
> >> on a Win98 machine, the HTML page generated by the servlet gets
> >> truncated
> >> and the last few lines are missing. But IE does not give any time
> >> out error
> >> whatsoever.
> >>
> >> Then when I tried to access the servlet using Netscape, it worked
> >> flawlessly
> >> and all contents got displayed on the browser.
> >>
> >> What's going on? Is it because the servlet comes from a Linux box
> >> which made
> >> IE to refuse the last few lines???? (Huh,.. now that's one stupid
> >> guess!!!)
> >>
> >> Please help because I am so so so totally perplexed by this.
> /user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html