struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Sharma (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-2647) Result type stream issue with inline file download in IE6
Date Thu, 15 May 2008 08:40:06 GMT

     [ https://issues.apache.org/struts/browse/WW-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ashish Sharma updated WW-2647:
------------------------------

    Description: 
Hi,

 I am using struts 2.0.11.
 I am facing an issue in downloading pdf files as inline (open file in same browser window),
in IE6.
 Instead of opening the file in the browser window, pdf is opened separately and browser window
remains open with nothing inside it. 

 Following is the result defined for my action.

 <result name="success" type="stream">
	<param name="contentDisposition">inline;filename="abc.pdf"</param> 
	<param name="contentType">application/pdf</param>
	<param name="inputName">reportStream</param>
</result>

 However this code seems to work fine for both IE7 and Firefox 2.0

 Also this is not a browser issue with IE6, as i can open the pdf file in same window using
the conventional approach below:

HttpServletResponse response = ServletActionContext.getResponse();
response.reset();
response.setContentType("application/pdf");
response.setContentLength(l_data.length);
response.setBufferSize(l_data.length);
response.setHeader("Content-Disposition", "inline; filename=\"abc.pdf\"");
OutputStream out = response.getOutputStream();
out.write(l_data);
out.flush();
response.flushBuffer();

 Can you please look into this.

 Thanks,
Ashish

  was:
Hi,

 I am using struts 2.0.11.
 I am facing an issue in downloading pdf files as inline (open file in same browser window),
in IE6.
 Instead of opening the file in the browser window, pdf is opened separately and browser window
remains open with nothing inside it. 

 Following is the result defined for my action.

 <result name="success" type="stream">
	<param name="contentDisposition">inline;filename="abc.pdf"</param> 
	<param name="contentType">application/pdf</param>
	<param name="inputName">reportStream</param>
</result>

 However this code seems to work fine for both IE7 and Firefox 2.0

 Can you please look into this.

 Thanks,
Ashish

        Summary: Result type stream issue with inline file download in IE6  (was: result type
stream issue with inline file download in IE6)

> Result type stream issue with inline file download in IE6
> ---------------------------------------------------------
>
>                 Key: WW-2647
>                 URL: https://issues.apache.org/struts/browse/WW-2647
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.11
>         Environment: Tomcat 5.5.17 as web server
> Using Eclipse 3.3 as IDE
>            Reporter: Ashish Sharma
>
> Hi,
>  I am using struts 2.0.11.
>  I am facing an issue in downloading pdf files as inline (open file in same browser window),
in IE6.
>  Instead of opening the file in the browser window, pdf is opened separately and browser
window remains open with nothing inside it. 
>  Following is the result defined for my action.
>  <result name="success" type="stream">
> 	<param name="contentDisposition">inline;filename="abc.pdf"</param> 
> 	<param name="contentType">application/pdf</param>
> 	<param name="inputName">reportStream</param>
> </result>
>  However this code seems to work fine for both IE7 and Firefox 2.0
>  Also this is not a browser issue with IE6, as i can open the pdf file in same window
using the conventional approach below:
> HttpServletResponse response = ServletActionContext.getResponse();
> response.reset();
> response.setContentType("application/pdf");
> response.setContentLength(l_data.length);
> response.setBufferSize(l_data.length);
> response.setHeader("Content-Disposition", "inline; filename=\"abc.pdf\"");
> OutputStream out = response.getOutputStream();
> out.write(l_data);
> out.flush();
> response.flushBuffer();
>  Can you please look into this.
>  Thanks,
> Ashish

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message