Bug 167779 BIRT report jsp tag can't access sample report with document folder setted.[0603]
Description: BIRT report jsp tag can't access sample report with document folder setted to other local directory. Build number:2.2.0.v20061213 Steps to reproduce: 1. New a BIRT Web project. 2. Set BIRT_VIEWER_DOCUMENT_FOLDER to c:\ in web.xm 3. New a jsp file based on BIRT template 4. Input below content in body: <birt:report id="kkkk" name="first sample" reportDesign="test.rptdesign"> </birt:report> 5. Run the server and preview the jsp file. Expected result: Sample report displays. Actual result: The report file : c:\\test.rptdesign does not exist or contains errors. The report file : c:\\test.rptdesign does not exist or contains errors Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ReportTag.java
{
		
		outputFormat = BirtTagUtil.getFormat( viewer.getFormat( ) );
		
		
		if ( !outputFormat
				.equalsIgnoreCase( ParameterAccessor.PARAM_FORMAT_HTML )
				|| BirtTagUtil.convertToBoolean( viewer
						.getForceParameterPrompting( ) ) )
		{
			__handleIFrame( viewer.createURI( IBirtConstants.VIEWER_PREVIEW ),
					viewer.getId( ) );
			return;
		}
		
		this.options = new InputOptions( );
		options.setOption( InputOptions.OPT_REQUEST,
				(HttpServletRequest) pageContext.getRequest( ) );
		options.setOption( InputOptions.OPT_LOCALE, this.locale );
		options.setOption( InputOptions.OPT_RTL, Boolean.valueOf( viewer
				.getRtl( ) ) );
		options.setOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT, Boolean
				.valueOf( viewer.getAllowMasterPage( ) ) );
		options.setOption( InputOptions.OPT_SVG_FLAG, Boolean.valueOf( viewer
				.getSvg( ) ) );
		options.setOption( InputOptions.OPT_FORMAT, outputFormat );
		options.setOption( InputOptions.OPT_IS_DESIGNER, new Boolean( false ) );
		options.setOption( InputOptions.OPT_SERVLET_PATH,
				IBirtConstants.SERVLET_PATH_PREVIEW );