Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: offline question

John Arockiaraj

2003-08-12

Replies:

Hi Vadivel,

You can try the following :

    1. Set the header "Content-Disposition" to have the type "attachment"
    2. If your header "Content-Type" with value of "application/vnd-excel"
          doesn't work, you can try setting "Content-Type" header to have
          "application/as-you-wish" (just to cheat the browser about Excel type)

HTH
John

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:JSP-INTEREST@(protected)
Sent: Tuesday, August 12, 2003 6:55 PM
To: JSP-INTEREST@(protected)
Subject: offline question


Hi All,

This is offline question.. I have excel files stored in the webserver. when
the user download these files, it directly opens in the browser. But i want
to ask for a prompt like open or save.. how to do? do i need to do some
setting in IE or in webserver.

Thanks in advance.

Vadivel



Disclaimer Statement:

------------------------------
The information contained in this message is confidential and proprietary to
Datamatics Technologies Limited, Mumbai, India. It is intended only for the
use of the individual or entity to whom it is addressed. If you are not the
intended recipient, or the authorized agent thereof, you are hereby notified
that any disclosure, use, distribution, dissemination or copying in any form
of any information contained in this message is strictly prohibited. If you
have received this message by mistake or error, please notify us immediately
by return email to the sender or by fax on number +91-22-28291673 and delete
all copies of the original message.
------------------------------

===========================================================================
To unsubscribe: mailto listserv@(protected)
JSP-INTEREST".
For digest: mailto listserv@(protected)
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


©2008 junlu.com - Jax Systems, LLC, U.S.A.