} else if ( outputName.equals( ChartComponent.HTML_MAPPING_HTML ) ) {
outputValue = mapString;
} else if ( outputName.equals( ChartComponent.BASE_URL_OUTPUT ) ) {
IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
outputValue = requestContext.getContextPath();
} else if ( outputName.equals( ChartComponent.CONTEXT_PATH_OUTPUT ) ) {
IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
outputValue = requestContext.getContextPath();
} else if ( outputName.equals( ChartComponent.FULLY_QUALIFIED_SERVER_URL_OUTPUT ) ) {
IApplicationContext applicationContext = PentahoSystem.getApplicationContext();
if ( applicationContext != null ) {
outputValue = applicationContext.getFullyQualifiedServerURL();
} else {
IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
outputValue = requestContext.getContextPath();
}
} else if ( outputName.equals( ChartComponent.HTML_IMG_TAG ) ) {
outputValue = hasTemplate ? mapString : ""; //$NON-NLS-1$
outputValue += "<img border=\"0\" "; //$NON-NLS-1$
outputValue += "width=\"" + width + "\" "; //$NON-NLS-1$//$NON-NLS-2$
outputValue += "height=\"" + height + "\" "; //$NON-NLS-1$//$NON-NLS-2$
if ( hasTemplate ) {
outputValue +=
"usemap=\"#" + fileResults[ChartComponent.MAP_NAME].getName().substring( 0,
fileResults[ ChartComponent.MAP_NAME ].getName().indexOf( '.' ) ) + "\" "; //$NON-NLS-1$//$NON-NLS-2$
}
IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
String contextPath = requestContext.getContextPath();
outputValue +=
"src=\"" + contextPath + "getImage?image=" + fileResults[ChartComponent.FILE_NAME].getName() + "\"/>"; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
}