You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shravan Shashikant <s0...@unix.tamu.edu> on 2000/09/26 19:51:15 UTC
Problem loading Servlets in Netscape
Hi everybody,
I am experiencing a peculiar problem.I have developed certain servlets
which run on a tomcat/win 2000 envt.They run perfectly well when called
from an IE browser but when called from Netscape,the html tags show up in
the browser as if having opened the html document in notepad.
Any ideas whats happening?
TIA,
Shravan
Re: Problem loading Servlets in Netscape
Posted by Shravan Shashikant <s0...@unix.tamu.edu>.
Hi Steve/Josh,
Thakns a lot for u pointing it out..I had forgotten to set content type
in one of my servlets.I corrected it and now it works fine in netscape and
ie..
thanks again..
SHravan
On Tue, 26 Sep 2000, Steve Ruby wrote:
> Shravan Shashikant wrote:
> >
> > Hi everybody,
> > I am experiencing a peculiar problem.I have developed certain servlets
> > which run on a tomcat/win 2000 envt.They run perfectly well when called
> > from an IE browser but when called from Netscape,the html tags show up in
> > the browser as if having opened the html document in notepad.
> > Any ideas whats happening?
> > TIA,
> > Shravan
>
>
>
> Have you set the mime type for the document before you started to
> output from the servlet?
>
> something like
> response.setContentType("text/html");
>
Re: Problem loading Servlets in Netscape
Posted by Steve Ruby <st...@rubysolutions.com>.
Shravan Shashikant wrote:
>
> Hi everybody,
> I am experiencing a peculiar problem.I have developed certain servlets
> which run on a tomcat/win 2000 envt.They run perfectly well when called
> from an IE browser but when called from Netscape,the html tags show up in
> the browser as if having opened the html document in notepad.
> Any ideas whats happening?
> TIA,
> Shravan
Have you set the mime type for the document before you started to
output from the servlet?
something like
response.setContentType("text/html");