package org.opennms.web.report.database;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.webflow.core.FlowException;
import org.springframework.webflow.execution.FlowExecutionOutcome;
import org.springframework.webflow.execution.repository.NoSuchFlowExecutionException;
import org.springframework.webflow.mvc.servlet.AbstractFlowHandler;

public class DatabaseReportBuilderFlowHander extends AbstractFlowHandler {
    
    @Override
    public String handleExecutionOutcome(FlowExecutionOutcome outcome, HttpServletRequest request,
        HttpServletResponse response) {
    return "contextRelative:/report/database/batchList.htm";
    }

    @Override
    public String handleException(FlowException e, HttpServletRequest request, HttpServletResponse response) {
    if (e instanceof NoSuchFlowExecutionException) {
        return "contextRelative:/report/database/batchList.htm";
    } else {
        throw e;
    }
    }

}

@@ -828,24 +828,28 @@
 response) %7B%0A
+    
     if (e in
@@ -885,24 +885,28 @@
 xception) %7B%0A
+    
         retu
@@ -962,16 +962,20 @@
 m%22;%0A    
+  
+  
 %7D else %7B
@@ -983,16 +983,20 @@
         
+   
+ 
 throw e;
@@ -996,16 +996,20 @@
 hrow e;%0A
+    
     %7D%0A  

change outcome and exception for atabaseReportBuilderFlowHander.java to result in batchList.jsp