Bug 212117 Fail to display reportlet to another target iframe[0603]
Description: Fail to display reportlet from run servlet to another target iframe Build number:2.3.0.v20071206 Steps to reproduce: 1. Deploy birt or create BIRT web project. 2. Preview attached jsp. Expected result: Display chart reportlet in target iframe. Actual result: Exception to say document instance is missing. Error log:see screen shot
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtGetPageAllActionHandler.java
}
		else
		{
			
			IViewerReportDesignHandle reportDesignHandle = attrBean
					.getReportDesignHandle( context.getRequest( ) );
			Map parameterMap = attrBean.getParameters( );
			if ( parameterMap == null )
				parameterMap = new HashMap( );
			Map displayTexts = attrBean.getDisplayTexts( );
			if ( displayTexts == null )
				displayTexts = new HashMap( );
			
			BirtUtility.handleOperation( operation, attrBean, parameterMap,
					displayTexts );
			getReportService( ).runAndRenderReport( reportDesignHandle,
					docName, options, parameterMap, out, new ArrayList( ),
					displayTexts );
		}
		
		UpdateContent content = new UpdateContent( );
		content.setContent( DataUtil.toUTF8( out.toByteArray( ) ) );
		content.setTarget( "Document" ); 
		if ( bookmark != null )
			content.setBookmark( bookmark );
		Update updateDocument = new Update( );
		updateDocument.setUpdateContent( content );
		response.setUpdate( new Update[]{updateDocument} );
	}
}