Bug 136770 Cannot view report document from web viewer
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
if ( workingFolder != null
				&& workingFolder.trim( ).endsWith( File.separator ) )
		{
			workingFolder = workingFolder.trim( ).substring( 0,
					workingFolder.trim( ).length( ) - 1 );
		}
		webAppLocale = getLocaleFromString( context
				.getInitParameter( INIT_PARAM_LOCALE ) );
		isWorkingFolderAccessOnly = Boolean
				.valueOf(
						context
								.getInitParameter( INIT_PARAM_WORKING_FOLDER_ACCESS_ONLY ) )
				.booleanValue( );
		clearDocuments( );
	}
	/**
	 * Check whether the viewer is used in designer or not.
	 * 
	 * @param request
	 * @return
	 */
	public static boolean isDesigner( HttpServletRequest request )
	{
		boolean inDEsigner = false;
		if ( "true".equalsIgnoreCase( getParameter( request, PARAM_DESIGNER ) ) ) 
		{
			inDEsigner = true;
		}
		return inDEsigner;