You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ch...@scotland.gsi.gov.uk on 2002/07/03 13:38:14 UTC
Browser Issues
*****************************************************************************
This email and any files transmitted with it are intended solely
for the use of the individual or entity to whom they are addressed.
*****************************************************************************
Dear all,
I have a FOP application which when requested, transforms XML into
XSL:FO and is then serialized to a web browser.
During development this functionality worked a treat. However, we have
recently moved this onto the Internet and are
having problems with different browsers.
Error : Active X error - says the content type is text/html
I am 99% sure that the XML and transformations are OK as they work in a
number of different platforms.
Has any one had experience of this kind of bug before.
I am still trying to determine where the problem lies.
1. The browser
2. The server configuration
3. The FOP code on the server
I have included 'some' of the source code, ie the bit responsible to for
streaming the PDF to the browser.
where content = ByteArrayOutputStream containing the Serialized PDF
document.
// Set the content length
response.setContentLength(content.length);
// Set the content type to PDF
response.setContentType("application/pdf");
// Write the PDF stream to the response
response.getOutputStream().write(content);
// Flush the output stream
response.getOutputStream().flush();
Any help would be greatly appreciated.
Chris Brown
Graduate System Builder
Newell and Budge
SEERAD
Re: Browser Issues
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Chris.Brown@scotland.gsi.gov.uk wrote:
> I have a FOP application which when requested, transforms XML into
> XSL:FO and is then serialized to a web browser.
> During development this functionality worked a treat. However, we
> have recently moved this onto the Internet and are
> having problems with different browsers.
>
> Error : Active X error - says the content type is text/html
Somebody is overriding your content type, it can be proxy or another servlet,
I'd try mozilla browser - it has lovely View/Page Info stuff where you can see
what content type is exactly at the resonse.
--
Oleg Tkachenko
Multiconn International, Israel