Bug 154178 Support projectFolder in BIRT viewer
If the report supports projectFolder, the viewer also need to enhance for this feature.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
* @param context
	 *            Servlet Context
	 */
	public synchronized static void initParameters( ServletContext context )
	{
		if ( isInitContext )
			return;
		
		workingFolder = context.getInitParameter( INIT_PARAM_REPORT_DIR );
		documentFolder = context.getInitParameter( INIT_PARAM_DOCUMENT_FOLDER );
		if ( workingFolder == null || workingFolder.trim( ).length( ) <= 0 )
		{
			
			workingFolder = context.getRealPath( "/" ); 
		}
		
		
		if ( workingFolder != null
				&& workingFolder.trim( ).endsWith( File.separator ) )
		{
			workingFolder = workingFolder.trim( ).substring( 0,
					workingFolder.trim( ).length( ) - 1 );
		}
		if ( documentFolder == null || documentFolder.trim( ).length( ) <= 0 )
			documentFolder = workingFolder;
		
		webAppLocale = getLocaleFromString( context
				.getInitParameter( INIT_PARAM_LOCALE ) );
		if ( webAppLocale == null )
			webAppLocale = Locale.getDefault( );