Please help...

1 view
Skip to first unread message

Yogesh Patil

unread,
Sep 2, 2010, 10:44:54 AM9/2/10
to bo...@googlegroups.com

Hi All,

I am trying to download an excel sheet from servlet response.

When I click on link which sends request to server for returning an excel sheet, save/save as dialog box gets opened asking to save the excel sheet. This is an expected behavior.

But in between, if I try to use IE 6 or below version, then it opens up new window after clicking on the link. And then opens up Save/Save As dialog box.

Other operations run as expected, but the problem is, the new window displays the message Can't open the page.

Is there any way, I can avoid opening of this new window?

I want Save/Save As dialog box directly appear in the same window from which link has been clicked.

Please help.



--
Regards,
Yogesh.

Tushar Joshi

unread,
Sep 3, 2010, 12:04:37 AM9/3/10
to bo...@googlegroups.com
Are you using CONTENT DISPOSITION HTTP HEADER?
If not please check this link http://www.jtricks.com/bits/content_disposition.html

with regards
Tushar

==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE, ZCE, PMP
Software Architect @ Infospectrum India Private Limited, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://www.jugnagpur.com


--
You received this message because you are subscribed to the Google Groups "Bangalore Open Java Users Group- BOJUG" group.
To post to this group, send email to bo...@googlegroups.com.
To unsubscribe from this group, send email to bojug+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bojug?hl=en.

Raghavan.30May1981_GMail

unread,
Sep 3, 2010, 11:22:56 PM9/3/10
to bo...@googlegroups.com
thats a nice tip tushar!

Cheers,
Raghavan alias Saravanan M.
http://shade.org.in

"Speak when you are angry- and you will make the best speech you'll regret  !!" - Wisemen
Reply all
Reply to author
Forward
0 new messages