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

	 * <tr>
	 * <tr valign=top bgcolor="#eeeeff">
	 * <td>DISPLAY_INLINE<td>
	 * <td>SPAN<td>
	 * <tr>
	 * <table>
	 * 
	 * @param display
	 *            The display type.
	 * @param mask
	 *            The mask value.
	 * @return Tag name.
	 *
	 String openTagByType( int display, int mask )
	{
		int flag = display & mask;
		 ( flag & DISPLAY_BLOCK ) > 0 )
		{
			writer.openTag( HTMLTags.TAG_DIV );
			return HTMLTags.TAG_DIV;
		}
		 ( flag & DISPLAY_INLINE ) > 0 )
		{
			writer.openTag( HTMLTags.TAG_SPAN );
			return HTMLTags.TAG_SPAN;
		}
		return null;
	}
	**
	 * Set the display property to style.
	 * 
	 * @param display
	 *            The display type.
	 * @param mask
	 *            The mask.
	 * @param styleBuffer
	 *            The <code>StringBuffer<code> object that returns 'style'
	 *            content.
	 *
	 void setDisplayProperty( int display, int mask,
			StringBuffer styleBuffer )
	{
		int flag = display & mask;
		 ( display & DISPLAY_NONE ) > 0 )
		{
			styleBuffer.append( "display: none;" ); 
		}
		else  flag > 0 )
		{
			 ( flag & DISPLAY_BLOCK ) > 0 )
			{
				styleBuffer.append( "display: block;" ); 
			}
			else  ( flag & DISPLAY_INLINE_BLOCK ) > 0 )
			{
				styleBuffer.append( "display: inline-block;" ); 
			}
			else  ( flag & DISPLAY_INLINE ) > 0 )
			{
				styleBuffer.append( "display: inline;" ); 
			}
		}
	}
	**
	 * Checks the Action object and then output corresponding tag and property.
	 * 
	 * @param action
	 *            The <code>IHyperlinkAction<code> object.
	 * @return A <code>boolean<code> value indicating whether the Action
	 *         object is valid or not.
	 *
	 boolean handleAction( IHyperlinkAction action )
	{
		 action == null )
		{
			return false;
		}
		Action act = new Action( action );
		 actionHandler == null )
		{
			return false;
		}
		String link = actionHandler.getURL( act, renderContext );
		boolean ret = ( link != null && !link.equals( "" ) ); 
		
		{
			writer.openTag( HTMLTags.TAG_A );
			ttribute( HTMLTags.ATTR_