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
ange its content
			ttribute( "onresize", b+".reload()"); 
			
			ttribute( HTMLTags.ATTR_TYPE, "imagesvg+xml" ); 
			ttribute( HTMLTags.ATTR_SRC, imgUri );
			setStyleName( image.getStyleClass( ) );
			StringBuffer buffer = new StringBuffer( );
			 build size
			lder.buildSize( buffer, HTMLTags.ATTR_WIDTH, image
					.getW( ) ); 
			lder.buildSize( buffer, HTMLTags.ATTR_HEIGHT, image
					.getHeight( ) ); 
			 handle inline style
			handleStyle( image, buffer, false );
			writer.closeNoEndTag( );
		}
		else
		{  use img
			 write image map if necessary
			Object imageMapObject = image.getImageMap( );
			 use imgUri as the image ID. As we know only the CHART can have
			 image maps and each chart
			 will have differnt URI, so it is safe for CHART. (If the named
			 image also support image
			 map, then we must use another way to get the image ID.
			String imageMapId = imgUri;
			boolean hasImageMap = ( imageMapObject != null )
					&& ( imageMapObject instanceof String )
					&& ( ( (String) imageMapObject ).length( ) > 0 );
			 hasImageMap )
			{
				writer.openTag( HTMLTags.TAG_MAP );
				ttribute( HTMLTags.ATTR_NAME, imageMapId );
				writer.text( (String) imageMapObject, true, false );
				writer.closeTag( HTMLTags.TAG_MAP );
			}
			writer.openTag( HTMLTags.TAG_IMAGE ); 
			setStyleName( image.getStyleClass( ) );
			setDisplayProperty( display, 0, styleBuffer );
			
			
			String b = image.getB( );				
			 !isSelectHandleTableChart )
			{
				 b == null )
				{
					b = generateUniqueID( );
					image.setB( b );
				}
				setB( HTMLTags.ATTR_IMAGE, b ); 
				
				 if the image is a chart, add it to active id list, and output type ��iid to html
				setActiveIDTypeIID( image );
			}
			else
			{
				b = generateUniqueID( );
				setB( HTMLTags.ATTR_IMAGE, b ); 
			}
			
			String ext = image.getExtension( );
			 special process, such as encoding etc
			ttribute( HTMLTags.ATTR_SRC, imgUri );
			 hasImageMap )
			{
				 BUGZILLA 119245 request chart (without hype