I am developing a web app using jsp that needs to dynamically create xml files, then using fop I convert those files into pdf's.

I would need to be able to open multiple pdf files in a row...

Here's what I have so far....this will only open the 1st file...
I don't need to open the pdf files in a web browser, it can be done in acrobat reader if needs be...

also, I should mention, I should not assume that I will have write access to the server Hard Discs.


Code:
do
{
    if ( ( ( startRec * cache) + 1 ) <= ( min( ( startRec + 1 ) * cache, recCount ) ) )
    {
        System.out.println( ( startRec * cache ) + 1 + "-" + min( ( startRec + 1 ) * cache, recCount ) );

        String xmlString = xmlStart;
        for ( int n=( startRec * cache ); n<min( ( startRec + 1 ) * cache, recCount ); n++ )
        {
            ViewFileDetailsBean viewBean = (ViewFileDetailsBean)listOfViewFileDetailsBean.get(n);

            xmlString = xmlString + viewBean.getxMLString();
        }
        xmlString = xmlString + "/t></data>\n"; // THIS FINISHES THE XML

        pdfBean.makePDF( xmlString );

        response.setContentLength( pdfBean.getOutput().length );
        response.setContentType( "application/pdf" );
        response.getOutputStream().write( pdfBean.getOutput() );
        response.getOutputStream().flush();
    }
    startRec++;
}while ( startRec <= ( recCount / cache ) );

Thanks,

GoldenEye4ever