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
	 * 
	 * @param content
	 *            the styled element content
	 *
	private void setActiveIDTypeIID( IContent content )
	{
		 If content is generated by LabelItemDesign or TemplateDesign,
		 ExtendedItemDesign, TableItemDesign
		 add it to active id list, and output type & iid to html
		Object genBy = content.getGenerateBy( );
		String type = null;
		genBy instanceof LabelItemDesign)
		{
			type = "LABEL";
		}
		else genBy instanceof TemplateDesign)
		{
			type = "TEMPLATE";
		}
		
		else if( genBy instanceof ExtendedItemDesign )
		{
			type = "EXTENDED" ;
		}
		else  genBy instanceof TableItemDesign )
		{
			type = "TABLE";
		}
		else genBy instanceof ListItemDesign)
		{
			type = "LIST";
		}
		type != null)
		{
			 I
			id = content.getInstanceID( );
			long componentID = ( iid != null ) ? iid.getComponentID( ) : 0;
			setActiveIDTypeIID( content.getB( ), type, iid, componentID );
		}
	}
	private void setActiveIDTypeIID( String b, String type,
			id, long elementId )
	{
		exportElementID( b, type, elementId );
		 type
		ttribute( "element_type", type );
		 iid != null )
		{
			ttribute( "iid", iid.toString( ) );
		}
	}
	
	**
	 * Resize chart template and table template element.
	 * 
	 * @param content
	 *            the styled element content
	 *
	private void resizeTemplateElement( IContent content )
	{
			Object genBy = content.getGenerateBy( );
			if( genBy instanceof TemplateDesign )
			{
				TemplateDesign template = (TemplateDesign) genBy;
				
				String allowedType = template.getAllowedType( );
				 "ExtendedItem".equals(allowedType ) )
				{
					 Resize chart template element
					IStyle style = content.getStyle( );
					style.setProperty( IStyle.STYLE_CAN_SHRINK, IStyle.FALSE_VALUE );
					content.setW( new DimensionType( 3, DimensionType.UNITS_IN ) );
					content.setHeight( new DimensionType( 3, DimensionType.UNITS_IN ) );
				}
				else  "Table".equals(allowedType) )
				{
					 Resize table template element
					IStyle style = content.getStyle( )