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
 margin edge is offset to the
	 *            right of the left edge of the box's containing block.
	 * @param y
	 *            Specifies how far an absolutely positioned box's top margin
	 *            edge is offset below the top edge of the box's containing
	 *            block.
	 * @param w
	 *            The w of the element.
	 * @param height
	 *            The height of the element.
	 * @param style
	 *            The <code>IStyle<code> object.
	 * @param styleBuffer
	 *            The <code>StringBuffer<code> object that returns 'style'
	 *            content.
	 * @return The display type of the element.
	 *
	 int checkElementType( DimensionType x, DimensionType y,
			IStyle style, StringBuffer styleBuffer )
	{
		return checkElementType( x, y, null, null, style, styleBuffer );
	}
	 int checkElementType( DimensionType x, DimensionType y,
			DimensionType w, DimensionType height, IStyle style,
			StringBuffer styleBuffer )
	{
		int type = 0;
		String display = null;
		 style != null )
		{
			display = style.getDisplay( );
		}
		 EngineIRConstants.DISPLAY_NONE.equalsIgnoreCase( display ) )
		{
			type |= DISPLAY_NONE;
		}
		 x != null || y != null )
		{
			styleBuffer.append( "position: absolute;" ); 
			lder.buildSize( styleBuffer, HTMLTags.ATTR_LEFT, x );
			lder.buildSize( styleBuffer, HTMLTags.ATTR_LEFT, y );
			return type | DISPLAY_BLOCK;
		}
		else  EngineIRConstants.DISPLAY_INLINE.equalsIgnoreCase( display ) )
		{
			type |= DISPLAY_INLINE;
			 w != null || height != null )
			{
				type |= DISPLAY_INLINE_BLOCK;
			}
			return type;
		}
		return type | DISPLAY_BLOCK;
	}
	**
	 * Open a tag according to the display type of the element. Here is the
	 * mapping table:
	 * <p>
	 * <table border=0 cellspacing=3 cellpadding=0 summary="Chart showing
	 * symbol, location, localized, and meaning.">
	 * <tr bgcolor="#ccccff">
	 * <th align=left>Display Type<th>
	 * <th align=left>Tag name<th>
	 * <tr>
	 * <tr valign=middle>
	 * <td>DISPLAY_BLOCK<td>
	 * <td>DIV<td>