Wrox Programmer Forums
|
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 10th, 2012, 04:53 AM
Registered User
 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how can i download file using struts

i came across the code below and applied in my project
<result name="success" type="stream">
<param name="contentType">application/vnd.ms-excel</param>
<param name="inputName">fileInputStream</param>
<param name="contentDisposition">attachment;filename="fil eABC.xlsx"</param>
<param name="bufferSize">1024</param>
</result>


but the problem is I have my web page(.jsp) which displays a table of 5 columns using <s:iterator> in my jsp file.
I want a download link which will download the table content(that he current page is displaying) and export the records and save in an excel file. please help me.
the file which i want to download is not stored on the server. the table is displayed dynamically via jsp. how can i get the download pop up box without using fileInputStream

Thanks in advance.

Last edited by chaitali; February 10th, 2012 at 04:56 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
File Download. rupen ASP.NET 1.x and 2.0 Application Design 4 February 23rd, 2008 08:43 AM
struts actions package: "struts", other packages? ojasrege Struts 1 July 21st, 2007 06:02 AM
ANT - Importing Images into WAR file in struts aadz5 Struts 1 January 21st, 2006 08:14 PM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
struts - xsl -> pdf - error opening file with IE ruchi XSLT 0 June 15th, 2005 07:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.