Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp to convert to excel format

 
Aman selamanya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
I'm quite new with jsp.. i need help from you to solve my problem...
This is the situation..
Page 1
<a href='excel_format.jsp' target='newwin'>Excel</a>
Page 2
<%@ page contentType="application/vnd.ms-excel"%>
when i click page 1 there will appear popup window for File download and have 2 options which is "open this file from its current location" and "save this file to disk".
The first option is fine, but the problem is when i select 2nd option or click cancel button, the new window will appear and display "Action canceled". Is there any solution to avoid new window appear if 2nd option had been selected or when click cancel button or there is another solution that i can control whether to display at file download only 1 option and vice-versa which means that i must write in the jsp page for showing the excel page without asking for saving?
Thank you for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic