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.report.engine.ir.MasterPageDesign;
import org.eclipse.birt.report.engine.ir.Report;
import org.eclipse.birt.report.engine.ir.TableItemDesign;
import org.eclipse.birt.report.engine.ir.TemplateDesign;
import org.eclipse.birt.report.engine.parser.TextParser;
import org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor;
import org.eclipse.birt.report.model.api.IResourceLocator;
import org.eclipse.birt.report.model.api.ReportDesignHandle;
import org.eclipse.birt.report.model.api.core.IModuleModel;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
**
 * <code>HTMLReportEmitter<code> is a subclass of
 * <code>ContentEmitterAdapter<code> that implements IContentEmitter
 * interface to output IARD Report ojbects to HTML file.
 * 
 * @version $Revision: 1.121 $ $Date: 20060613 09:38:00 $
 *
public class HTMLReportEmitter extends ContentEmitterAdapter
{
	**
	 * the output format
	 *
	public static final String OUTPUT_FORMAT_HTML = "HTML"; 
	**
	 * the default target report file name
	 *
	public static final String REPORT_FILE = "report.html"; 
	**
	 * the default image folder
	 *
	public static final String IMAGE_FOLDER = "image"; 
	**
	 * output stream
	 *
	 OutputStream out = null;
	**
	 * the report content
	 *
	 IReportContent report;
	**
	 * the report runnable instance
	 *
	 IReportRunnable runnable;
	**
	 * the render options
	 *
	 IRenderOption renderOption;
	**
	 * should output the page header & footer
	 *
	 boolean outputMasterPageContent = true;
	**
	 * specifies if the HTML output is embeddable
	 *
	 boolean isEmbeddable = false;
	**
	 * the url encoding
	 *
	 String urlEncoding = null;
	
	**
	 * should we output the report as Right To Left
	 *
	 boolean htmlRtLFlag = false;
	
	 boolean pageFooterFloatFlag = true;
	
	 boolean includeSelectionHandler = false;
	
	 List ouputInstanceIDs = null;
	**
	 * specified the current page number, starting from 0
	 *
	 in