> While downloading/viewing a file from a jsp page, there are no > problems encountered by IE. But, when the same is opened on > Netscape 7.0 (and up), the file is opened up in the same window > and all the data is improperly rendered because NS cannot > interpret the file properly.
Are you familiar with MIME types? If not, then Google "MIME types". According to the HTTP spec, the HTTP Accept header specifies the media MIME types. Try looking up the "res.setContentType()" function to set that header value for your HttpServletResponse. Before you send some response "res", I believe you should specify the content type with that function. Netscape is probably to spec. Windows cheats by parsing the file extension (.txt, .xls, .doc) to help you out. I believe there are also MIME !ELEMENTS that can be added to web.xml to achieve this as well within Tomcat. regards, MPC --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
