diff --git a/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopSearchController.java b/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopSearchController.java index 53d03fb..895900d 100644 --- a/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopSearchController.java +++ b/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopSearchController.java @@ -42,9 +42,8 @@ public class ShopSearchController { List
articles = articleRepository.getArticlesByCategory(category); //search by Category model.addAttribute("articles", articles); } else { - request.setAttribute("error", "Es wurden keine Suchparameter angegeben."); - response.setStatus(HttpServletResponse.SC_NOT_FOUND); - return "error/404"; + List
articles = SearchByTermAction.searchByTerm("", articleRepository); + model.addAttribute("articles", articles); } // Show term in search box