Passing Object from jsp pages to excel spreadsheet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Martin_Lira
Posted On:   Tuesday, July 20, 2004 10:37 AM

Hi,

I have a jsp that calls a bean to get some data from the database. The bean returns a Hashtable. The jsp process the Hastable object and displays it in TABLE. I need to provide the user facility of viewing the same data in an excel spreadsheet.


How can i pass this Hashtable object to another jsp page with the excel stuff. I dont want to use session.setAttribute.


I tried using the request.setAttribute but since I make another request on submit I cannot retrieve by request.getAttribute.

Thanks,
Martin

Re: Passing Object from jsp pages to excel spreadsheet

Posted By:   Gajanan_Choudhari  
Posted On:   Tuesday, July 20, 2004 11:15 PM

Hi,
On the JSP/Servlet ur getting Hashtable, you can set Content Type to "application-vnd.ms-excel". I think it will solve the problem.

Thanks & regards,
Gajanan
About | Sitemap | Contact