Author: jacopoc
Date: Wed Jun 2 09:36:15 2010
New Revision: 950454
URL:
http://svn.apache.org/viewvc?rev=950454&view=revLog:
Formatting fixes: no functional changes.
Modified:
ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java
Modified: ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java?rev=950454&r1=950453&r2=950454&view=diff==============================================================================
--- ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java (original)
+++ ofbiz/trunk/framework/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java Wed Jun 2 09:36:15 2010
@@ -81,23 +81,23 @@ public class BirtViewHandler implements
design = engine.openReportDesign(servletContext.getRealPath(page));
}
- Map<String, Object> context = FastMap.newInstance();
+ Map<String, Object> context = FastMap.newInstance();
// set parameters from request
Map<String, Object> parameters = UtilGenerics.cast(request.getAttribute(BirtWorker.BIRT_PARAMETERS));
- if (parameters != null) {
- context.put(BirtWorker.BIRT_PARAMETERS, parameters);
- } else {
- context.put(BirtWorker.BIRT_PARAMETERS, UtilHttp.getParameterMap(request));
- }
- // set locale from request
- Locale locale = (Locale)request.getAttribute(BirtWorker.BIRT_LOCALE);
- if (locale == null) {
- locale = UtilHttp.getLocale(request);
- }
- context.put(BirtWorker.BIRT_LOCALE, locale);
- String birtImageDirectory = UtilProperties.getPropertyValue("birt", "birt.html.image.directory");
- context.put(BirtWorker.BIRT_IMAGE_DIRECTORY, birtImageDirectory);
- BirtWorker.exportReport(design, context, contentType, response.getOutputStream());
+ if (parameters != null) {
+ context.put(BirtWorker.BIRT_PARAMETERS, parameters);
+ } else {
+ context.put(BirtWorker.BIRT_PARAMETERS, UtilHttp.getParameterMap(request));
+ }
+ // set locale from request
+ Locale locale = (Locale)request.getAttribute(BirtWorker.BIRT_LOCALE);
+ if (locale == null) {
+ locale = UtilHttp.getLocale(request);
+ }
+ context.put(BirtWorker.BIRT_LOCALE, locale);
+ String birtImageDirectory = UtilProperties.getPropertyValue("birt", "birt.html.image.directory");
+ context.put(BirtWorker.BIRT_IMAGE_DIRECTORY, birtImageDirectory);
+ BirtWorker.exportReport(design, context, contentType, response.getOutputStream());
} catch (BirtException e) {
throw new ViewHandlerException("Birt Error create engine: " + e.toString(), e);
} catch (IOException e) {