]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
JSPs don't support @Inject and @PostConstruct annotations
authorRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 19:39:51 +0000 (21:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 19:39:51 +0000 (21:39 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

web/index.jsp

index b5e641aafd7bde9ce0d5b63cf94faa28636fa104..6a540763fa2553c492cce8c9ff2421ed3600935c 100644 (file)
 <%@taglib prefix="basket" uri="http://mxchange.org/pizza-service/tags/basket" %>
 <jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
 
+<jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
+<jsp:setProperty name="controller" property="basket" value="${basket}" />
+<%controller.init();%>
+
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
        <head>
@@ -41,7 +45,7 @@
                        </div>
 
                        <div id="content">
-                               <basket:mini_basket basket="${controller.basket}" />
+                               <basket:mini_basket basket="${basket}" />
 
                                <table class="table">
                                        <tr>