matteo.formica
unread,Apr 23, 2009, 6:35:49 AM4/23/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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>