Re: setContentType() vs. meta http-equiv='Content-Type' ...

2004-01-17 Thread David Wall
Yoav is correct that Tomcat (and probably most servlet containers) simply consider meta tags as just some text to push to the browser. The problem is that (assuming the browser can read the tag at all), Tomcat is sending in iso-latin-1, not what is in your meta tag. But is that really the

RE: setContentType() vs. meta http-equiv='Content-Type' ...

2004-01-16 Thread Shapira, Yoav
Howdy, Does Tomcat see any difference in a servlet that calls setContentType() before generating a page for output versus not calling setContentType() but including an HTML meta http-equiv='Content-Type' ... tag in the generated page? You might want to define Does Tomcat see any difference more

Re: setContentType() vs. meta http-equiv='Content-Type' ...

2004-01-16 Thread Bill Barker
Actually, you don't get an exception if you don't call setContentType: You just get you page encoded and sent to the browser in iso-latin-1 (as per the spec). Yoav is correct that Tomcat (and probably most servlet containers) simply consider meta tags as just some text to push to the browser.