-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
megha wrote:
Hi all
I am exporting some data in .csv format through jsp file it is
exporting the data in csv format but giving the exported file .jsp
extension.
I want .csv extension can anybody help.
Thanks
Megha
Hi,
How about, in your JSP, set the following header:
Content-Disposition: attachment; filename=<whate ver>.csv
assuming you want the browser to do the typical open-or-save dialog.
The purpose of this syntax is to tell the browser, with the
"attachment " part, that the file should be saved and not opened
inline, and with the "filename" part, that the filename in the URL is
not the "real" filename of the object.
- --
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAdiBsnwj A8LryK2IRAl3bAK DGUNPvWNdid7qfq 6dDQ36EkQC6HACf UgB3
onb+lUmBZ5jKkVj rV/SUz1U=
=WpUS
-----END PGP SIGNATURE-----