├── .settings ├── org.eclipse.wst.jsdt.ui.superType.name ├── org.eclipse.wst.jsdt.ui.superType.container ├── org.eclipse.jdt.core.prefs ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.common.component └── .jsdtscope ├── WebContent ├── META-INF │ ├── MANIFEST.MF │ └── context.xml ├── icons │ ├── abt.gif │ ├── cnt.gif │ ├── arrow.gif │ ├── btn_3.gif │ ├── btn_4.gif │ ├── btn_5.gif │ ├── home.gif │ ├── logo.jpg │ ├── bullet_m.gif │ ├── h_pizza.gif │ ├── welcome.gif │ ├── btn_2_over.gif │ ├── btn_3_over.gif │ └── btn_4_over.gif ├── Images │ ├── 111.jpg │ ├── 112.gif │ ├── cart.png │ ├── Avatar.jpg │ ├── pizzas │ │ ├── mac.png │ │ ├── ml.png │ │ ├── pic.png │ │ ├── bike.png │ │ ├── break.png │ │ ├── cone.png │ │ ├── eggs.png │ │ ├── love.png │ │ ├── saus.png │ │ ├── tiny.png │ │ ├── bigmess.png │ │ ├── bureger.png │ │ ├── packman.png │ │ ├── rucola.png │ │ ├── strips.png │ │ └── proscuito.png │ └── shopping-cart.png ├── logout.jsp ├── WEB-INF │ ├── glassfish-web.xml │ └── web.xml ├── CSS │ └── tab.css ├── check.jsp ├── login.jsp ├── thank.html ├── register.jsp ├── thank.jsp ├── index.jsp ├── post.jsp ├── order.jsp ├── success.jsp └── w3.css ├── sql-queries.sql ├── README.md ├── src ├── Demo │ ├── MenuItems.java │ └── MinPath.java └── com │ └── db │ └── utils │ └── DbConnection.java ├── .classpath ├── .project └── CODE_OF_CONDUCT.md /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /WebContent/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /WebContent/icons/abt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/abt.gif -------------------------------------------------------------------------------- /WebContent/icons/cnt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/cnt.gif -------------------------------------------------------------------------------- /WebContent/Images/111.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/111.jpg -------------------------------------------------------------------------------- /WebContent/Images/112.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/112.gif -------------------------------------------------------------------------------- /WebContent/Images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/cart.png -------------------------------------------------------------------------------- /WebContent/icons/arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/arrow.gif -------------------------------------------------------------------------------- /WebContent/icons/btn_3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/btn_3.gif -------------------------------------------------------------------------------- /WebContent/icons/btn_4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/btn_4.gif -------------------------------------------------------------------------------- /WebContent/icons/btn_5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/btn_5.gif -------------------------------------------------------------------------------- /WebContent/icons/home.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/home.gif -------------------------------------------------------------------------------- /WebContent/icons/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/logo.jpg -------------------------------------------------------------------------------- /WebContent/Images/Avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/Avatar.jpg -------------------------------------------------------------------------------- /WebContent/icons/bullet_m.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/bullet_m.gif -------------------------------------------------------------------------------- /WebContent/icons/h_pizza.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/h_pizza.gif -------------------------------------------------------------------------------- /WebContent/icons/welcome.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/welcome.gif -------------------------------------------------------------------------------- /WebContent/Images/pizzas/mac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/mac.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/ml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/ml.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/pic.png -------------------------------------------------------------------------------- /WebContent/icons/btn_2_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/btn_2_over.gif -------------------------------------------------------------------------------- /WebContent/icons/btn_3_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/btn_3_over.gif -------------------------------------------------------------------------------- /WebContent/icons/btn_4_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/icons/btn_4_over.gif -------------------------------------------------------------------------------- /WebContent/Images/pizzas/bike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/bike.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/break.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/break.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/cone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/cone.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/eggs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/eggs.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/love.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/love.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/saus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/saus.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/tiny.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/bigmess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/bigmess.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/bureger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/bureger.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/packman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/packman.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/rucola.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/rucola.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/strips.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/strips.png -------------------------------------------------------------------------------- /WebContent/Images/shopping-cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/shopping-cart.png -------------------------------------------------------------------------------- /WebContent/Images/pizzas/proscuito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amitgunjal/food-ordering-app/HEAD/WebContent/Images/pizzas/proscuito.png -------------------------------------------------------------------------------- /WebContent/logout.jsp: -------------------------------------------------------------------------------- 1 | <% 2 | session.setAttribute("userid", null); 3 | session.invalidate(); 4 | response.sendRedirect("index.jsp"); 5 | %> -------------------------------------------------------------------------------- /sql-queries.sql: -------------------------------------------------------------------------------- 1 | create table members(first_name varchar(255) not null, last_name varchar(255) not null, email varchar(255) not null, uname varchar(255) not null, password varchar(255) not null); 2 | 3 | create table items(id int not null, item_name varchar(255) not null, price_rupee int not null); -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # **Food Ordering App** 2 | **How to deploy on your local** 3 | 1. Open in Netbeans/Eclipse 4 | 2. Click `Clean and Build` 5 | 3. Click on `Run or Debug` 6 | 7 | **Prerequisite** - 8 | 1. Java 9 | 2. MySQL 10 | 3. Apache Tomcat 11 | 4. Source `sql-queries.sql` file on your local MySQL 12 | 13 | **Contribution** 14 | 15 | This project is open for contribution. 16 | -------------------------------------------------------------------------------- /src/Demo/MenuItems.java: -------------------------------------------------------------------------------- 1 | package Demo; 2 | 3 | import java.util.ArrayList; 4 | 5 | public class MenuItems { 6 | private int price; 7 | String item_name; 8 | 9 | MenuItems(int price,String item_name) 10 | { 11 | this.price = price; 12 | this.item_name = item_name; 13 | 14 | } 15 | 16 | public void Add_items(int price,String name){ 17 | 18 | 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.7 8 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/glassfish-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Keep a copy of the generated servlet class' java code. 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Pizzashop 4 | 5 | index.html 6 | index.htm 7 | index.jsp 8 | default.html 9 | default.htm 10 | default.jsp 11 | 12 | -------------------------------------------------------------------------------- /src/Demo/MinPath.java: -------------------------------------------------------------------------------- 1 | package Demo; 2 | import java.util.HashMap; 3 | 4 | import com.twilio.sdk.*; 5 | import com.twilio.sdk.client.TwilioRestClient; 6 | import com.twilio.sdk.resource.api.v2010.Account; 7 | 8 | public class MinPath { 9 | // public static void main(String[] args) { 10 | // TwilioRestClient client = new TwilioRestClient(System.getenv("TWILIO_ACCOUNT_SID"),System.getenv("TWILIO_AUTH_TOKEN")); 11 | // Account account = client.getAccount(); 12 | // SmsFactory factory = account.getSmsFactory(); 13 | // HashMap msg = new HashMap<>(); 14 | // msg.put("To","+917387495145"); 15 | // msg.put("From","7066441446"); 16 | // msg.put("Body","Ahoy! from Twilio!"); 17 | // 18 | // factory.create(msg); 19 | // 20 | // } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/com/db/utils/DbConnection.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com.db.utils; 7 | 8 | import com.mysql.jdbc.Connection; 9 | import java.sql.DriverManager; 10 | import java.sql.SQLException; 11 | 12 | /** 13 | * 14 | * @author amit 15 | */ 16 | public class DbConnection { 17 | 18 | final static String DB_NAME = "pizza_shop_db"; 19 | final static String CONNECTION_URL = "jdbc:mysql://localhost:3306/" + DB_NAME; 20 | final static String USERNAME = "amit"; 21 | final static String PASSWORD = "root"; 22 | 23 | public static Connection init() throws ClassNotFoundException, SQLException { 24 | Class.forName("com.mysql.jdbc.Driver"); 25 | return (Connection) DriverManager.getConnection(CONNECTION_URL, USERNAME, PASSWORD); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WebContent/CSS/tab.css: -------------------------------------------------------------------------------- 1 | 2 | 46 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Pizzashop 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.wst.common.project.facet.core.nature 33 | org.eclipse.jdt.core.javanature 34 | org.eclipse.wst.jsdt.core.jsNature 35 | 36 | 37 | -------------------------------------------------------------------------------- /WebContent/check.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="com.db.utils.DbConnection"%> 2 | <%@ page import ="java.sql.*" %> 3 | <% 4 | String user = request.getParameter("uname"); 5 | String pwd = request.getParameter("pass"); 6 | String fname = request.getParameter("fname"); 7 | String lname = request.getParameter("lname"); 8 | String email = request.getParameter("email"); 9 | try { 10 | Connection con = DbConnection.init(); 11 | 12 | Statement st = con.createStatement(); 13 | String q; 14 | ResultSet rs; 15 | 16 | int i = st.executeUpdate("insert ignore into members(first_name, last_name, email, uname, password) values ('" + fname + "','" + lname + "','" + email + "','" + user + "','" + pwd + "')"); 17 | if (i > 0) { 18 | session.setAttribute("userid", user); 19 | response.sendRedirect("success.jsp"); 20 | 21 | } else { 22 | response.sendRedirect("index.jsp"); 23 | 24 | } 25 | 26 | } catch (SQLException se) { 27 | //Handle errors for JDBC 28 | se.printStackTrace(); 29 | } catch (Exception e) { 30 | //Handle errors for Class.forName 31 | e.printStackTrace(); 32 | } 33 | 34 | %> -------------------------------------------------------------------------------- /WebContent/login.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="com.db.utils.DbConnection"%> 2 | <%@ page import ="java.sql.*" 3 | %> 4 | <% 5 | String userid = request.getParameter("uname"); 6 | String pwd = request.getParameter("pass"); 7 | Connection con = DbConnection.init(); 8 | Statement st = con.createStatement(); 9 | ResultSet rs; 10 | 11 | rs = st.executeQuery("select * from members where uname='" + userid + "' and password='" + pwd + "'"); 12 | if (rs.next()) { 13 | session.setAttribute("userid", userid); 14 | response.sendRedirect("success.jsp"); 15 | } else { 16 | %> 17 | 18 | 19 | 20 | Tomato 21 | 22 | 23 | 24 | 30 |
31 |
Tomato
32 |
33 |

