How to export a table in excel (in JSP)?

hi all,

I am using AJAX functionality in jsp to export a table into Excel.But i don't want to use it as it gives a hyperlink whereas i want a button which should work similar to hypelink.

I mean to say i want a saperate export button which should work similar to the hyperlink.

if anybody has any idea abt it....plz reply it soon.......

[363 byte] By [Romil_Jaina] at [2007-11-27 6:40:26]
# 1

So what you want to do is redirect to a page when the user clicks the button?

So just put the button in a form with the action attribute set to wherever the hyperlink points now.

And in case the button is already a part of a form, then on the onClick() event of the button, change the action attribute of the form to this particular hyperlink target and then cause it to submit.

That ok?

Or do you want the Excel file you're generating to be sent to the browser causing it to popup a dialog asking the user to save or open? If so take a look here http://forum.java.sun.com/thread.jspa?threadID=5170452&messageID=9655276

nogoodatcodinga at 2007-7-12 18:09:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...