Hi,
i have a portal application project in NWDS, with a JspDynpage component. I have a jsp that contains this code:
OutputStream os = componentResponse.getServletResponse().getOutputStream();
response.addHeader("Content-Disposition", "attachment;filename=" + sTITLE +".pdf");
response.setContentType("application/pdf");
os.write(contenido);
os.close();
this code open a pdf in new window. In web module project that app runs correctly but in portal application no, it fails in object response. the log (in default trace) doesn´t help me nothing, only sais:
Jun 6, 2011 3:19:55 PM com.sap.portal.prt.runtime.servlet_jsp [SAPEngine_Application_Thread[impl:3]_13] Error: >>> JSPCompiler >>> ERROR in Compiling :JSPFileInfo :314221189
JSP File : /usr/sap/DP4/DVEBMGS40/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.factdist.efact.por/pagelet/inicio.jsp
Class Name: sapportalsjspInicio
Java File : /usr/sap/DP4/DVEBMGS40/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.factdist.efact.por/work/pagelet/_sapportalsjsp_inicio.java
Package Name : pagelet
Class File : /usr/sap/DP4/DVEBMGS40/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.factdist.efact.por/work/pagelet/_sapportalsjsp_inicio.class
Is out dated : false com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler@149bbc2b
In addition, i can use the request object perfectly
somebody knows what's happening??
Thank you,
Fernando