From 78fc588327b86598b89acecbfe621e5247ff37a0 Mon Sep 17 00:00:00 2001 From: Ziedelth Date: Wed, 29 Jun 2022 19:47:46 +0200 Subject: [PATCH] Fix menu button? --- .../classes/controller/BddController.class | Bin 7417 -> 7785 bytes nbproject/private/private.properties | 6 +++--- nbproject/private/private.xml | 8 +------- src/java/controller/BddController.java | 18 +++++++++++++++++- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/build/web/WEB-INF/classes/controller/BddController.class b/build/web/WEB-INF/classes/controller/BddController.class index d2974448f4d396f9f55c12bae36894de5aba1a01..537f2b48df94e63a5bcff9671c707b611b8769da 100644 GIT binary patch literal 7785 zcmbVR3w%`7o&Nrr$=s9Vn!rVnM8JSNLP8i3j0!>xA(qf2pg|;Rg`4Cixj2~_<`F=& zy1TZkw7T83FRksW+b-K`t8HZsoF1(bkrB>pr`?-EG%>ce`xse&@b2!93=E|3<@C?3e;Mr=_;z@w-Yx?8)YWxviF!09;_f%sZj_Z#X zwTQ1PyrgiymilrvzJcczzNyzaX~CZ;Jfxq0s_>w~M-=|dz@JxR1)kI&-%|Ltf$u21 zqVQdX?u{EfojD*TgVhH5GWD-tf-Ng#FbPkNhmRtC?!=2k145EQlrFFa-Nb}C3Q+>=>xOrv{-sH zN6Gn0=IY@*B^OYS%-0|FdZj_hg@!CJWTC+9N~fJ%N6OCUoxGqjl^Jo<0;_wUJ#Hsc zc6ub)SID{Pkqv@a_P~&!rdV)OZr(09#hjqFJMZMi-9aaLJqO%mP)^>>P)4IC<6u&6 zNI8Y%XrYizZskXxzk{0-SGj4ou!*9ZR_+qSJ2FF#psw3ZJH5rR0VlW99!PP;>dp+> zsa zoCBHMt;qwaEOX86{GgG-!dI8mt-cKXaISGZ*iM1t zYF$z$ZpR%aiWoO!ktvI1i6Ix8vQ(CtIEX_m$ntvPZdq>PHXJr(g*4IZB3~P_(v)Ut zG4UI?+mKbJw90D11!tD*=AxS#(y=qr1Nz)XQ<8FtDQo0XJz8tZI$37OWu~;ra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NH^l|G4IkwwL1_c{7)MFU?8Ortr6~CZHaU-QyNMU;U*bqj!`COG z0P%_*;H$Hml+#i=QSF>N&AH(2d6uf5M=S3D+KB*vov{<0u@jv$;O~=>A<|6~>v{fI zn5h6Z%v6|*xJqnbro!woQ(^X)sW5vg&RHFS8cqC5v|n(#PUFBN4z?ux8t)GoZI`9J>) D>Z|>j diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties index d0f43c9..5518af6 100644 --- a/nbproject/private/private.properties +++ b/nbproject/private/private.properties @@ -1,10 +1,10 @@ -deploy.ant.properties.file=C:\\Users\\flifloo\\AppData\\Roaming\\NetBeans\\8.1\\config\\GlassFishEE6\\Properties\\gfv3-1956436209.properties +deploy.ant.properties.file=C:\\Users\\watte\\AppData\\Roaming\\NetBeans\\8.1\\config\\GlassFishEE6\\Properties\\gfv3-1388137795.properties j2ee.platform.is.jsr109=true -j2ee.server.domain=C:/Users/flifloo/AppData/Roaming/NetBeans/8.1/config/GF_4.1.1/domain1 +j2ee.server.domain=C:/Users/watte/AppData/Roaming/NetBeans/8.1/config/GF_4.1.1/domain1 j2ee.server.home=C:/Program Files/glassfish-4.1.1/glassfish j2ee.server.instance=[C:\\Program Files\\glassfish-4.1.1\\glassfish;C:\\Program Files\\glassfish-4.1.1\\glassfish\\domains\\domain1]deployer:gfv3ee6wc:localhost:4848 j2ee.server.middleware=C:/Program Files/glassfish-4.1.1 javac.debug=true javadoc.preview=true selected.browser=Chrome -user.properties.file=C:\\Users\\flifloo\\AppData\\Roaming\\NetBeans\\8.1\\build.properties +user.properties.file=C:\\Users\\watte\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml index e9dbd15..6807a2b 100644 --- a/nbproject/private/private.xml +++ b/nbproject/private/private.xml @@ -2,12 +2,6 @@ - - file:/C:/Users/flifloo/Nextcloud/IUT/JEE/JEE%20Project/Code/src/java/DAO/Product.hbm.xml - file:/C:/Users/flifloo/Nextcloud/IUT/JEE/JEE%20Project/Code/web/WEB-INF/jsp/menu.jsp - file:/C:/Users/flifloo/Nextcloud/IUT/JEE/JEE%20Project/Code/web/WEB-INF/jsp/resultat.jsp - file:/C:/Users/flifloo/Nextcloud/IUT/JEE/JEE%20Project/Code/src/java/controller/BddController.java - file:/C:/Users/flifloo/Nextcloud/IUT/JEE/JEE%20Project/Code/src/java/DAO/MagasinHelper.java - + diff --git a/src/java/controller/BddController.java b/src/java/controller/BddController.java index 1ead67a..a0913de 100644 --- a/src/java/controller/BddController.java +++ b/src/java/controller/BddController.java @@ -62,7 +62,7 @@ public class BddController extends MultiActionController { public ModelAndView list(HttpServletRequest request, HttpServletResponse response) throws Exception { sessionInit(request); - String type = request.getParameter("type"); + String type = request.getAttribute("type").toString(); ModelAndView mv = new ModelAndView("resultat"); mv.addObject("user",session.getAttribute("user")); mv.addObject("type", type); @@ -90,6 +90,22 @@ public class BddController extends MultiActionController { return mv; } + + public ModelAndView purchase(HttpServletRequest request, HttpServletResponse response) throws Exception { + request.setAttribute("type", "purchase"); + return list(request, response); + } + + public ModelAndView product(HttpServletRequest request, HttpServletResponse response) throws Exception { + request.setAttribute("type", "product"); + return list(request, response); + } + + public ModelAndView customer(HttpServletRequest request, HttpServletResponse response) throws Exception { + request.setAttribute("type", "customer"); + return list(request, response); + } + public ModelAndView add(HttpServletRequest request, HttpServletResponse response) throws Exception { sessionInit(request);