servlet and netscape
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Massimiliano_Ragazzi
Posted On:   Tuesday, August 19, 2003 06:23 AM

I use tomcat 4.1 and have a servlet that answer to request with html pages written as stream on the standard output


This method work with internet explorer but not with netscape. It visualize the source of the page


Some one can help me ??

Thanks for your efforts



Massimiliano

Re: servlet and netscape

Posted By:   Zac_Jacobson  
Posted On:   Tuesday, August 19, 2003 09:17 AM

Make sure your the content-type of the response is set to "text/html".. I believe it's "text/plain" by default. Netscape respects the content type, IE.. not so much.
response.setContentType( "text/html" );

Re: servlet and netscape

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, August 19, 2003 06:41 AM

Post the code.

About | Sitemap | Contact