Hi Michael/Yoav,

Thanks a lot for the suggestion. I have got it working and it seems now
openning as per the requirements.

Arnab

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 7:59 PM
To: Tomcat Users List
Subject: RE: Problem with Excel and Word Documents



Howdy,
You may also want to use the attachment content-disposition header in
order to give the user a choice of opening/saving to disk.  (Google
content-disposition header if you're not sure what it is or how to use
it).

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Michael Coughlan [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 22, 2003 9:08 AM
>To: Tomcat Users List
>Subject: RE: Problem with Excel and Word Documents
>
>> 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]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to