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
t pageNo = 0;
	**
	 * the <code>HTMLWriter<code> object that is used to output HTML content
	 *
	 HTMLWriter writer;
	**
	 * the image reder context
	 *
	 Object renderContext;
	**
	 * indicates that the styled element is hidden or not
	 *
	 Stack stack = new Stack( );
	**
	 * An Log object that <code>HTMLReportEmitter<code> use to log the error,
	 * debug, information messages.
	 *
	 static Logger logger = Logger.getLogger( HTMLReportEmitter.class
			.getName( ) );
	**
	 * html image handler
	 *
	 IHTMLImageHandler imageHandler;
	**
	 * html action handler
	 *
	 IHTMLActionHandler actionHandler;
	**
	 * emitter services
	 *
	 IEmitterServices services;
	**
	 * The <code>tagStack<code> that stores the tag names to be closed in
	 * <code>endContainer()<code>.
	 *
	private Stack tagStack = new Stack( );
	**
	 * display type of Block
	 *
	 static final int DISPLAY_BLOCK = 1;
	**
	 * display type of Inline
	 *
	 static final int DISPLAY_INLINE = 2;
	**
	 * display type of Inline-Block
	 *
	 static final int DISPLAY_INLINE_BLOCK = 4;
	**
	 * display type of none
	 *
	 static final int DISPLAY_NONE = 8;
	**
	 * display flag which contains all display types
	 *
	 static final int DISPLAY_FLAG_ALL = 0xffff;
	**
	 * content visitor that is used to handle page headerfooter
	 *
	 ContentEmitterVisitor contentVisitor;
	private Stack detailRowStateStack = new Stack( );
	**
	 * the constructor
	 *
	public HTMLReportEmitter( )
	{
		contentVisitor = new ContentEmitterVisitor( this );
	}
	*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.engine.emitter.IContentEmitter#initialize(org.eclipse.birt.report.engine.emitter.IEmitterServices)
	 *
	public void initialize( IEmitterServices services )
	{
		this.services = services;
		Object fd = services.getOption( RenderOptionBase.OUTPUT_FILE_NAME );
		File file = null;
		try
		{
			 fd != null )
			{
				file = new File( fd.toString( ) );
				File parent = file.getParentFile( );
				 parent != null && !parent.exists( ) )
				{
					p