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
NG );
			}
			outputMasterPageContent = htmlOption.getMasterPageContent( );
			IHTMLActionHandler actHandler = htmlOption.getActionHandle( );
			 ac != null )
			{
				actionHandler = actHandler;
			}
			pageFooterFloatFlag = htmlOption.getPageFooterFloatFlag( );
			htmlRtLFlag = htmlOption.getHtmlRtLFlag( );
			includeSelectionHandler = htmlOption.getIncludeSelectionHandle( );
			ouputInstanceIDs = htmlOption.getInstanceIDs( );
		}
		writer = new HTMLWriter( );
	}
	**
	 * @return the <code>Report<code> object.
	 *
	public IReportContent getReport( )
	{
		return report;
	}
	**
	 * Pushes the Boolean indicating whether or not the item is hidden according
	 * to the style
	 * 
	 * @param style
	 *
	public void push( IStyle style )
	{
		stack.push( new Boolean( peek( style ) ) );
	}
	**
	 * Pops the element of the stack
	 * 
	 * @return the boolean indicating whether or not the item is hidden
	 *
	public boolean pop( )
	{
		return ( (Boolean) stack.pop( ) ).booleanValue( );
	}
	**
	 * Peeks the element of stack
	 * 
	 * @param style
	 * @return the boolean indicating whether or not the item is hidden
	 *
	public boolean peek( IStyle style )
	{
		boolean isHidden = false;
		 !stack.empty( ) )
		{
			isHidden = ( (Boolean) stack.peek( ) ).booleanValue( );
		}
		 !isHidden )
		{
			String formats = style.getVisibleFormat( );
			 formats != null
					&& ( formats.indexOf( EngineIRConstants.FORMAT_TYPE_VIEWER ) >= 0 || formats
							.indexOf( BIRTConstants.BIRT_ALL_VALUE ) >= 0 ) )
			{
				isHidden = true;
			}
		}
		return isHidden;
	}
	**
	 * Checks if the current item is hidden
	 * 
	 * @return a boolean value
	 *
	public boolean isHidden( )
	{
		return ( (Boolean) stack.peek( ) ).booleanValue( );
	}
	*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.engine.emitter.IContentEmitter#getOutputFormat()
	 *
	public String getOutputFormat( )
	{
		return OUTPUT_FORMAT_HTML;
	}
	**
	 * Fixes a PNG problem related to transparency. See
	 * http:homepage.ntlworld.combobos