Re: How to tell Driver to open acrobat in a new IE?

2004-08-11 Thread arnd . beissner
[EMAIL PROTECTED] wrote on 11.08.2004 21:48:24:

> I am parsing my XML file through FOP parser and then telling the driver 
to
> render it as PDF. The process is initiated by clicking on a button on 
IE.
> What happens is the current IE instance opens the acrobat and displays 
the
> PDF it.
> 
> The users have to hit back button to get back to the application.
> 
> My question is how do i tell the Driver to open the PDF in a separate
> instance of acrobat (within a new IE instance) or just by  acrobat
> independently.

First: this is not a question for fop-dev. fop-dev is a mailing list for 
people working on the source code of FOP

Second: you cannot tell the Driver to do that - not because it's not 
implemented, but because it's not possible. You must change your HTML 
and/or JavaScript to tell the browser to open a new window for the link.

Hope this helps,

Arnd
-- 
Arnd Beißner
Cappelino Informationstechnologie GmbH


How to tell Driver to open acrobat in a new IE?

2004-08-11 Thread Manoj_Nair
I am parsing my XML file through FOP parser and then telling the driver to
render it as PDF. The process is initiated by clicking on a button on IE.
What happens is the current IE instance opens the acrobat and displays the
PDF it.

The users have to hit back button to get back to the application.

My question is how do i tell the Driver to open the PDF in a separate
instance of acrobat (within a new IE instance) or just by  acrobat
independently.

Thanks
Manoj

My sample code is below

 public void renderXML(XSLTInputHandler input,
  HttpServletResponse response) throws ServletException
{
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.setContentType(CONTENT_TYPE);
Driver driver = new Driver();
String OS = System.getProperty("os.name");
driver.setLogger(log);
driver.setErrorDump(true);
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(out);
driver.render(input.getParser(), input.getInputSource());

byte[] content = out.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();
} catch (Exception ex) {
throw new ServletException(ex);
}
 }