Posted by David Dorward on 06/07/06 10:07
Gobi wrote:
> I have a JSP page which contains a table that I would like to export to
> excel just by clicking a link. I can do this by specifying:
>
> contentType="application/vnd.ms-excel"
>
> This automatically opens excel and imports the html table directly into
> it. This is fine for the most part.
This is basically lying. You write some HTML and claim it is an excel
file, you then hope that whatever software the user has configured to
open Excel files is capable of recognising that its recieving HTML and
importing it automatically.
Not generally a good idea.
Your problem would be solved by sending a genuine Excel file to the
client.
[Back to original message]
|