34 | !
35 | Wrong Username or Password.
36 | If you do not redirect within 5 seconds click here 37 | 40 |

41 | 42 | <% 43 | } 44 | %> -------------------------------------------------------------------------------- /WebContent/thank.html: -------------------------------------------------------------------------------- 1 | 68 | 92 | 93 | -------------------------------------------------------------------------------- /WebContent/register.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | Registration 8 | 9 | 10 | 11 | 12 | 13 |
14 |
Tomato

15 |
16 |
17 |
18 | Create an account 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 |
First Name
Last Name
Email
User Name
Password
Already have account
50 |
51 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /WebContent/thank.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | <%@ page import="Demo.MinPath"%> 5 | <% 6 | if ((session.getAttribute("userid") == null) || (session.getAttribute("userid") == "")) { 7 | 8 | %> 9 |
10 |
11 | You must logged in first.
12 | Please Login 13 |
14 | <% } else { 15 | 16 | %> 17 | 85 | 110 | 111 | 112 |

Thank you for making Order.....
113 | It will delivered to you within next 10 minutes...

114 |
115 | 116 | 117 |
41 |
42 |

We offer following dishes

43 |
44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
for the Veg. Veg. ProscuitoBreak Pizza
Burger Pizzafor the love of ConeEggs special
for the LoveMac pizzaSweet ML's
Packman'sThe Bike Pizzabest rated Rucola
Saus favourStripsfor the kids
80 |
81 |

Made with love by Amit Gunjal.

82 |
83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /WebContent/post.jsp: -------------------------------------------------------------------------------- 1 | Post Order 2 | 3 | 4 | 5 | 6 | 7 | 8 | 65 | 89 |
90 | Enter Your Delivery Address: 91 | 92 | 93 | 94 | 95 | 96 | 107 | 116 | 117 |
118 |
119 | 120 | 121 |
Enter full Name :
Enter Mobile Num. :
Enter Email Address :
Select your City
Choose delivery region:
Enter full Address :
122 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /WebContent/order.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="com.db.utils.DbConnection"%> 2 | 3 | 4 | 5 | <%@ page import ="java.sql.*"%> 6 | <%@ page import="java.util.ArrayList" %> 7 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 8 | 9 | <% 10 | if ((session.getAttribute("userid") == null) || (session.getAttribute("userid") == "")) { 11 | %> 12 |

The Session was expired..........


13 | 14 | Click here to login again.... 15 | <%} else { 16 | float sum = 0; 17 | Connection con = DbConnection.init(); 18 | Statement st = con.createStatement(); 19 | ResultSet rs; 20 | String[] sports; 21 | %> 22 | 23 | 24 | Confirm your Order.. 25 | 26 | 27 | 28 | 29 | 30 | 85 | 108 | 109 | 110 | 111 | <% ArrayList arraylist = new ArrayList(); 112 | sports = request.getParameterValues("chk1"); 113 | out.println("      

Your cart

"); 114 | out.println(""); 115 | float count = 0; 116 | if (sports != null) { 117 | for (int i = 0; i < sports.length; i++) { 118 | st.executeQuery("select item_name,price_rupee from items where id=" + sports[i] + ""); 119 | rs = st.getResultSet(); 120 | while (rs.next()) { 121 | String nameVal = rs.getString("item_name"); 122 | int catVal = rs.getInt("price_rupee"); 123 | %> 124 | <% 125 | arraylist.add(catVal); 126 | sum += catVal; 127 | int q = 1; 128 | count++; 129 | out.println( 130 | ""); 131 | count += 1; 132 | } 133 | } 134 | 135 | out.print(""); 136 | out.print(""); 137 | } else { 138 | %> 139 | 140 | 141 | <% }%> 142 |
Item NameQuantityTotal
" + nameVal + "" + q + "
" + catVal + "
Total" + count / 2 + "" + sum + "
143 |

 Shop more items

144 | 145 |