Author: ssmiweve
Date: 2009-07-14 12:41:17 +0200 (Tue, 14 Jul 2009)
New Revision: 7236

Modified:
   
branches/2.18/war/src/main/java/no/sesat/search/http/servlet/SearchServlet.java
Log:
avoid the unneccessary  "reponse already committed" exception. will only hide 
the real exception/problem.


Modified: 
branches/2.18/war/src/main/java/no/sesat/search/http/servlet/SearchServlet.java
===================================================================
--- 
branches/2.18/war/src/main/java/no/sesat/search/http/servlet/SearchServlet.java 
    2009-07-14 10:27:48 UTC (rev 7235)
+++ 
branches/2.18/war/src/main/java/no/sesat/search/http/servlet/SearchServlet.java 
    2009-07-14 10:41:17 UTC (rev 7236)
@@ -1,5 +1,5 @@
 /*
- * Copyright (2005-2008) Schibsted ASA
+ * Copyright (2005-2009) Schibsted ASA
  * This file is part of SESAT.
  *
  *   SESAT is free software: you can redistribute it and/or modify
@@ -108,8 +108,6 @@
 
     // Public --------------------------------------------------------
 
-    /** {...@inheritdoc}
-     */
     @Override
     public void destroy() {
         super.destroy();
@@ -215,15 +213,12 @@
 
                 } else {
                     performSearch(request, response, genericCxt, searchTab, 
stopWatch);
+                    
getServletContext().getRequestDispatcher("/WEB-INF/jsp/start.jsp").forward(request,
 response);
                 }
-
             }else{
                 response.sendError(HttpServletResponse.SC_NOT_FOUND);
             }
 
-            RequestDispatcher dispatcher = 
getServletContext().getRequestDispatcher("/WEB-INF/jsp/start.jsp");
-            dispatcher.forward(request, response);
-
         }finally{
 
             // DataModel's ControlLevel will be REQUEST_CONSTRUCTION or 
RUNNING_QUERY_HANDLING

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to