PDF/XLS export of ExtremeComponents Table in Weblogic 10.3

251 views
Skip to first unread message

matteo.formica

unread,
Apr 23, 2009, 6:35:49 AM4/23/09
to JMesa
Hi all,

I'm working on a J2EE application, using Spring+IBatis and Struts. The
application has been deployed on WebLogic 10.3, the JDK used is the
SUN version, shipped with Weblogic.

In some pages a 'table' component of the extremeComponents library
(version 1.0.3) has been used. Everything works fine, except for the
PDF and Excel export features: when I have my table populated with
some records, and I click on the 'pdf' or 'xls' export icons on top
the component, the browser shows the binary content of the pdf/excel
file, instead of asking the user whether to save the file or to open
with Acrobat/Excel.

It seems the content type is not properly set by the library (if I
sniff the HTTP header of the response generated, the content type,
"text/html" is generated actually).

The same application deployed on Oracle OC4J 10.1.3 works fine. I have
no HTTP server (e.g. Apache) in front of Weblogic or Oc4j)

I've tried to use an updated version of the extremeComponents library
(ver. 1.0.4), but nothing changed.

Any of you can help me?

Thank you in advance

matteo

P.S.
The JSP code wich uses Table component follows:

<table cellspacing="8" cellpadding="1" border="0" width="100%"
class="coloreGrigio" align="center">
<caption class="Caption"><br/><bean:message key="path.governo"/
><bean:message key="search"/></caption>
<tr valign="top">
<td>
<ec:table
items="riepilogoMail"
var="carica"
scope="page"
view="compact"
action="governoMail.jsp"
imagePath="${pageContext.request.contextPath}/images/
table/*.gif"
showTooltips="true"
width="100%"
rowsDisplayed="20">

<ec:exportPdf fileName="export.pdf" tooltip="Esporta PDF"
headerColor="black"
headerTitle="Elenco Giunta"
headerBackgroundColor="#b6c2da"/>
<ec:exportXls fileName="export.xls" tooltip="Esporta Excel" /
>
<ec:exportCsv fileName="export.csv"
tooltip="Esporta CSV" />
<ec:row highlightRow="true">
<ec:column property="tipoOrgano.descrizione"
alias="tipoOrgano"
title="Tipo Organo"/>
<ec:column property="tipoCarica.descrizione"
alias="tipoCarica"
title="Tipo Carica"/>
<ec:column property="dataVariazione" format="dd/MM/
yyyy" cell="date"
title="Data variazione"/>
<ec:column property="variazione" title="Variazione"/>
<ec:column property="numeroPersone" title="Persone"/>
<ec:column property="statoCorrente" title="Stato
Corrente"/
>
</ec:row>
</ec:table>

Gabriel Rodríguez

unread,
Aug 22, 2013, 11:12:29 AM8/22/13
to jm...@googlegroups.com, matteo....@gmail.com
Hi....I have the same issue.....please tell me when you solve it.....thanks in advance
Reply all
Reply to author
Forward
0 new messages