Bug 139107 Birt viewer with no error messages response
My birt viewer is under tomcat 5.5 webapps. I have a report with report parameters, account and password, to connect to database. Everything is doing just fine with correct account and password. However, when the account/password is wrong, the viewer show up the report title and got no error message or data. I've tried the report at Eclipse. if the password is wrong, I can get error message something like "failed to get connection". And I also turn the viewer log to FINEST, the "failed to get connection" message exist in the log file. Don't know how to let the error message response to the browser, otherwise users got no idea is there errors or no data.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
ontent report )
	{
		logger.log( Level.FINE, "[HTMLReportEmitter] End body." ); 
		 report != null )
		{
			List errors = report.getErrors( );
			 errors != null && !errors.isEmpty( ) )
			{
				outputErrors( errors );
			}
		}
		 !isEmbeddable )
		{
			writer.closeTag( HTMLTags.TAG_BODY );
			writer.closeTag( HTMLTags.TAG_HTML );
		}
		else
		{
			writer.closeTag( HTMLTags.TAG_DIV );
		}
		writer.endWriter( );
		writer.close( );
		 out != null )
		{
			try
			{
				out.close( );
			}
			catch ( IOException e )
			{
				logger.log( Level.WARNING, e.getMessage( ), e );
			}
		}
	}
	*** 
     * output the style of page headerfooterbody.
	 * In embedded HTML, we output the style as inline style, otherwise
     * use the style name as the "class"
	 * @param styleName name of the style
	 * @param style style object
	 *
	public void handlePageStyle( String styleName, IStyle style )
	{
		 isEmbeddable )
		{
			StringBuffer styleBuffer = new StringBuffer( );
			lder.buildStyle( styleBuffer, style, this );
			ttribute( HTMLTags.ATTR_STYLE, styleBuffer.toString( ) );
		}
		else
		{
			setStyleName( styleName );					
		}	
	}
	*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.engine.emitter.IContentEmitter#startPage(org.eclipse.birt.report.engine.content.IPageContent)
	 *
	public void startPage( IPageContent page )
	{
		pageNo++;
		
		 pageNo > 1 && outputMasterPageContent == false )
		{
			writer.openTag( "hr" );
			writer.closeTag( "hr" );
		}
		
		writer.openTag( HTMLTags.TAG_DIV );
		 htmlRtLFlag )
		{
			ttribute( HTMLTags.ATTR_HTML_DIR, "RTL" );
		}
		
		 pageNo > 1 )
		{
			ttribute( HTMLTags.ATTR_STYLE, "page-break-before: always;" );
		}
		
		 page != null )
		{
			 outputMasterPageContent )
			{
				
				writer.openTag( HTMLTags.TAG_DIV );		
				handlePageStyle( page.getPageHeader().getStyleClass( ), page.getPageHeader().getStyle( ) );
				
				contentVisitor.visitChildren( page.getPageHeader( ), null );
				
				
				writer.closeTag( HTMLTags.TAG_DIV );
			}
