This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have .jsp page with some generated content. In that page, there is a button as "save as word". When the link is clicked , i need the save dialog to appear and prompt the user to save the content in the JSP page as word document.How can i do this in JSP. Please guide me in this regard.
Thanks & Regards, Pallavi
Break the ice - SCJP 1.4,<br />Where There's a will- SCWCD 1.4.<br />Back in action - Websphere Certified Portal 6 Application Developer
Once the page has been sent to the broswer, the fact that it was a JSP is moot.
When the button is clicked, a new request will be sent to the server. In this request, a servlet should be called that takes the same data as was sent to the JSP and format it as an RTF document (which is a lot easier to generate than a native Word document).