WebSphere Portal Server - Export jsp contents to excel

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > November 2007 > Export jsp contents to excel





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Export jsp contents to excel
sayed_firdaus@yahoo.com

2007-11-29, 1:32 pm

Hi, <br />
<br />
Im working on Websphere portal 5.1. When im trying to export my results from the jsp table to excel using --- &lt;%response.setHeader("Content-Disposition","attachment;filename=MRSurvey.xls"); %&gt; --- it wont work. On my result page I have a link which
should basically save the results displayed on the jsp to excel document. <br />
Also I was trying to access the portletRequest object in my page using the &lt;portletAPI:init /&gt; , but im not able to.<br />
<br />
Is there any other way I can achieve this functionality? I have attached my sample page for reference ...just in case.<br />
<br />
Thanks
Jim Barnes

2007-11-29, 1:32 pm

You cannot change the content type inside a portal page<br />
<br />
what many do is in their link, they target the portlet action, and there you can do a sendredirect and then send it to your servlet which can provide the data<br />
<p />
<br />
IBM Certified System Administrator -- WebSphere Portal V6.0, V5.1, V5.0<br />
IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0<br />
<br />
The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
sayed_firdaus@yahoo.com

2007-11-29, 1:32 pm

Thanks for the info....
sayed_firdaus@yahoo.com

2007-11-29, 7:22 pm

Is there a way I can access the PortletResponse object inside the actionPerformed() ?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com