Bug 110681 Reportlet
Web pages often use HTML tables instead to organize and position their content. In order to provide more flexibility for integrating report content into the customer web pages, it becomes necessary to introduce a new set of formats that return content as Reportlets or partial DHTML pages. These reportlets can then be included within web pages generated by the customers web application. This project focuses on producing content that is easily embeddable within an overall HTML page.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
{
		if ( value == null )
		{
			return null;
		}
		value = value.replaceAll( "\"", "\"\"" ); 
		boolean needQuote = false;
		needQuote = ( value.indexOf( ',' ) != -1 )
				|| ( value.indexOf( '"' ) != -1 )
				|| ( value.indexOf( 0x0A ) != -1 )
				|| value.startsWith( " " ) || value.endsWith( " " ); 
		value = needQuote ? "\"" + value + "\"" : value; 
		return value;
	}
	/**
	 * Prepare the report parameters.
	 * 
	 * @param request
	 * @param task
	 * @param configVars
	 * @param locale
	 * @return
	 */
	public HashMap parseParameters( HttpServletRequest request,
			IGetParameterDefinitionTask task, Map configVars, Locale locale )
	{
		assert task != null;
		HashMap params = new HashMap( );
		Collection parameterList = task.getParameterDefns( false );
		for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); )