Bug 179636 [Smoke] Chart can not be previewed [0001]
Description: Chart can not be previewed Build number: 2.2.0.v20070328-0630 Steps to reproduce: 1. New a chart, preview. Expected result: Chart is displayed correctly. Actual result: Chart can not be previewed. Error log: N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java
{
	/**
	 * Anything before do service.
	 * 
	 * @param request
	 *            incoming http request
	 * @param response
	 *            http response
	 * @exception ServletException
	 * @exception IOException
	 */
	protected void doPreService( HttpServletRequest request,
			HttpServletResponse response ) throws ServletException, IOException
	{
		String format = ParameterAccessor.getFormat( request );
		String openType = ParameterAccessor.getOpenType( request );
		if ( IBirtConstants.SERVLET_PATH_DOWNLOAD.equalsIgnoreCase( request
				.getServletPath( ) ) )
		{
			response.setContentType( "text/plain; charset=utf-8" ); 
			response
					.setHeader(
							"Content-Disposition", "attachment; filename=exportdata.csv" );