Professional Documents
Culture Documents
Front Page of This Project
Front Page of This Project
Front Page of This Project
OPEN UNIVERSITY
PROJECT REPORT
OF
MCS-044
www.bemyshopper.com
ONLINE SELLING TO CUSTOMERS
Under Guidance of Mr. Kamal Tiwari
1
GROCERY STORE
2
GROCERY STORE
Table of Contents
CERTIFICATE OF ORIGINALITY ................................................................................................................................. 5
ACKNOWLEDGEMENT ................................................................................................................................................... 6
SYNOPSIS ............................................................................................................................................................................. 7
INTRODUCTION OF THE PROJECT......................................................................................................................... 39
OBJECTIVES OF THE PROJECT ................................................................................................................................. 40
TOOLS/PLATFORM TO BE USED ............................................................................................................................ 41
SYSTEM ANALYSIS ........................................................................................................................................................ 42
FACT FINDING ........................................................................................................................................................... 42
FEASIBILITY STUDY ................................................................................................................................................ 43
SOFTWARE REQUIREMENT SPECIFICATION............................................................................................... 46
FUNTIONAL REQUIREMENTS ............................................................................................................................. 48
NON-FUNCTIONAL REQUIREMENTS ................................................................................................................ 48
LIFE CYCLE METHODOLOGY ............................................................................................................................... 50
COCOMO MODEL....................................................................................................................................................... 51
SCHEDULING TECHNIQUES ................................................................................................................................. 55
GANTT CHART ...................................................................................................................................................... 55
PERT CHART .......................................................................................................................................................... 56
RISK ANALYSIS AND MANAGEMENT ............................................................................................................... 57
DATA DICTIONARY .................................................................................................................................................. 60
SYSTEM DESIGN............................................................................................................................................................. 62
MODULAR DESCRIPTION ...................................................................................................................................... 62
PROCESS LOGIC ......................................................................................................................................................... 63
ER-DIAGRAM .............................................................................................................................................................. 64
DATA FLOW DIAGRAM .......................................................................................................................................... 65
ZERO LEVEL DFD ................................................................................................................................................. 65
FIRST LEVEL DFD ................................................................................................................................................ 66
SECOND LEVEL DFD ........................................................................................................................................... 67
CLASS DIAGRAM ....................................................................................................................................................... 70
USE CASE DIAGRAM ................................................................................................................................................ 71
3
GROCERY STORE
TESTING ............................................................................................................................................................................ 72
TYPES OF TESTING .................................................................................................................................................. 73
TEST CASES ................................................................................................................................................................. 76
TEST/BUG REPORT ................................................................................................................................................. 87
DEBUGGING ................................................................................................................................................................ 96
IMPLEMENTATION OF SECURITY.......................................................................................................................... 99
DATABASE SECURITY ............................................................................................................................................. 99
DATA SECURITY ...................................................................................................................................................... 101
USERS AND ACCESS RIGHTS .............................................................................................................................. 101
LIMITATIONS OF PROJECT...................................................................................................................................... 103
FUTURE SCOPE OF THE PROJECT ........................................................................................................................ 104
CONCLUSION ................................................................................................................................................................. 105
BIBLIOGRAPHY ............................................................................................................................................................ 107
INPUT AND OUTPUT SCREEN ................................................................................................................................ 108
CODING WITH COMMENTS AND ERROR HANDLING .................................................................................. 142
4
GROCERY STORE
CERTIFICATE OF ORIGINALITY
This is to certify that the project report entitled ONLINE SELLING TO
CUSTOMERS submitted to Indira Gandhi National Open University in
partial fulfilment of the requirement for the award of the degree of
MASTER OF COMPUTER APPLICATIONS (MCA) is an original work
carried out by Mr. PRATEEK SINGH enrolment no. 176608616 under my
guidance. The matter embodied in this project is authentic and is genuine
work done by the student and has not been submitted whether to this
University or to any other University / Institute for the fulfilment of the
requirement of any course of study.
5
GROCERY STORE
ACKNOWLEDGEMENT
Last but not the least I wish to avail myself of this opportunity,
express a sense of gratitude and love to my friends and my beloved
parents for their manual support, strength and help.
6
GROCERY STORE
SYNOPSIS
7
GROCERY STORE
Table of Contents
INTRODUCTION OF THE PROJECT............................................................................................................................ 9
OBJECTIVES OF THE PROJECT ................................................................................................................................. 10
PROJECT CATEGORY .................................................................................................................................................... 11
COMPLETE DESCRIPTION OF THE PROJECT..................................................................................................... 12
FACT FINDING ........................................................................................................................................................... 12
FEASIBILITY STUDY ................................................................................................................................................ 13
HARDWARE AND SOFTWARE CONFIGURATION ....................................................................................... 15
LIFE CYCLE METHODOLOGY ............................................................................................................................... 16
SCHEDULING TECHNIQUES ................................................................................................................................. 17
GANTT CHART ...................................................................................................................................................... 17
PERT CHART .......................................................................................................................................................... 18
SYSTEM DESIGN............................................................................................................................................................. 19
MODULAR DESCRIPTION ...................................................................................................................................... 19
PROCESS LOGIC ......................................................................................................................................................... 20
ER-DIAGRAM .............................................................................................................................................................. 21
DATA FLOW DIAGRAM .......................................................................................................................................... 22
ZERO LEVEL DFD ................................................................................................................................................. 22
FIRST LEVEL DFD ................................................................................................................................................ 23
SECOND LEVEL DFD ........................................................................................................................................... 24
CLASS DIAGRAM ....................................................................................................................................................... 27
USE CASE DIAGRAM ................................................................................................................................................ 28
DATA DICTIONARY .................................................................................................................................................. 29
TESTING TO BE USED .................................................................................................................................................. 31
SYSTEM SECURITY AND VALIDATIOINS ............................................................................................................. 34
FUTURE SCOPE OF THE PROJECT .......................................................................................................................... 36
BIBLIOGRAPHY .............................................................................................................................................................. 37
8
GROCERY STORE
People had to suffer the rush of the market when they went for
shopping. They used to think hundred times to buy anything having the
sufficient money for shopping. The problem was the rush; the quarrel at
the time of buying the things. But the advancement of technology brought
the new way for shopping. The way of shopping was completely changed
with the coming of Internet Technology. People have to fill a simple form
on the internet to place their order on any popular shop or shopping-mall
for the thing they want to buy. Now they can place their order from the
home.
9
GROCERY STORE
10
GROCERY STORE
PROJECT CATEGORY
Web Application
A web application is a software or program which is accessible using
any web browser. Its frontend is usually created using languages like
HTML, CSS, etc.., which are supported by major browsers. While the
backend could use any programming stack like LAMP, MEAN, etc. Unlike
mobile apps, there is no specific SDK for developing web applications.
JSP
➢ It stands for Java Server Pages.
➢ It is a server side technology.
➢ It is used for creating web applications.
➢ It is used to create dynamic web content.
➢ In this JSP tags are used to insert JAVA code into HTML pages.
➢ It is an advanced version of Servlet Technology.
➢ It is a Web based technology helps us to create dynamic and platform
independent web pages.
➢ In this, Java code can be inserted in HTML/XML pages or both.
➢ JSP is first converted into servlet by JSP container before processing
the client’s request.
JSP pages are more advantageous than Servlet:
➢ They are easy to maintain.
➢ No recompilation or redeployment is required.
➢ JSP has access to entire API of JAVA.
➢ JSP are extended version of Servlet.
ORACLE
An Oracle database is a collection of data treated as a unit. The purpose of
a database is to store and retrieve related information. A database server is
the key to solving the problems of information management. In general, a
server reliably manages a large amount of data in a multiuser environment
so that many users can concurrently access the same data. All this is
accomplished while delivering high performance. A database server also
prevents unauthorized access and provides efficient solutions for failure
recovery.
11
GROCERY STORE
Types of Fact-Finding:
I met with one of the employee of Big Basket Company and asked some
question:-
12
GROCERY STORE
I met with one of the employee of Big Basket Company and I observed
how to work in the company and how to manage the workers, sellers
and buyers and how to deliver the product to the customer.
FEASIBILITY STUDY
A feasibility study can help mitigate the risk that a project is wasting
its time. The feasibility study is basically the test of the proposed system
in the light of its workability, meeting user’s requirements, effective use
of resources and of course, the cost effectiveness. The feasibility study
activity involves the analysis of the problem and collection of all relevant
information relating to the product such as the different data items.
Benefits
Since benefits out base the cost, hence our project is economically feasible.
13
GROCERY STORE
14
GROCERY STORE
Software Configuration
Hardware Configuration
RAM - 8 Gigabyte
Mouse - Optical
Monitor - LCD
Processor - Multimedia
15
GROCERY STORE
Waterfall Model
16
GROCERY STORE
SCHEDULING TECHNIQUES
Project planning is the first phase of any project to be going to develop. In
project planning all the necessary and important information and
requirements should be writing and apply to developing a perfect
software system.
Project scheduling is the process by which the various activities that need
to be undertaken during a projects lifetime should be scheduled. There are
a range of activity management tools that are commercially available.
17
GROCERY STORE
PERT CHART
A PERT chart is a graphic representation of a project’s schedule, showing
the sequence of tasks, which tasks can be performed simultaneously, and
the critical path of tasks that must be completed on time in order for the
project to meet its completion deadline. It represents each task of a
project as a box (circle or rectangle), arrows between tasks are used
to show the sequence and task dependencies (i.e. which tasks need to
be complete before others can start).
PERT CHART
18
GROCERY STORE
SYSTEM DESIGN
MODULAR DESCRIPTION
19
GROCERY STORE
PROCESS LOGIC
20
GROCERY STORE
ER-DIAGRAM
21
GROCERY STORE
22
GROCERY STORE
23
GROCERY STORE
24
GROCERY STORE
25
GROCERY STORE
26
GROCERY STORE
CLASS DIAGRAM
27
GROCERY STORE
28
GROCERY STORE
DATA DICTIONARY
Registration Table:
S.R Field Name Data type Size Validation
1. Cust id Int 10 Primary key
2. Username Varchar 10
3. Password Varchar 30
4. Name Varchar 101
5. Address Varchar 300
6. Contact no Varchar 12
7. Email Varchar 500
Customer Table:
S.R Field Name Data type Size Validation
1. Cust_id Int 10 Primary key
2. Username Varchar 10
3. Password Varchar 30
4. Name Varchar 101
5. Address Varchar 300
6. Contact_no Varchar 12
7. Email Varchar 500
Product Table:
S.R Field Name Data type Size Validation
1. Pro_id Varchar 10 Primary key
2. Pro Name Varchar 300
3. Price Varchar 100
4. Description Varchar 300
5. Company Integer 5
6. Pic Datetime
29
GROCERY STORE
Payment Table:
S.R Field Name Data Type Size Validation
1. Receipt No Varchar 20 Primary key
2. Pay date Varchar 200
3. Amount Date 10
4. Cust_ID Varchar 67 Foregin Key
5. Card Type Varchar 50
6. Bank Name Integer 10
7. Card No Integer 23
Order Table:
S.R Field Name Data Type Size Validation
1. OID Varchar 20 Primary key
2. Cust_ID Varchar 200 Foregin Key
3. Product Date Date 10
4. Amount Varchar 67
5. Order date Varchar 50
6. Product Name Varchar 100
7. Quantity Varchar 56
Admin
Field Name Data Type Size Allow Null
30
GROCERY STORE
TESTING TO BE USED
Types of Testing:-
a. Integration Testing – Integration testing is testing in which a group
of components are combined to produce output. Also, the interaction
between software and hardware is tested in integration testing if
software and hardware components have any relation. It may fall
under black box testing.
31
GROCERY STORE
32
GROCERY STORE
testing, transparent box testing and glass box testing. White box
testing is a software testing approach, which intends to test
software with knowledge of internal working of the software. White
box testing approach is used in Unit testing which is usually
performed by software developers. White box testing intends to
execute code and test statements, branches, path, decisions and data
flow within the program being tested.
33
GROCERY STORE
1. ADMIN: - Admin controls the system and only has the permit to
perform all types of operations like INSERT, DELETE, UPDATE,
SELECT, GRANT.
Exception Handling
JSP allows us to build Web applications with any language .We can take
advantage of this language-independent, structured exception handling.
Structured exception handling is done through try/catch/finally blocks. It
is done to handle the exception and to save the lost of information.
Try:-The code which may have exception is placed inside the try block.
Catch:-If an exception occurs in a try block, the catch block catches it and take
the action to save the lost of information. A try block can have multiple catch
blocks.
Finally: - An optional block which always runs either the exception occurs or
not.
DATABASE SECURITY
The term database security derives its meaning as “the way to implement
the database such that there must not be unnecessary leakage of data and
retrieval of data from database must be efficient “.
34
GROCERY STORE
Any organization gives highest priority to its data and information rather
than other components. An organization can recover any type of loss but
that organization cannot get recovered easily if there is an attempt to loss
data of organization. This is primary motivation to implement the database
security in an organization.
35
GROCERY STORE
36
GROCERY STORE
BIBLIOGRAPHY
JAVA
Head First Java Book By Bert Bates and Kathy Sierra
ORACLE
www.oracle.com
SOFTWARE ENGINEERING
1) Software Engineering - By K.K Aggarwal and Yogesh Singh
2) Software Engineering - By Boris Beizer
3) An Integrated Approach-to Software Engineering - By PankajJalote
REFERENCES
1) www.w3schools.com
2) www.tutorialspoint.com
3) http://www.levela.com
37
GROCERY STORE
PROJET
REPORT
38
GROCERY STORE
People had to suffer the rush of the market when they went for
shopping. They used to think hundred times to buy anything having the
sufficient money for shopping. The problem was the rush; the quarrel at
the time of buying the things. But the advancement of technology brought
the new way for shopping. The way of shopping was completely changed
with the coming of Internet Technology. People have to fill a simple form
on the internet to place their order on any popular shop or shopping-mall
for the thing they want to buy. Now they can place their order from the
home.
39
GROCERY STORE
40
GROCERY STORE
TOOLS/PLATFORM TO BE USED
Software Configuration
Hardware Configuration
RAM - 8 Gigabyte
Mouse - Optical
Monitor - LCD
Processor - Multimedia
41
GROCERY STORE
SYSTEM ANALYSIS
System Analysis is the process of observing systems for troubleshooting or
development purposes. It is applied to information technology, where
computer-based systems require defined analysis according to their makeup
and design.
FACT FINDING
Fact –Finding is an important activity is system investigation. In this stage,
the functioning of the system is to be understood by the system analyst to
designing the proposed system. Various methods are used for this and
these are known as Fact-Finding techniques. The analyst needs to fully
understand the current system.
Types of Fact-Finding:
I met with one of the employee of Big Basket Company and asked some
question:-
I met with one of the employee of Big Basket Company and I observed
how to work in the company and how to manage the workers, sellers
and buyers and how to deliver the product to the customer.
FEASIBILITY STUDY
A feasibility study can help mitigate the risk that a project is wasting
its time. The feasibility study is basically the test of the proposed system
in the light of its workability, meeting user’s requirements, effective use
of resources and of course, the cost effectiveness. The feasibility study
activity involves the analysis of the problem and collection of all relevant
information relating to the product such as the different data items.
Benefits
Since benefits out base the cost, hence our project is economically feasible.
44
GROCERY STORE
45
GROCERY STORE
46
GROCERY STORE
The online shopping system will use the internet as the sole method for
selling goods to its consumers.
2.1. Product Perspective: This product aimed toward a person
who don’t want to visit the shop as he might don’t get time for that
or might not interested in visiting there and dealing with lot of
formalities.
2.2. Product Functions:
OSS should support this use case:
47
GROCERY STORE
3. SPECIFIC REQUIREMENTS:
FUNTIONAL REQUIREMENTS
3.1. Functional Requirements: This section provides requirement
overview of the system. Various functional modules that can be
implemented by the system will be-
3.1.1. Registration: If customer wants to buy the product then
he/she must be registered, unregistered user can’t go to the
shopping cart.
3.1.2. Login: Customers logins to the system by entering valid user id
and password for the shopping.
3.1.3. Changes to cart: Changes to cart means the customer after
login or registration can make order or cancel order of the
product from the shopping cart.
3.1.4. Payment: In this system we are dealing the mode of payment
by Cash. We will extend this to credit card, debit card etc in the
future.
3.1.5. Logout: After ordering or surfing for the product customer has
to logout.
3.1.6. Report Generation: After ordering for the product, the
system, will sent one copy of the bill to the customer’s Email-
address and another one for the system data base.
NON-FUNCTIONAL REQUIREMENTS
3.2. Non-Functional Requirements: Following Non-Functional
Requirements will be there in the insurance to the internet:
(i) Secure access to consumer’s confidential data.
(ii) 24X7 availability.
(iii) Better component design to get better performance at peak
time.
(iv) Flexible service based architecture will be highly desirable for
future extension. Non-Functional Requirements define system
properties and constraints.
Various other Non-Functional Requirement are:
➢ Security
➢ Reliability
➢ Maintainability
➢ Portability
➢ Extensibility
➢ Reusability
48
GROCERY STORE
➢ Compatibility
➢ Resource Utilization
3.3. Performance Requirements: In order to maintain an acceptable
speed at maximum number of upload allowed from a particular
customer as any number of users can access to the system at any
time. Also the connections to the servers will be based on the
attributes of the user like his location and server will be working
24X7 times.
3.4. Technical Issues: This system will work on client-server
architecture. It will require an internet server and which will be able
to run JSP application. The system should support some commonly
used browser such as IE, mozzila firefox, chorme etc.
4. INTERFACE REQUIREMENT: Various interfaces for the product could be-
I) Login Page
II) Registration Form
III) There will be a screen displaying information about product that the
shop having.
IV) If the customers select the buy button then another screen of
shopping cart will be opened.
V) After ordering for the product, the system will sent one copy of the
bill to the customer’s Email-address
4.1. Communication Interfaces: The two parties should be
connected by LAN or WAN for the communication purpose.
49
GROCERY STORE
Waterfall Model
50
GROCERY STORE
COCOMO MODEL
Cocomo (Constructive Cost Model) is a regression model based on LOC, i.e
number of Lines of Code. It is a procedural cost estimate model for
software projects and often used as a process of reliably predicting the
various parameters associated with making a project such as size, effort,
cost, time and quality. It was proposed by Barry Boehm in 1970 and is
based on the study of 63 projects, which make it one of the best-
documented models.
The key parameters which define the quality of any software products,
which are also an outcome of the Cocomo are primarily Effort & Schedule:
• Schedule: Simply means the amount of time required for the completion
of the job, which is, of course, proportional to the effort put. It is measured
in the units of time such as weeks, months.
Different models of Cocomo have been proposed to predict the cost
estimation at different levels, based on the amount of accuracy and
correctness required. All of these models can be applied to a variety of
projects, whose characteristics determine the value of constant to be used
in subsequent calculations. These characteristics pertaining to different
system types are mentioned below.
51
GROCERY STORE
E= a(KLOC)^b
time= c(Effort)^d
Person required = Effort/ time
The above formula is used for the cost estimation of for the basic COCOMO
model, and also is used in the subsequent models.
2. Intermediate Model –
The basic Cocomo model assumes that the effort is only a function of the
number of lines of code and some constants evaluated according to the
different software system. However, in reality, no system’s effort and
schedule can be solely calculated on the basis of Lines of Code. For that
various other factors such as reliability, experience, capability. These
52
GROCERY STORE
factors are known as Cost Drivers and the Intermediate Model utilizes 15
such drivers for cost estimation.
Classification of Cost Drivers and their attributes:
(i) Product attributes –
• Required software reliability extent
• Size of the application database
• The complexity of the product
(ii) Hardware attributes –
• Run-time performance constraints
• Memory constraints
• The volatility of the virtual machine environment
• Required turnabout time
(iii) Personnel attributes –
• Analyst capability
• Software engineering capability
• Applications experience
• Virtual machine experience
• Programming language experience
(iv) Project attributes –
• Use of software tools
• Application of software engineering methods
• Required development schedule
E= (a(KLOC)^b)*EAF
3. Detailed Model –
Detailed COCOMO incorporates all characteristics of the intermediate
version with an assessment of the cost driver’s impact on each step of the
software engineering process. The detailed model uses different effort
multipliers for each cost driver attribute. In detailed cocomo, the whole
software is divided into different modules and then we apply COCOMO
in different modules to estimate effort and then sum the effort.
53
GROCERY STORE
54
GROCERY STORE
SCHEDULING TECHNIQUES
Project planning is the first phase of any project to be going to develop. In
project planning all the necessary and important information and
requirements should be writing and apply to developing a perfect
software system.
Project scheduling is the process by which the various activities that need
to be undertaken during a projects lifetime should be scheduled. There are
a range of activity management tools that are commercially available.
GANTT CHART
It is a graphical representation of the duration of tasks against the
progression of time. It can be developed for the entire project or a
separate chart can be developed for each function. It is a popular tool used
to plan projected schedule. It provides a quick view of the way the project
is expected to proceed. A tabular form is maintained where rows indicate
the tasks with milestones and columns indicate duration (weeks/months).
It is a static chart which depicts the picture on a particular date.
55
GROCERY STORE
PERT CHART
A PERT chart is a graphic representation of a project’s schedule, showing
the sequence of tasks, which tasks can be performed simultaneously, and
the critical path of tasks that must be completed on time in order for the
project to meet its completion deadline. It represents each task of a
project as a box (circle or rectangle), arrows between tasks are used
to show the sequence and task dependencies (i.e. which tasks need to
be complete before others can start).
PERT CHART
56
GROCERY STORE
57
GROCERY STORE
RISK MANAGEMENT:
A priority is given to risk and the highest priority risk is handled first.
Various factors of the risk are who are the involved team members, what
hardware and software items are needed, where, when and why are
resolved during risk management. The risk manager does scheduling of
risks. Risk management can be further categorised as follows:
1. Risk Avoidance
a. Risk anticipation
b. Risk tools
2. Risk Detection
a. Risk analysis
b. Risk category
c. Risk prioritisation
3. Risk Control
a. Risk pending
b. Risk resolution
58
GROCERY STORE
59
GROCERY STORE
DATA DICTIONARY
Registration Table:
S.R Field Name Data type Size Validation
1. Cust id Int 10 Primary key
2. Username Varchar 10
3. Password Varchar 30
4. Name Varchar 101
5. Address Varchar 300
6. Contact no Varchar 12
7. Email Varchar 500
Customer Table:
S.R Field Name Data type Size Validation
1. Cust_id Int 10 Primary key
2. Username Varchar 10
3. Password Varchar 30
4. Name Varchar 101
5. Address Varchar 300
6. Contact_no Varchar 12
7. Email Varchar 500
Product Table:
S.R Field Name Data type Size Validation
1. Pro_id Varchar 10 Primary key
2. Pro Name Varchar 300
3. Price Varchar 100
4. Description Varchar 300
5. Company Integer 5
6. Pic Datetime
60
GROCERY STORE
Payment Table:
S.R Field Name Data Type Size Validation
1. Receipt No Varchar 20 Primary key
2. Pay date Varchar 200
3. Amount Date 10
4. Cust_ID Varchar 67 Foregin Key
5. Card Type Varchar 50
6. Bank Name Integer 10
7. Card No Integer 23
Order Table:
S.R Field Name Data Type Size Validation
1. OID Varchar 20 Primary key
2. Cust_ID Varchar 200 Foregin Key
3. Product Date Date 10
4. Amount Varchar 67
5. Order date Varchar 50
6. Product Name Varchar 100
7. Quantity Varchar 56
Admin
Field Name Data Type Size Allow Null
61
GROCERY STORE
SYSTEM DESIGN
MODULAR DESCRIPTION
62
GROCERY STORE
PROCESS LOGIC
63
GROCERY STORE
ER-DIAGRAM
64
GROCERY STORE
65
GROCERY STORE
66
GROCERY STORE
67
GROCERY STORE
68
GROCERY STORE
69
GROCERY STORE
CLASS DIAGRAM
70
GROCERY STORE
71
GROCERY STORE
TESTING
• Software Testing is essentially a validation process involved that analyses
the software from various aspects to verify if it satisfies the expected
functionality.
• It detects the defects early & contributes to the increased quality of the
project.
• It minimises the overall cost of the software product.
• It checks if the system meets the non-functional requirements.
• It analyses the software adherence to the given specifications & overall
correctness.
TEST PLANS:
It is comprehensive planning document which covers the following aspects:
• Document containing details about scope, schedule & resources for
testing throughout the lifecycle of the project.
• It should cover all kinds of testing that will be carried out in the project.
• It should specify the testing approach.
• It should contain key features that need to be tested.
• It should contain the list of test deliverables.
72
GROCERY STORE
TYPES OF TESTING
LEVELS OF TESTING
1. Unit Testing
2. Integration Testing
3. Regression Testing
4. System Testing
5. Acceptance Testing
1. Unit Testing
It is a procedure use to verify that a particular segment of code is working
properly. The goal of unit testing is to isolate each part of the program &
show that the individual parts are correct. It falls under the category of
white box testing. This type of testing is mostly done by the developers.
2. Integration Testing
A group of related programs that achieve a single task in an application is
usually known as a module. It is the phase of software testing in which
73
GROCERY STORE
3. Regression Testing
This testing is performed whenever any change is made to the code or a
new module is implemented and integrated, all the possible test cases
those that have been executed before are also executed again to ensure that
no error entered into the software due to changes. Regression testing is
very important & performed by the QA team. So, whenever a new module is
added, we first test the functionality of this new module & then perform
Regression Testing to see the impact of this change.
4. System Testing
It is done on a complete, integrated system to evaluate the system’s
compliance with its specified requirements. At this level, the complete
system is tested as a whole with all parts integrated together in an
operational environment. It falls under the category of black box testing.
To test various parts & aspects of the complete system, System testing is a
collection of different types of tests:
a. Stress Testing: It is performed to test the stability of a system in
abnormal conditions. The goal of stress testing is to make sure that the
system does not stop abruptly in case of heavy demands in terms of
resources such as memory, disk space etc. It is performed by executing the
system in such a manner that the system demands resources in enormous
quantities beyond normal capacity till the breaking point. Then the results
are obtained.
b. Security Testing: It is crucial for software’s that deals with the
sensitive date and information. When a system uses sensitive date &
information, it is very important to perform security testing. Security
testing is performed by experienced testers. They tests the protection
mechanism implemented in the system. They are asked to execute the
system as a person who wishes to penetrate the system.
c. Recovery Testing: It is also called Failure Testing. This testing is
performed to test the recovery mechanism of the system. It is performed to
74
GROCERY STORE
test whether the system is fault tolerant or not. The tester knowingly and
forcefully causes the failure of the system & observes if the recovery takes
place as it should. They also test the time taken by a system to recover in
case of any failure. A well-developed system must be either able to recover
from failure by itself & resume normally without causing any harm.
d. Performance Testing: This testing is performed to test the system
for its performance mainly in terms of time taken to respond. It is equally
important that the software response time should be within the acceptable
ranges to the end user. Time taken to perform a task by software is of
utmost concern to the end user.
5. Acceptance Testing
After the system testing is completed, the software is tested by the
client/user. This is known as acceptance testing. This testing can be done
either at developer’s site or client’s site. This testing is performed by the
end users who would actually use the software as the end user always
executes the software from a different perspective. The purpose of
acceptance testing is to find only, if the actual user is ready to accept the
software that has been developed.
It is of 2 types:
a. Alpha Testing: In this testing, the end user performs the testing at
developer’s site itself. The software is used by the end user while the
developer observes the process. The Developer focus on noticing the
usability problems faced by the end user as well as the errors encountered.
It is performed in a controlled environment.
b. Beta Testing: This testing is performed at the site of the end user
in the absence of developer. The software product is treated as “Live”
application by the end user & used in its natural way. The end user tests the
software & records all the errors encountered. The recorded errors are
conveyed to the developer for fixing. It is performed in live environment.
75
GROCERY STORE
TEST CASES
What are test cases?
A test case is a set of conditions or variables under which a tester will
determine whether a system under test satisfies requirements or work
correctly.
The process of developing test cases can also help find problems in the
requirements or design of an application. Test cases helps to guide the
tester through a sequence of steps to validate whether a software
application is free of bugs and working as required by the end user.
76
GROCERY STORE
77
GROCERY STORE
78
GROCERY STORE
Email Id”.
013 Testing the 1. Run the Password Same Pass
Password registration page. Becomes in *
Textbox in* 2. Fill Password. Format
3.Click on Register
Button
014 Testing the PAN 1. Run the PAN in Same Pass
textbox registration page. alphanumeric
2. Fill PAN in char & Format
numeric type both. accepted
3. Click on Register
Button.
015 Testing the Phone 1. Run the Error Same Pass
No. Textbox registration page. Message
2. In Phone No. comes from
textbox fill wrong Phone No.
format of Phone No. Textbox
3. Click on Register “Phone no
Button. should be
numeric”.
016 Testing the Full 1. Run the Error Same Pass
Name Text box registration page. Message
2. In Full Name comes from
textbox fill wrong Full Name
format of Full Name. Textbox “Full
3. Click on Register Name should
Button. be text only”.
017 Testing the GST 1. Run the GST No. in Same Pass
No textbox registration page. alphanumeric
2. Fill Address in Format
char & numeric type accepted
both.
3. Click on Register
Button.
018 Testing the 1. Run the Address in Same Pass
Address textbox registration page. alphanumeric
2. Fill Address in Format
char & numeric type accepted
both.
3. Click on Register
Button.
79
GROCERY STORE
80
GROCERY STORE
81
GROCERY STORE
82
GROCERY STORE
83
GROCERY STORE
84
GROCERY STORE
Cart Button.
choice value.
86
GROCERY STORE
TEST/BUG REPORT
BUG REPORT
A bugs report or defects report is a list of bugs found out by testers while
testing a software product in testing phase under a testing environment.
The test environment is created at development site similar to the actual
environment in which the software is supposed to work or run in live
situation at customer site.
“The point of writing problem report (bug report) is to get bugs fixed”
– By Cem Kaner.
If a tester is not reporting bug correctly, programmer will most likely reject
this bug stating as irreproducible. This can hurt tester’s moral and
sometime ego also. (I suggest not to keep any type of ego. Ego’s like “I have
reported bug correctly”, “I can reproduce it” “Why he/she has rejected the
bug?”, “It’s not my fault” etc.
87
GROCERY STORE
88
GROCERY STORE
➢ Closed – The final state of defect that can be closed after the QA
retesting or can be closed if the defect is duplicate or considered as
NOT a defect.
➢ Reopened – When the defect is NOT fixed, QA reopens/reactivates
the defect.
➢ Deferred – When a defect cannot be addressed in that particular
cycle it is deferred to future release.
➢ Rejected – A defect can be rejected for any of the 3 reasons; viz –
duplicate defect, NOT a Defect, Non Reproducible.
Testing the login button with valid Username and Invalid Password.
Description
1. Run the login page.
2. Fill the Valid Username in Textbox1.
3. Fill Invalid Password in Textbox2.
4. Click on login Button.
Expected Result
Error Message Show---
“Invalid Username and Password”
Actual Result
Open home.jsp
89
GROCERY STORE
Description
1. Run the change Password page.
2. Type Valid Current Password.
3. Type new Password and click on Proceed.
Expected Result
Message Appear Password Changed Successfully
Actual Result
Error Message appears “Invalid Credentials.”
90
GROCERY STORE
Description
1. Run the forget Password page.
2. Type valid Email Id.
3. Click on Send Button.
Expected Result
Message Comes “Password Updated Successfully”.
Actual Result
Error Message appears “Invalid Credentials.”
91
GROCERY STORE
Description
1. Run the contact page.
2. Fill All the Valid Data in Text Boxes.
3. In Subject Field type our Subject.
4. Click on Send Button.
Expected Result
Message appears “Your message Has been Send Successfully”. In mail our subject should
be appearing.
Actual Result
Error Message appears “Check Email Id.”
92
GROCERY STORE
Description
1. Run the grocery page.
2. Click on any link.
3. Select the product.
4. Click on Add to Cart Button.
Expected Result
Message Appear Your Product is Added to Add to Cart
Actual Result
Error Message appears from webpage.
93
GROCERY STORE
Description
1. Run the payment page.
2. Fill All Valid Data.
3. Click on Pay Button.
4. Click on Print.
Expected Result
Page Ready for Print.
Actual Result
Error Message appears “Invalid Details”.
94
GROCERY STORE
Description
1.Run the Admin Home page
2. Click on Add product Button
Expected Result
Redirect to Add product page.
Actual Result
Not Redirect to any page.
95
GROCERY STORE
DEBUGGING
Debugging is the act of analysing & locating the root cause of defects/errors
identified during the test phase. This is a process involving root cause
analysis & formulating a hypothesis about the probable cause of the defect.
Debugging Approaches:
The following are a number of approaches popularly adopted by
programmers for debugging.
96
GROCERY STORE
CODE IMPROVEMENT
An exception is a problem that arises during the execution of a program. A
JSP exception is a response to an exceptional circumstance that arises while
a program is running, such as an attempt to divide by zero.
try - A try block identifies a block of code for which particular exceptions is
activated. It is followed by one or more catch blocks.
Syntax
Assuming a block raises an exception, a method catches an exception using
a combination of the try and catch keywords. A try/catch block is placed
around the code that might generate an exception. Code within a try/catch
block is referred to as protected code, and the syntax for using try/catch
looks like the following -
try {
// statements causing exception
} catch( ExceptionName e1 ) {
// error handling code
} catch( ExceptionName e2 ) {
// error handling code
} catch( ExceptionName eN ) {
// error handling code
} finally {
97
GROCERY STORE
// statements to be executed
}
You can list down multiple catch statements to catch different type of
exceptions in case your try block raises more than one exception in
different situations.
98
GROCERY STORE
IMPLEMENTATION OF SECURITY
Information assets often include personal information (also called personal
data) Security is one of the main enablers of data protection. To guarantee
an adequate level of protection, organisations must implement a risk
management process, which assesses the security risks of processing
personal data. They must then implement security measures to deal with
the identified risks. These measures may include organisational measures
(e.g. policies, procedures etc.) or technical ones (e.g. the implementation of
antivirus software, backup files etc.).
DATABASE SECURITY
A privilege is a type of permission for an authorization name, or a
permission to perform an action or a task. The privilege allows a user to
create or access database resources. Privileges are stored in the database
catalogues. Authorized users can pass on privileges on their own objects to
other users by using the GRANT statement. Privileges can be granted to
individual users, to groups, or to PUBLIC. PUBLIC is a special group that
consists of all users, including future users. Users that are members of a
group will indirectly take advantage of the privileges granted to the group,
where groups are supported.
A role is a database object that groups one or more privileges. Roles can be
assigned to users or groups or other roles by using the GRANT statement.
Users that are members of roles have the privileges that are defined for the
role with which to access data.
99
GROCERY STORE
REVOKE Command:
The revoke command removes user access rights or privileges to the
database objects.
The syntax for the REVOKE command is:
REVOKE privilege_name ON object_name
FROM {User_name | PUBLIC | Role_name}
VIEW Statement
A view contains rows and columns, just like a real table. The fields in a view
are fields from one or more real tables in the database.
You can add SQL functions, WHERE, and JOIN statements to a view and
present the data as if the data were coming from one single table.
Any organization gives highest priority to its data and information rather
than other components. An organization can recover any type of loss but
that organization cannot get recovered easily if there is an attempt to loss
data of organization. This is primary motivation to implement the database
security in an organization.
100
GROCERY STORE
DATA SECURITY
Security of any web application is one of the important aspects and cannot
be compromised specially for the web applications dealing with financial
transactions.
1. ADMIN: - Admin controls the system and only has the permit to
perform all types of operations like INSERT, DELETE, UPDATE,
SELECT, GRANT.
101
GROCERY STORE
Exception Handling
JSP allows us to build Web applications with any language .We can take
advantage of this language-independent, structured exception handling.
Structured exception handling is done through try/catch/finally blocks. It
is done to handle the exception and to save the lost of information.
Try:-The code which may have exception is placed inside the try block.
Catch:-If an exception occurs in a try block, the catch block catches it and take
the action to save the lost of information. A try block can have multiple catch
blocks.
Finally: - An optional block which always runs either the exception occurs or
not.
102
GROCERY STORE
LIMITATIONS OF PROJECT
103
GROCERY STORE
104
GROCERY STORE
CONCLUSION
The evidence above shows that the proposed system has gone through the
rigorous testing and validation method which is resultant into a prosper
system which has accommodated the strict security of the user data.
System is enriched with the attractive user interface along with the many of
system modules which describe the functionalities of system and is more
helpful to understand the system easily. Presented UML Models explained
the relation between data, objects, classes, and how the data flows in
system. In fact the models are really helpful to understand the system
thoroughly.
All the necessary requirements related to latest hardware and software are
incorporated which is used to design the system much efficiently.
Planning & Scheduling are made to avoid the complexities during the
design of system. Such a planning and scheduling are much helpful to
deliver the system in committed time.
Test cases have been undertaken to make the system bug free which has
been done from the functionality point of view and some important
modifications are implemented to system due to the bug or error occurred
during testing.
The system has been developed with much care that it is free from errors
and at the same time it is efficient and less time consuming. The important
thing is that the system is robust. The entire system is secured. Also
provision is provided for future developments in the system. The entire
system is secured. The database approach of developing the system helped
in
• Reducing redundancy
• Improving data consistency
105
GROCERY STORE
106
GROCERY STORE
BIBLIOGRAPHY
JAVA
Head First Java Book By Bert Bates and Kathy Sierra
ORACLE
www.oracle.com
SOFTWARE ENGINEERING
1) Software Engineering - By K.K Aggarwal and Yogesh Singh
2) Software Engineering - By Boris Beizer
3) An Integrated Approach-to Software Engineering - By PankajJalote
REFERENCES
1) www.w3schools.com
2) www.tutorialspoint.com
3) http://www.levela.com
107
GROCERY STORE
INPUT AND
OUTPUT
SCREEN
108
GROCERY STORE
index.jsp
109
GROCERY STORE
about.jsp
110
GROCERY STORE
contact.jsp
111
GROCERY STORE
feedback.jsp
112
GROCERY STORE
FAQ.jsp
113
GROCERY STORE
registration.jsp
114
GROCERY STORE
vendorRegisteration.jsp
115
GROCERY STORE
login.jsp
116
GROCERY STORE
vendorLogin.jsp
117
GROCERY STORE
home.jsp
118
GROCERY STORE
grocery.jsp
119
GROCERY STORE
personalcare.jsp
120
GROCERY STORE
hosueholditems.jsp
121
GROCERY STORE
snacks.jsp
122
GROCERY STORE
beverages.jsp
123
GROCERY STORE
instant.jsp
124
GROCERY STORE
petcare.jsp
125
GROCERY STORE
babycare.jsp
126
GROCERY STORE
viewcart.jsp
127
GROCERY STORE
TrackOrder.jsp
128
GROCERY STORE
cancelorder.jsp
129
GROCERY STORE
returnorder.jsp
130
GROCERY STORE
changePassword.jsp
131
GROCERY STORE
logout.jsp
132
GROCERY STORE
payment.jsp
133
GROCERY STORE
Receipt.jsp
134
GROCERY STORE
vendorhome.jsp
135
GROCERY STORE
addgrocery.jsp
136
GROCERY STORE
Admin/AdminLogin.jsp
137
GROCERY STORE
Admin/AdminHome.jsp
138
GROCERY STORE
Admin/searchPayment.jsp
139
GROCERY STORE
Admin/editOrder.jsp
140
GROCERY STORE
Admin/searchCustomer.jsp
141
GROCERY STORE
CODING WITH
COMMENTS
AND ERROR
HANDLING
142
GROCERY STORE
index.jsp
<%--
Document : index
Created on : 18 May, 2021, 1:46:41 PM
Author : Prateek
--%>
143
GROCERY STORE
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="registration.jsp">Customer</a></li>
<li><a class="dropdown-item" href="vendorRegisteration.jsp">Vendor</a></li>
</ul>
</div>
<section>
<div id="carouselExampleCaptions" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0"
class="active" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1"
aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2"
aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="carsouel1.jpg" class="tales" alt="pic1">
<div class="carousel-caption d-none d-md-block">
<h3 style="color:yellow">Safety bhi, Saving bhi.</h3>
<p style="color:orangered">FLAT Rs.100 cashback on first 2 orders <span
style="color:blue">Code: NEW100</span></p>
</div>
</div>
<div class="carousel-item">
<img src="carsouel2.jpg" class="tales" alt="...">
<div class="carousel-caption d-none d-md-block">
<h3 style="color:yellow">Safety bhi, Saving bhi.</h3>
<p style="color:orangered">FLAT Rs.100 cashback on first 2 orders <span
style="color:blue">Code: NEW100</span></p>
</div>
</div>
<div class="carousel-item">
<img src="carsouel3.jpg" class="tales" alt="...">
144
GROCERY STORE
145
GROCERY STORE
<p>New Launches, Health And Wellness, Bath & Body, Hair Care, Skin Care, Oral Care,
Men's Grooming, Face Care, Women's Grooming, Fragrances, Cosmetics</p>
<p><a class="btn btn-dark" href="login.jsp" role="button">View »</a></p>
</div>
</div>
</div>
<br />
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
146
GROCERY STORE
FAQ.jsp
147
GROCERY STORE
148
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
149
GROCERY STORE
about.jsp
150
GROCERY STORE
151
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
152
GROCERY STORE
contact.jsp
153
GROCERY STORE
154
GROCERY STORE
<div class="button">
<input type="submit" value="Send Now" >
</div>
</form>
</div>
</div>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
155
GROCERY STORE
feedback.jsp
156
GROCERY STORE
<section class="section"></section>
<div class="body">
<div class="container">
<form action="feedmail.jsp">
<h1>Give your Feedback</h1>
<div class="id">
<input type="text" placeholder="From" name="mail">
<i class="far fa-envelope"></i>
</div>
<div class="id">
<input type="text" placeholder="Subject" name="sub">
<i class="fas fa-book"></i>
</div>
<textarea cols="15" rows="5" placeholder="Enter your opinions here..."
name="mess"></textarea>
<input type="submit" value="SEND" style="margin-top: 5px; margin-right: 5px; border:
none; background: #00fff0; color: #222; padding: 10px 0; width: 45%; font-size: 20px; font-weight:
800; cursor: pointer; border-radius: 3px;"><input type="reset" value="RESET" style="margin-top:
5px; border: none; background: #00fff0; color: #222; padding: 10px 0; width: 45%; font-size: 20px;
font-weight: 800; cursor: pointer; border-radius: 3px;">
</form>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
157
GROCERY STORE
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
158
GROCERY STORE
feedmail.jsp
<%
final String to = "prateeksingh825@gmail.com";
final String subject = request.getParameter("sub");
final String messg = request.getParameter("mess");
final String from = request.getParameter("mail");
final String pass = "Sanket825@asha";
String host = "smtp.gmail.com";
@Override
try {
MimeMessage message = new MimeMessage(mailSession);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
message.setSubject(subject);
message.setText(messg);
159
GROCERY STORE
} catch(MessagingException mex){
mex.printStackTrace();
out.println(mex);
}
%>
</body>
</html>
160
GROCERY STORE
registration.jsp
161
GROCERY STORE
</div>
<div class="container">
<div class="title">Customer Registration</div>
<div class="content">
<form action="custreg.jsp">
<%@page import="java.sql.*" %>
<%! int cid; %>
<%
try{
ResultSet rs;
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select max(custid) from custregisteration";
PreparedStatement ps=con.prepareStatement(qry);
rs=ps.executeQuery();
if(rs.next())
{
cid=rs.getInt(1);
cid++;
}
}catch(Exception ex)
{
out.println(ex);
}
%>
<div class="user-details">
<div class="input-box">
<span class="details">Customer ID</span>
<input type="text" name="txtcustid" value="<%=cid %>" readonly="true" required>
</div>
<div class="input-box">
<span class="details">Full Name</span>
<input type="text" name="txtname" placeholder="Enter your name" required>
162
GROCERY STORE
</div>
<div class="input-box">
<span class="details">Email</span>
<input type="text" name="txtemail" placeholder="Enter your email" required>
</div>
<div class="input-box">
<span class="details">Phone Number</span>
<input type="text" name="txtphno" placeholder="Enter your number" required>
</div>
<div class="input-box">
<span class="details">Date Of Birth</span>
<input type="text" name="txtdob" placeholder="Enter your DOB" required>
</div>
<div class="input-box">
<span class="details">Password</span>
<input type="password" name="txtpass" placeholder="Enter your password" required>
</div>
</div>
<div class="button">
<input type="submit" value="Register">
</div>
</form>
</div>
</div>
</div>
<br />
<br />
<br />
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
163
GROCERY STORE
© 2021 Copyright:
<a class="text-white" href="index.jsp">BeMyShopper.com</a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</section>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
164
GROCERY STORE
custreg.jsp
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry = "insert into custregisteration values(?, ?, ?, ?, ?, ?)";
PreparedStatement ps = con.prepareStatement(qry);
ps.setInt(1, cid);
ps.setString(2, cnm);
ps.setString(3, cemail);
ps.setString(4, cphno);
ps.setString(5, cdob);
ps.setString(6, cpass);
ps.executeUpdate();
response.sendRedirect("login.jsp");
ps.close();
con.close();
}
catch(Exception ex){
out.println(ex);
}
%>
</body>
</html>
165
GROCERY STORE
vendorRegisteration.jsp
166
GROCERY STORE
</div>
<div class="container">
<div class="title">Vendor Registration</div>
<div class="content">
<form action="venreg.jsp">
<%@page import="java.sql.*" %>
<%! int vid; %>
<%
try{
ResultSet rs;
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select max(vendorid) from vendorregisteration";
PreparedStatement ps=con.prepareStatement(qry);
rs=ps.executeQuery();
if(rs.next())
{
vid=rs.getInt(1);
vid++;
}
}catch(Exception ex)
{
out.println(ex);
}
%>
<div class="user-details">
<div class="input-box">
<span class="details">Vendor ID</span>
<input type="text" name="txtvendid" value="<%=vid %>" readonly="true" required>
</div>
<div class="input-box">
<span class="details">Vendor Name</span>
<input type="text" name="txtvname" placeholder="Enter your name" required>
167
GROCERY STORE
</div>
<div class="input-box">
<span class="details">Email</span>
<input type="text" name="txtvemail" placeholder="Enter your email" required>
</div>
<div class="input-box">
<span class="details">Phone Number</span>
<input type="text" name="txtvphno" placeholder="Enter your number" required>
</div>
<div class="input-box">
<span class="details">Address</span>
<input type="text" name="txtvaddr" placeholder="Enter your address" required>
</div>
<div class="input-box">
<span class="details">PAN</span>
<input type="text" name="txtpan" placeholder="Enter your PAN" required>
</div>
<div class="input-box">
<span class="details">GST No</span>
<input type="text" name="txtgst" placeholder="Enter your GST No" required>
</div>
<div class="input-box">
<span class="details">Set Password</span>
<input type="password" name="txtvpass" placeholder="Enter your password" required>
</div>
</div>
<div class="button">
<input type="submit" value="Register">
</div>
</form>
</div>
</div>
</div>
<br />
<br />
<br />
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
168
GROCERY STORE
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
169
GROCERY STORE
venreg.jsp
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry = "insert into vendorregisteration values(?, ?, ?, ?, ?, ?, ?, ?)";
PreparedStatement ps = con.prepareStatement(qry);
ps.setInt(1, vid);
ps.setString(2, vnm);
ps.setString(3, vemail);
ps.setString(4, vphono);
ps.setString(5, vaddr);
ps.setString(6, pan);
ps.setString(7, vgst);
ps.setString(8, vpass);
ps.executeUpdate();
response.sendRedirect("vendorLogin.jsp");
ps.close();
con.close();
}
catch(Exception ex){
out.println(ex);
}
%>
</body>
</html>
170
GROCERY STORE
login.jsp
171
GROCERY STORE
</div>
<div class="wrapper">
<div class="title">Customer Login</div>
<form action="logincode.jsp">
<div class="field">
<input type="text" name="txtemail" required>
<label>Email Address</label>
</div>
<div class="field">
<input type="password" name="txtpwd" required>
<label>Password</label>
</div>
<div class="content">
<div class="checkbox">
<input type="checkbox" id="remember-me">
<label for="remember-me">Remember me</label>
</div>
<div class="pass-link"><a href="forgetPassword.jsp">Forgot password?</a></div>
</div>
<div class="field">
<input type="submit" value="Login">
</div>
<div class="signup-link">Not a member? <a href="registration.jsp">Signup now</a></div>
</form>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
172
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
173
GROCERY STORE
logincode.jsp
</body>
</html>
174
GROCERY STORE
home.jsp
if(session.getAttribute("cnm")==null)
response.sendRedirect("login.jsp");
else
175
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
<div class="dropdown" style="padding-left: 3px">
<button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenuButton1"
data-bs-toggle="dropdown" aria-expanded="false">
ORDER
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="TrackOrder.jsp">Track Order</a></li>
<li><a class="dropdown-item" href="cancelorder.jsp">Cancel Order</a></li>
<li><a class="dropdown-item" href="returnorder.jsp">Return Order</a></li>
</ul>
</div>
</div>
<div class="main">
<!--cards -->
<div class="card">
<div class="image">
<img src="grocery.jpg" alt="grocery" style="height: 120px;">
</div>
<div class="title">
<h1>Grocery & Staples</h1>
</div>
<div class="des">
<p class="card-text">Pulses, Atta & Other Flours, Rice & Other Grains, Dry Fruits & Nuts,
Edible Oils, Ghee & Vanaspati, Spices, Salt & Sugar, Organic Staples, Grocery Best Offers, Pesticide-
Free Staples</p>
<a href="grocery.jsp" class="btn btn-primary">View More...</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
176
GROCERY STORE
177
GROCERY STORE
<div class="des">
<p class="card-text">New Launches, Best Offers, Cold Drinks, Juices & Drinks, Tea &
Coffee, Health & Energy Drinks, Water & Soda, Super Combos, Milk Drinks</p>
<a href="beverages.jsp" class="btn btn-primary">View More...</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="noodles.jpg" alt="instant food" height="110px">
</div>
<div class="title">
<h1>Noodles, Sauces & Instant Food</h1>
</div>
<div class="des">
<p class="card-text">New Launches, Noodles & Sauces Best Offers, Noodles & Vermicelli,
Sauces & Ketchups, Jams & Spreads, Pasta & Soups, Ready Made Meals & Mixes, Pickles & Chutneys,
Canned & Frozen Food, Baking & Dessert Items, Honey & Chyawanprash</p>
<a href="instant.jsp" class="btn btn-primary">View More...</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="petcare.jpg" alt="pet care" height="220px">
</div>
<div class="title">
<h1>Pet Care</h1>
</div>
<div class="des">
<p class="card-text">Dog Supplies, Cat Supplies</p>
<a href="petcare.jsp" class="btn btn-primary">View More...</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="babycare.jpg" alt="baby care" height="180px">
</div>
<div class="title">
<h1>Baby Care</h1>
</div>
<div class="des">
<p class="card-text">Baby Food, Diapers & Wipes, Baby Skin & Hair Care, Baby
Accessories & More, Mothers & Maternity</p>
<a href="babycare.jsp" class="btn btn-primary">View More...</a>
</div>
</div>
178
GROCERY STORE
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
179
GROCERY STORE
grocery.jsp
180
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
<div class="dropdown" style="padding-left: 3px">
<button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenuButton1"
data-bs-toggle="dropdown" aria-expanded="false">
ORDER
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="TrackOrder.jsp">Track Order</a></li>
<li><a class="dropdown-item" href="cancelorder.jsp">Cancel Order</a></li>
<li><a class="dropdown-item" href="returnorder.jsp">Return Order</a></li>
</ul>
</div>
</div>
181
GROCERY STORE
182
GROCERY STORE
183
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=205&pnm=Rajdhani Besan&pr=102&des=Available in: 1
kg&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="fortunebesan.jpg" alt="besan" style="height: 120px;">
</div>
<div class="title">
<h6>Fortune Besan</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹48</span>
<span class="text-grey" style="text-decoration: line-through">₹60</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 500 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=206&pnm=Fortune Besan&pr=48&des=Available in:
500 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="rajdhanisooji.jpg" alt="sooji" style="height: 120px;">
</div>
<div class="title">
<h6>Rajdhani Sooji/Rava</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹32</span>
<span class="text-grey" style="text-decoration: line-through">₹39</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 500 g</p>
<div class="des">
184
GROCERY STORE
185
GROCERY STORE
186
GROCERY STORE
187
GROCERY STORE
188
GROCERY STORE
189
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=217&pnm=Dhara Mustard Oil
(Bottle)&pr=166&des=Available in: 1 l&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="ghee.jpg" alt="ghee" style="height: 120px;">
</div>
<div class="title">
<h6>Patanjali Cow Ghee (Carton)</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹565</span>
<span class="text-grey" style="text-decoration: line-through">₹600</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 l</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=218&pnm=Patanjali Cow Ghee
(Carton)&pr=565&des=Available in: 1 l&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="vanaspati.jpg" alt="vanaspati" style="height: 120px;">
</div>
<div class="title">
<h6>Rath Vanaspati</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹166</span>
<span class="text-grey" style="text-decoration: line-through">₹185</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 l</p>
<div class="des">
190
GROCERY STORE
191
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=221&pnm=Family Farm
Almonds&pr=284&des=Available in: 500 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="cashews.jpg" alt="cashews" style="height: 120px;">
</div>
<div class="title">
<h6>Family Farm Cashews</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹349</span>
<span class="text-grey" style="text-decoration: line-through">₹750</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 500 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=222&pnm=Family Farm
Cashews&pr=349&des=Available in: 500 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="seeds.jpg" alt="seeds" style="height: 120px;">
</div>
<div class="title">
<h6>Organic Tattva Flax Seeds</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹23</span>
<span class="text-grey" style="text-decoration: line-through">₹35</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 100 g</p>
<div class="des">
192
GROCERY STORE
193
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=225&pnm=India Gate Feast Rozzana Basmati
Rice&pr=339&des=Available in: 5 kg&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="rice.jpg" alt="rice" style="height: 120px;">
</div>
<div class="title">
<h6>India Gate Broken Mogra Basmati Rice</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹499</span>
<span class="text-grey" style="text-decoration: line-through">₹590</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 10 kg</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=226&pnm=India Gate Broken Mogra Basmati
Rice&pr=499&des=Available in: 10 kg&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="salt.jpg" alt="salt" style="height: 120px;">
</div>
<div class="title">
<h6>Tata Salt</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹18</span>
<span class="text-grey" style="text-decoration: line-through">₹21</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 kg</p>
<div class="des">
194
GROCERY STORE
195
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=229&pnm=Catch Cumin
Seeds/Jeera&pr=45&des=Available in: 100 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="hing.jpg" alt="hing" style="height: 120px;">
</div>
<div class="title">
<h6>Everest Compounded Hing Powder</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹70</span>
<span class="text-grey" style="text-decoration: line-through">₹75</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 50 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=230&pnm=Everest Compounded Hing
Powder&pr=70&des=Available in: 50 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="dhania.jpg" alt="dhania" style="height: 120px;">
</div>
<div class="title">
<h6>Catch Coriander Powder/Dhania</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹43</span>
<span class="text-grey" style="text-decoration: line-through">₹57</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 200 g</p>
<div class="des">
196
GROCERY STORE
197
GROCERY STORE
198
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
199
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
200
GROCERY STORE
personalcare.jsp
201
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
<div class="dropdown" style="padding-left: 3px">
<button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenuButton1"
data-bs-toggle="dropdown" aria-expanded="false">
ORDER
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="TrackOrder.jsp">Track Order</a></li>
<li><a class="dropdown-item" href="cancelorder.jsp">Cancel Order</a></li>
<li><a class="dropdown-item" href="returnorder.jsp">Return Order</a></li>
</ul>
</div>
</div>
202
GROCERY STORE
203
GROCERY STORE
204
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=241&pnm=Dove Intense Repair
Shampoo&pr=430&des=Available in: 1 l&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="hairoil.jpg" alt="hairoil" style="height: 120px;">
</div>
<div class="title">
<h6>Bajaj Almond Drops Hair Oil</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹250</span>
<span class="text-grey" style="text-decoration: line-through">₹290</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 500 ml</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=242&pnm=Bajaj Almond Drops Hair
Oil&pr=250&des=Available in: 500 ml&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="conditioner.jpg" alt="conditioner" style="height: 120px;">
</div>
<div class="title">
<h6>Dove Daily Shine Conditioner</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹238</span>
<span class="text-grey" style="text-decoration: line-through">₹340</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 340 ml</p>
<div class="des">
205
GROCERY STORE
206
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=245&pnm=Nivea Aloe Hydration Body
Lotion&pr=318&des=Available in: 400 ml&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="facecream.jpg" alt="facecream" style="height: 120px;">
</div>
<div class="title">
<h6>Nivea Blue Face Cream</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹158</span>
<span class="text-grey" style="text-decoration: line-through">₹175</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 100 ml</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=246&pnm=Nivea Blue Face
Cream&pr=158&des=Available in: 100 ml&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="colgate.jpg" alt="colgate" style="height: 120px;">
</div>
<div class="title">
<h6>Colgate Swarna Vedshakti Toothpaste</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹95</span>
<span class="text-grey" style="text-decoration: line-through">₹100</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 200 g</p>
<div class="des">
207
GROCERY STORE
208
GROCERY STORE
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=249&pnm=Garnier Men Acno Fight Face
Wash&pr=90&des=Available in: 50 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="n95mask.jpg" alt="mask" style="height: 120px;">
</div>
<div class="title">
<h6>N95 Assorted Mask</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹150</span>
<span class="text-grey" style="text-decoration: line-through">₹249</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 unit</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=250&pnm=N95 Assorted Mask&pr=150&des=Available
in: 1 unit&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="mendeodorant.jpg" alt="mendeodorant" style="height: 120px;">
</div>
<div class="title">
<h6>Engage Mate Men's Deodorant</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹147</span>
<span class="text-grey" style="text-decoration: line-through">₹195</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 150 ml</p>
<div class="des">
209
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
210
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
211
GROCERY STORE
householditems.jsp
212
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
213
GROCERY STORE
214
GROCERY STORE
<div class="title">
<h6>Rin Detergent Bar</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹58</span>
<span class="text-grey" style="text-decoration: line-through">₹64</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 4x250 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=256&pnm=Rin Detergent Bar&pr=58&des=Available in:
4x250 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
</div>
215
GROCERY STORE
216
GROCERY STORE
<div class="title">
<h6>Vim Lemon Dishwash Bar</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹22</span>
<span class="text-grey" style="text-decoration: line-through">₹25</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 300 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=260&pnm=Vim Lemon Dishwash
Bar&pr=22&des=Available in: 300 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
</div>
217
GROCERY STORE
<div class="image">
<img src="gangajal.jpg" alt="gangajal" style="height: 120px;">
</div>
<div class="title">
<h6>EKUM Gangajal</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹33</span>
<span class="text-grey" style="text-decoration: line-through">₹51</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 750 ml</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=262&pnm=EKUM Gangajal&pr=33&des=Available in:
750 ml&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="broom.jpg" alt="broom" style="height: 120px;">
</div>
<div class="title">
<h6>Grass & Plastic Broom (Brown & Pink)</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹167</span>
<span class="text-grey" style="text-decoration: line-through">₹185</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 unit</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=263&pnm=Grass-Plastic Broom&pr=167&des=Available
in: 1 unit&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="dustbin.jpg" alt="dustbin" style="height: 120px;">
218
GROCERY STORE
</div>
<div class="title">
<h6>Round Mini Plastic Dustbin</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹139</span>
<span class="text-grey" style="text-decoration: line-through">₹285</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 unit</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=264&pnm=Round Mini Plastic
Dustbin&pr=139&des=Available in: 1 unit&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
219
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
220
GROCERY STORE
snacks.jsp
221
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
222
GROCERY STORE
</div>
<div class="title">
<h6>Alpenliebe Gold Caramel Candy</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹80</span>
<span class="text-grey" style="text-decoration: line-through">₹100</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 100 units</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=266&pnm=Alpenliebe Gold Caramel
Candy&pr=80&des=Available in: 100 units&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="sugarfreeCandy.jpg" alt="candy" style="height: 120px;">
</div>
<div class="title">
<h6>Center Fresh Sugarfree Peppermint Candy</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹8</span>
<span class="text-grey" style="text-decoration: line-through">₹10</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 4.5 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=267&pnm=Center Fresh Sugarfree Peppermint
Candy&pr=8&des=Available in: 4.5 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="freshener.jpg" alt="freshener" style="height: 120px;">
</div>
<div class="title">
223
GROCERY STORE
224
GROCERY STORE
</div>
<div class="title">
<h6>Bikano Shahi Mixture Namkeen</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹195</span>
<span class="text-grey" style="text-decoration: line-through">₹272</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 kg</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=270&pnm=Bikano Shahi Mixture
Namkeen&pr=195&des=Available in: 1 kg&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="papad.jpg" alt="papad" style="height: 120px;">
</div>
<div class="title">
<h6>Lijjat Moong Papad</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹50</span>
<span class="text-grey" style="text-decoration: line-through">₹60</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 200 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=271&pnm=Lijjat Moong Papad&pr=50&des=Available
in: 200 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="cereal.jpg" alt="cereal" style="height: 120px;">
</div>
<div class="title">
225
GROCERY STORE
226
GROCERY STORE
</div>
<div class="title">
<h6>McVitie's Digestive Biscuit</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹154</span>
<span class="text-grey" style="text-decoration: line-through">₹169</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 kg</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=274&pnm=McVities Digestive
Biscuit&pr=154&des=Available in: 1 kg&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="chocoPie.jpg" alt="chocopie" style="height: 120px;">
</div>
<div class="title">
<h6>Lotte 12 units Choco Pie</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹95</span>
<span class="text-grey" style="text-decoration: line-through">₹140</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 336 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=275&pnm=Lotte 12 units Choco
Pie&pr=95&des=Available in: 336 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="doodhBiscuit.jpg" alt="biscuit" style="height: 120px;">
</div>
<div class="title">
227
GROCERY STORE
228
GROCERY STORE
</div>
<div class="title">
<h6>Too Yumm Karare Munchy Masala Crisps</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹20</span>
<span class="text-grey" style="text-decoration: line-through">₹25</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 75 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=278&pnm=Too Yumm Karare Munchy Masala
Crisps&pr=20&des=Available in: 75 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="nachos.jpg" alt="nachos" style="height: 120px;">
</div>
<div class="title">
<h6>Cornitos Cheese & Herbs Nachos</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹32</span>
<span class="text-grey" style="text-decoration: line-through">₹35</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 60 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=279&pnm=Cornitos Cheese-Herbs
Nachos&pr=32&des=Available in: 60 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="popcorn.jpg" alt="popcorn" style="height: 120px;">
</div>
<div class="title">
229
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
230
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
231
GROCERY STORE
beverages.jsp
232
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
233
GROCERY STORE
</div>
<div class="title">
<h6>Red Bull Energy Drink (Can)</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹100</span>
<span class="text-grey" style="text-decoration: line-through">₹115</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 250 ml</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=282&pnm=Red Bull Energy Drink
(Can)&pr=100&des=Available in: 250 ml&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="applejuice.jpg" alt="juice" style="height: 120px;">
</div>
<div class="title">
<h6>B Natural Apple Juice</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹88</span>
<span class="text-grey" style="text-decoration: line-through">₹110</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 l</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=283&pnm=B Natural Apple Juice&pr=88&des=Available
in: 1 l&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="gluconD.jpg" alt="drink" style="height: 120px;">
</div>
<div class="title">
234
GROCERY STORE
235
GROCERY STORE
</div>
<div class="title">
<h6>Tata Tulsi Green Tea Bags</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹131</span>
<span class="text-grey" style="text-decoration: line-through">₹174</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 25 units</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=286&pnm=Tata Tulsi Green Tea
Bags&pr=131&des=Available in: 25 units&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="coffee.jpg" alt="coffee" style="height: 120px;">
</div>
<div class="title">
<h6>Nescafe Classic Instant Coffee (Jar)</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹150</span>
<span class="text-grey" style="text-decoration: line-through">₹155</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 50 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=287&pnm=Nescafe Classic Instant Coffee
(Jar)&pr=150&des=Available in: 50 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="nestle.jpg" alt="drink" style="height: 120px;">
</div>
<div class="title">
236
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
237
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
238
GROCERY STORE
instant.jsp
239
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
240
GROCERY STORE
241
GROCERY STORE
<div class="title">
<h6>Knorr Thick Tomato Soup</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹50</span>
<span class="text-grey" style="text-decoration: line-through">₹55</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 53 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=292&pnm=Knorr Thick Tomato
Soup&pr=50&des=Available in: 53 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
</div>
242
GROCERY STORE
<div class="image">
<img src="Chutney.jpg" alt="Chutney" style="height: 120px;">
</div>
<div class="title">
<h6>Ching's Secret Schezwan Chutney</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹68</span>
<span class="text-grey" style="text-decoration: line-through">₹80</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 250 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=294&pnm=Chings Secret Schezwan
Chutney&pr=68&des=Available in: 250 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="Chyawanprash.jpg" alt="Chyawanprash" style="height: 120px;">
</div>
<div class="title">
<h6>Patanjali Chyawanprash</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹190</span>
<span class="text-grey" style="text-decoration: line-through">₹200</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 kg</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=295&pnm=Patanjali
Chyawanprash&pr=190&des=Available in: 1 kg&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="honey.jpg" alt="honey" style="height: 120px;">
243
GROCERY STORE
</div>
<div class="title">
<h6>Patanjali Honey</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹315</span>
<span class="text-grey" style="text-decoration: line-through">₹355</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 1 kg</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=296&pnm=Patanjali Honey&pr=315&des=Available in:
1 kg&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
244
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
245
GROCERY STORE
petcare.jsp
246
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
247
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
248
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
249
GROCERY STORE
babycare.jsp
250
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<h1 style="text-align: center; text-decoration: underline">Baby food, Diapers, Baby Skin & Hair
Care</h1>
<div class="main">
<!--cards -->
<div class="card">
<div class="image">
<img src="babyfood.jpg" alt="babyfood" style="height: 120px;">
</div>
<div class="title">
<h6>Timios Banana & Honey Stars</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹20</span>
<span class="text-grey" style="text-decoration: line-through">₹25</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 30 g</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=300&pnm=Timios Banana-Honey
Stars&pr=20&des=Available in: 30 g&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
251
GROCERY STORE
252
GROCERY STORE
<div class="title">
<h6>Himalaya Baby Hair Oil</h6>
</div>
<!-- Price -->
<h6 class="mb-0" style="text-align: center">
<span class="text-danger mr-1">₹125</span>
<span class="text-grey" style="text-decoration: line-through">₹130</span>
</h6>
<!-- Price -->
<p style="text-align: center;">Available in: 100 ml</p>
<div class="des">
<button type="button" class="btn btn-success" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='cart.jsp?pid=303&pnm=Himalaya Baby Hair
Oil&pr=125&des=Available in: 100 ml&qty=1'">ADD TO CART</button>
<button type="button" class="btn btn-primary" style="width: 100%; margin-top: 2px;"
onclick="window.location.href='payment.jsp'">BUY NOW</button>
</div>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
253
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
254
GROCERY STORE
cart.jsp
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="insert into cartdetails values(?,?,?,?,?,?,?)";
PreparedStatement ps=con.prepareStatement(qry);
ps.setInt(1, custid);
ps.setInt(2, prodid);
ps.setString(3, pnm);
ps.setInt(4, prodprice);
ps.setString(5, descr);
ps.setInt(6, q);
ps.setString(7, purdate);
ps.executeUpdate();
out.println("Product has been successfully added to Cart");
%>
</body>
</html>
255
GROCERY STORE
TrackOrder.jsp
256
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<button type="button" class="btn btn-success">LOGOUT</button>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<div class="wrapper">
<div class="title">Track Order</div>
<form action="trackcode.jsp">
<div class="field">
<input type="text" name="txtorder" required>
<label>Enter Order No</label>
</div>
<div class="field">
<input type="submit" value="Search">
</div>
</form>
</div>
<br />
<br />
<br />
<br />
<br />
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
257
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
258
GROCERY STORE
trackcode.jsp
259
GROCERY STORE
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<%@page import="java.sql.*" %>
<%
try{
int r; ResultSet rs;
r=Integer.parseInt(request.getParameter("txtorder"));
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select * from orderdetails where orderno=?";
PreparedStatement ps=con.prepareStatement(qry);
ps.setInt(1,r);
rs=ps.executeQuery();
if(rs.next())
{
%>
<h1 style="text-align: center; margin: 20px;">Track Order</h1>
<div style="margin-bottom: 250px; margin-top: 50px; margin-left: 620px;">
<table>
<tr>
<td style="font-weight: 900"><%= " Order Number:
"+rs.getString("orderno")+"<br>" %></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Order Date:
"+rs.getString("orderdate")+"<br>" %></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Status: "+rs.getString("status")+"<br>"
%></td>
</tr>
</table>
260
GROCERY STORE
</div>
<%
}
else
{
out.println("Record Not Found");
}
}
catch(Exception ex)
{
out.println(ex);
}
%>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
261
GROCERY STORE
cancelorder.jsp
262
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<button type="button" class="btn btn-success">LOGOUT</button>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<div class="wrapper">
<div class="title">Cancel Order</div>
<form action="cancelcode.jsp">
<div class="field">
<input type="text" name="txtorder" required>
<label>Enter Order No</label>
</div>
<div class="field">
<input type="text" name="txtreason" required>
<label>Reason</label>
</div>
<div class="field">
<input type="submit" value="Cancel">
</div>
</form>
</div>
<br />
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
263
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
264
GROCERY STORE
cancelcode.jsp
r=Integer.parseInt(request.getParameter("txtorder"));
reason=request.getParameter("txtreason");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select * from orderdetails where orderno=?";
PreparedStatement ps=con.prepareStatement(qry);
ps.setInt(1, r);
rs=ps.executeQuery();
while(rs.next())
{
String qry2="insert into canceldetails values(?,?,?)";
PreparedStatement ps2=con.prepareStatement(qry2);
ps2.setInt(1, r);
ps2.setString(2, cdate.toString());
ps2.setString(3, reason);
int y=ps2.executeUpdate();
}
265
GROCERY STORE
</body>
</html>
266
GROCERY STORE
returnorder.jsp
267
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<button type="button" class="btn btn-success">LOGOUT</button>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<div class="wrapper">
<div class="title">Return Order</div>
<form action="returncode.jsp">
<div class="field">
<input type="text" name="txtorder" required>
<label>Enter Order No</label>
</div>
<div class="field">
<input type="text" name="txtreason" required>
<label>Reason</label>
</div>
<div class="field">
<input type="submit" value="Return">
</div>
</form>
</div>
<br />
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
268
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
269
GROCERY STORE
returncode.jsp
r=Integer.parseInt(request.getParameter("txtorder"));
reason=request.getParameter("txtreason");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select * from orderdetails where orderno=?";
PreparedStatement ps=con.prepareStatement(qry);
ps.setInt(1, r);
rs=ps.executeQuery();
while(rs.next())
{
String qry2="insert into returndetails values(?,?,?)";
PreparedStatement ps2=con.prepareStatement(qry2);
ps2.setInt(1, r);
ps2.setString(2, cdate.toString());
ps2.setString(3, reason);
int y=ps2.executeUpdate();
}
270
GROCERY STORE
</body>
</html>
271
GROCERY STORE
changePassword.jsp
272
GROCERY STORE
out.println(session.getAttribute("cnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<button type="button" class="btn btn-success">LOGOUT</button>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<div class="wrapper">
<div class="title">Change Password</div>
<form action="changePasswordCode.jsp">
<div class="field">
<input type="password" name="txtpwd" required>
<label>Current Password</label>
</div>
<div class="field">
<input type="password" name="txtnpwd" required>
<label>New Password</label>
</div>
<div class="field">
<input type="submit" value="Proceed">
</div>
</form>
</div>
</div>
</div>
<br />
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
273
GROCERY STORE
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
274
GROCERY STORE
changePasswordCode.jsp
cpwd=request.getParameter("txtpwd");
npwd=request.getParameter("txtnpwd");
custid=Integer.parseInt(session.getAttribute("cid").toString());
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="Update CUSTREGISTERATION set PASSWORD=? where custid="+custid+"and
password="+"'"+cpwd+"'";
PreparedStatement ps=con.prepareStatement(qry);
ps.setString(1,npwd);
int r=ps.executeUpdate();
if(r==1)
{
%>
<div>
<table>
<td>
<%=" Password Changed Successfully"%>
</td>
</table>
</div>
<%
}
else
{
%>
<div>
<table>
<td>
275
GROCERY STORE
</body>
</html>
276
GROCERY STORE
viewcart.jsp
277
GROCERY STORE
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<h1 style="text-align: center;">View Cart</h1>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<strong>Congratulation!</strong> Your coupon code NEW100 is successfully auto applied.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-
label="Close"></button>
</div>
<%@page import="java.sql.*"%>
<%! int q,total; %>
<%
try{
int cid; ResultSet rs,rs2;
cid=Integer.parseInt(session.getAttribute("cid").toString());
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select * from cartdetails where custid=?";
PreparedStatement ps=con.prepareStatement(qry);
ps.setInt(1, cid);
rs=ps.executeQuery();
278
GROCERY STORE
<%
while(rs.next())
{
%>
<tr>
<td>
<% out.println("<img width='50' height='50' src=DisplayPhotoServlet?id=" +
rs.getInt("prodid") + "></img> <p/>"); %>
</td>
<td>
<%= " Product ID: "+rs.getInt("prodid")+"<br>" %>
</td>
<td>
<%= " , Product Name: "+rs.getString("prodnm")+"<br>" %>
</td>
<td>
<%= " , Price: "+rs.getInt("price")+"<br>" %>
</td>
<td>
<%= " , Description: "+rs.getString("description")+"<br>" %>
</td>
<td>
<%= " , Purchase Date: "+rs.getString("purdate")+"<br>" %>
</td>
<td>
<% q=Integer.parseInt(rs.getString("qty")); %>
, Qty:<input type="number" value="<%=q %>" style="width:30px" />
</td>
</tr>
<%
}
}catch(Exception ex){
out.println(ex);
}
%>
</table>
</div>
<div style="padding-left: 150px; padding-bottom: 50px; padding-top: 50px;">
<table>
<tr>
<td style="text-transform: uppercase; font-weight: bold">Your Total
Bill: ₹</td>
<td style="text-transform: uppercase; font-weight: bold"><%=total %>
<%
session.setAttribute("bill", total);
%>
</td>
279
GROCERY STORE
</tr>
<tr>
<td><a href="payment.jsp" class="btn btn-primary" role="button" style="margin-top:
2px;">Make Payment</a></td>
</tr>
</table>
</div>
</form>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
280
GROCERY STORE
payment.jsp
281
GROCERY STORE
%></td>
</tr>
</table>
</div>
<div class="item push">
<a href="logout.jsp" class="btn btn-success" role="button">LOGOUT</a>
</div>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
SETTINGS
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" href="changePassword.jsp">Change Password</a></li>
</ul>
</div>
</div>
<h1 style="text-align: center; margin: 20px;">Make Payment Through Credit/Debit Card</h1>
<div style="padding-left: 500px">
<form action="Receipt.jsp">
<%@page import="java.sql.*" %>
<%! int tid; %>
<%
try{
ResultSet rs;
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select max(transid) from payment";
PreparedStatement ps=con.prepareStatement(qry);
rs=ps.executeQuery();
if(rs.next())
{
tid=rs.getInt(1);
tid++;
}
}catch(Exception ex)
{
out.println(ex);
}
%>
<table>
<tr>
<td style="font-weight: 900">Transaction ID</td>
<td><input type="text" name="txttrans" style="border-radius: 5px; margin: 5px;
height: 25px; width: 100%; border: 1px solid #ccc; border-bottom-width: 2px; font-size: 16px;
transition: all 0.3s ease;" value="<%=tid %>" readonly="true"/></td>
282
GROCERY STORE
</tr>
<tr>
<td style="font-weight: 900">Amount</td>
<td><input type="text" name="txtamt" style="border-radius: 5px; margin: 5px; height:
25px; width: 100%; border: 1px solid #ccc; border-bottom-width: 2px; font-size: 16px; transition: all
0.3s ease;" value="<%=session.getAttribute("bill").toString() %>" readonly="true" /></td>
</tr>
<tr>
<td style="font-weight: 900">CardNo</td>
<td><input type="text" name="txtcardno" style="border-radius: 5px; margin: 5px;
height: 25px; width: 100%; border: 1px solid #ccc; border-bottom-width: 2px; font-size: 16px;
transition: all 0.3s ease;"/></td>
</tr>
<tr>
<td style="font-weight: 900">CardType</td>
<td>
<select name="txtctype" style="border-radius: 5px; margin: 5px; height: 25px; width:
100%; border: 1px solid #ccc; border-bottom-width: 2px; font-size: 16px; transition: all 0.3s ease;">
<option value="Debit">Debit</option>
<option value="Credit">Credit</option>
</select>
</td>
</tr>
<tr>
<td style="font-weight: 900">Bank Name</td>
<td>
<select name="banknm" style="border-radius: 5px; margin: 5px; height: 25px; width:
100%; border: 1px solid #ccc; border-bottom-width: 2px; font-size: 16px; transition: all 0.3s ease;">
<option value="SBI">SBI</option>
<option value="ICICI">ICICI</option>
<option value="HDFC">HDFC</option>
<option value="PNB">PNB</option>
</select>
</td>
</tr>
<tr>
<td style="font-weight: 900">CVV</td>
<td><input type="password" name="txtcvv" style="border-radius: 5px; margin: 5px;
height: 25px; width: 100%; border: 1px solid #ccc; border-bottom-width: 2px; font-size: 16px;
transition: all 0.3s ease;"/></td>
</tr>
<tr>
<td style="font-weight: 900">Card Holder Name</td>
<td><input type="text" name="txtchname" style="border-radius: 5px; margin: 5px;
height: 25px; width: 100%; border: 1px solid #ccc; border-bottom-width: 2px; font-size: 16px;
transition: all 0.3s ease;"/></td>
</tr>
<tr>
283
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
284
GROCERY STORE
Receipt.jsp
transid=Integer.parseInt(request.getParameter("txttrans"));
amt=Integer.parseInt(request.getParameter("txtamt"));
cno=Integer.parseInt(request.getParameter("txtcardno"));
ctype=request.getParameter("txtctype");
bank=request.getParameter("banknm");
cv=Integer.parseInt(request.getParameter("txtcvv"));
holdernm=request.getParameter("txtchname");
vu=request.getParameter("txtvupto");
// try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry = "select * from banktable where cardno="+cno+"and
cardtype="+"'"+ctype+"'"+"and bankname="+"'"+bank+"'"+"and cvv="+cv+"and
holdername="+"'"+holdernm+"'"+"and balance>="+amt+"and validupto="+"'"+vu+"'";
PreparedStatement ps = con.prepareStatement(qry);
r=ps.executeQuery();
if(!r.next())
285
GROCERY STORE
{ %>
<script>
show();
</script>
<%
}
else{
int custid=Integer.parseInt(session.getAttribute("cid").toString());
String qry1="insert into payment values(?,?,?,?,?,?,?)";
PreparedStatement ps1=con.prepareStatement(qry1);
ps1.setInt(1, transid);
ps1.setInt(2, amt);
ps1.setInt(3, custid);
ps1.setString(4, cDate.toString());
ps1.setInt(5, cno);
ps1.setString(6, ctype);
ps1.setString(7, bank);
int x = ps1.executeUpdate();
if(x==1){
String qry2="select * from cartdetails where custid=?";
PreparedStatement ps2=con.prepareStatement(qry2);
ps2.setInt(1,custid);
ResultSet rs2=ps2.executeQuery();
while(rs2.next())
{
String qry3="insert into orderdetails values(?,?,?,?,?,?,?,?,?)";
PreparedStatement ps3=con.prepareStatement(qry3);
ps3.setInt(1, transid);
ps3.setString(2, cDate.toString());
ps3.setInt(3, custid);
ps3.setInt(4, rs2.getInt("prodid"));
ps3.setString(5, rs2.getString("prodnm"));
ps3.setInt(6, rs2.getInt("price"));
ps3.setString(7, rs2.getString("description"));
ps3.setInt(8, rs2.getInt("qty"));
ps3.setString(9, "Pending");
int y = ps3.executeUpdate();
if(y==1)
{
String qry4="delete from cartdetails where custid=?";
PreparedStatement ps4=con.prepareStatement(qry4);
ps4.setInt(1, custid);
int z=ps4.executeUpdate();
}
}
}
}
286
GROCERY STORE
%>
<table>
<tr>
<td><h1>Thank You For Making Payment</h1></td>
</tr>
<tr>
<td><h3>Payment Receipt</h3></td>
</tr>
<tr>
<td>Transaction ID</td>
<td><% out.println(transid); %></td>
</tr>
<tr>
<td>Amount</td>
<td><% out.println(amt); %></td>
</tr>
<tr>
<td>CardNo</td>
<td><% out.println(cno); %></td>
</tr>
<tr>
<td>Bank Name</td>
<td><% out.println(bank); %></td>
</tr>
<tr>
<td>Payment Date</td>
<td><%
out.println(cDate);
%>
</td>
</tr>
<tr>
<td><input type="button" value="PRINT" onclick="window.print()"></td>
</tr>
</table>
<%
// }catch(Exception ex)
// {
// out.println(ex);
// }
%>
</body>
</html>
287
GROCERY STORE
logout.jsp
288
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
289
GROCERY STORE
</footer>
<!-- Footer -->
</section>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
290
GROCERY STORE
forgetPassword.jsp
291
GROCERY STORE
</div>
292
GROCERY STORE
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
293
GROCERY STORE
forgetcode.jsp
ResultSet rs=ps.executeQuery();
if(rs.next())
{
final String messg = "Your Password is "+rs.getString("password");
final String from = "prateeksingh825@gmail.com";
final String pass = "Sanket825@asha";
String host = "smtp.gmail.com";
String to=rmail;
String subject="Password Recovery";
294
GROCERY STORE
@Override
//Send message
Transport transport = mailSession.getTransport();
transport.connect();
transport.sendMessage(message, message.getRecipients(Message.RecipientType.TO));
transport.close();
out.println("Your Password sent to mail successfully....");
}
else
out.println("EmailID Not Registered");
}catch(MessagingException mex)
{
mex.printStackTrace();
out.println(mex);
}
%>
</body>
</html>
295
GROCERY STORE
vendorLogin.jsp
296
GROCERY STORE
</div>
<div class="wrapper">
<div class="title">Vendor Login</div>
<form action="venLoginCode.jsp">
<div class="field">
<input type="text" name="txtvemail" required>
<label>Email Address</label>
</div>
<div class="field">
<input type="password" name="txtvpwd" required>
<label>Password</label>
</div>
<div class="content">
<div class="checkbox">
<input type="checkbox" id="remember-me">
<label for="remember-me">Remember me</label>
</div>
<div class="pass-link"><a href="#">Forgot password?</a></div>
</div>
<div class="field">
<input type="submit" value="Login">
</div>
<div class="signup-link">Not a member? <a href="vendorRegisteration.jsp">Signup
now</a></div>
</form>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
297
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
298
GROCERY STORE
venLoginCode.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>Online Grocery Shopping</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<%@ page import="java.sql.*" %>
<%
try{
String mail,pwd;
ResultSet r;
mail = request.getParameter("txtvemail");
pwd= request.getParameter("txtvpwd");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select * from vendorregisteration where vemail="+"'"+mail+"'"+" and
password="+"'"+pwd+"'";
PreparedStatement ps = con.prepareStatement(qry);
r=ps.executeQuery();
if(r.next()){
session.setAttribute("vid",r.getInt("vendorid"));
session.setAttribute("vnm",r.getString("vendorname"));
response.sendRedirect("vendorhome.jsp");
}else{
%>
<div>
<table>
<td>
<%= "Invalid email or password" %>
</td>
</table>
</div>
<%
}
}
catch(Exception ex){
out.println(ex);
}
%>
</body>
</html>
299
GROCERY STORE
300
GROCERY STORE
vendorhome.jsp
301
GROCERY STORE
<div class="main">
<!--cards -->
<div class="card">
<div class="image">
<img src="grocery.jpg" alt="grocery" style="height: 120px;">
</div>
<div class="title">
<h1>Grocery & Staples</h1>
</div>
<div class="des">
<p class="card-text">Pulses, Atta & Other Flours, Rice & Other Grains, Dry Fruits & Nuts,
Edible Oils, Ghee & Vanaspati, Spices, Salt & Sugar, Organic Staples, Grocery Best Offers, Pesticide-
Free Staples</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="personal.jpg" alt="personal care" style="height: 140px;">
</div>
<div class="title">
<h1>Personal Care</h1>
</div>
<div class="des">
<p class="card-text">New Launches, Health And Wellness, Bath & Body, Hair Care, Skin
Care, Oral Care, Men's Grooming, Face Care, Women's Grooming, Fragrances, Cosmetics</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="cleaing.jpg" alt="Household Itmes" style="height: 100px;">
</div>
<div class="title">
<h1>Household Items</h1>
</div>
302
GROCERY STORE
<div class="des">
<p class="card-text">Disinfectants, Household Best Offers, Laundry Detergents, Cleaners,
Dishwashers, Liquid Detergents, Repellents, Tissues & Disposables, Pooja Needs, Home & Car
Fresheners, Shoe Care, Cleaning Tools & Brushes</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="Snack.jpg" alt="snacks" style="height: 110px;">
</div>
<div class="title">
<h1>Biscuits, Snacks & Chocolates</h1>
</div>
<div class="des">
<p class="card-text">Chocolates, Biscuits & Cookies, Namkeen & Snacks, Chips & Crisps,
Sweets, New Launches, Biscuits & Chocolates Offers, Confectionery</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="beverages.jpg" alt="beverages">
</div>
<div class="title">
<h1>Beverages</h1>
</div>
<div class="des">
<p class="card-text">New Launches, Best Offers, Cold Drinks, Juices & Drinks, Tea &
Coffee, Health & Energy Drinks, Water & Soda, Super Combos, Milk Drinks</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="noodles.jpg" alt="instant food" height="110px">
</div>
<div class="title">
<h1>Noodles, Sauces & Instant Food</h1>
</div>
<div class="des">
<p class="card-text">New Launches, Noodles & Sauces Best Offers, Noodles & Vermicelli,
Sauces & Ketchups, Jams & Spreads, Pasta & Soups, Ready Made Meals & Mixes, Pickles & Chutneys,
Canned & Frozen Food, Baking & Dessert Items, Honey & Chyawanprash</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
303
GROCERY STORE
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="petcare.jpg" alt="pet care" height="220px">
</div>
<div class="title">
<h1>Pet Care</h1>
</div>
<div class="des">
<p class="card-text">Dog Supplies, Cat Supplies</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="babycare.jpg" alt="baby care" height="180px">
</div>
<div class="title">
<h1>Baby Care</h1>
</div>
<div class="des">
<p class="card-text">Baby Food, Diapers & Wipes, Baby Skin & Hair Care, Baby
Accessories & More, Mothers & Maternity</p>
<a href="addgrocery.jsp" class="btn btn-primary">Add Product</a>
</div>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
304
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
305
GROCERY STORE
addgrocery.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>Online Grocery Shopping</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css"
rel="stylesheet">
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="home.css">
<link rel="stylesheet" href="beforeLogin.css">
<link rel="stylesheet" href="login.css">
</head>
<body>
<div class="body">
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<i class="fas fa-bars"></i>
</label>
<label class="logo">BeMyShopper</label>
<ul>
<li><a class="active" href="vendorhome.jsp">Home</a></li>
<li><a href="about.jsp">About</a></li>
<li><a href="contact.jsp">Contact</a></li>
<li><a href="feedback.jsp">Feedback</a></li>
</ul>
</nav>
<div class="container" id="container">
<div class="item">
<table>
<tr>
<td style="padding-left: 10px">Welcome: </td>
<td style="color: crimson; text-transform: uppercase; font-weight: bold"><%
if(session.getAttribute("vnm")==null)
response.sendRedirect("vendorLogin.jsp");
else
out.println(session.getAttribute("vnm").toString());
%></td>
</tr>
</table>
</div>
<div class="item push">
<button type="button" class="btn btn-success">LOGOUT</button>
</div>
<div class="dropdown">
306
GROCERY STORE
<div class="wrapper">
<div class="title">Add Products</div>
<form action="addgroceryprod.jsp" enctype="multipart/form-data" method="post">
<%@page import="java.sql.*" %>
<%! int pid; %>
<%
try{
ResultSet rs;
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select max(productid) from grocery";
PreparedStatement ps=con.prepareStatement(qry);
rs=ps.executeQuery();
if(rs.next())
{
pid=rs.getInt(1);
pid++;
}
}catch(Exception ex)
{
out.println(ex);
}
%>
<div class="field">
<input type="text" name="txtprodid" value="<%=pid %>" readonly="true" required>
</div>
<div class="field">
<input type="text" name="txtprodnm" required>
<label>Product Name</label>
</div>
<div class="field">
<input type="text" name="txtprice" required>
<label>Price</label>
</div>
<div class="field">
307
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for free</span>
<button type="button" class="btn btn-outline-light btn-rounded">
Sign up!
</button>
</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
308
GROCERY STORE
addgroceryprod.jsp
if(!ServletFileUpload.isMultipartContent(request)) {
out.println("Sorry! No File Selected");
return;
}
//parse request
List items = sfu.parseRequest(request);
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
309
GROCERY STORE
}catch(Exception ex){
out.println(ex);
}
%>
</body>
</html>
310
GROCERY STORE
Admin/AdminLogin.jsp
311
GROCERY STORE
<br />
<br />
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p>Admin Login</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
312
GROCERY STORE
Admin/AdminLoginCode.jsp
</body>
</html>
313
GROCERY STORE
Admin/AdminHome.jsp
314
GROCERY STORE
<!--cards -->
<div class="card">
<div class="image">
<img src="addproduct.jpg" alt="cart" style="height: 120px;">
</div>
<div class="title">
<h1>Add Products</h1>
</div>
<div class="des">
<p class="card-text">Add Your Products Here.</p>
<a href="addproduct.jsp" class="btn btn-primary" style="width: 100%; margin-top:
2px;">ADD</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="search.jpg" alt="search" style="height: 120px;">
</div>
<div class="title">
<h1>Search Payment</h1>
</div>
<div class="des">
<p class="card-text">Check Your Payment Details.</p>
<a href="searchPayment.jsp" class="btn btn-success" style="width: 100%; margin-top:
2px;">SEARCH</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="edit.jpg" alt="edit" style="height: 120px;">
</div>
<div class="title">
<h1>Edit Order</h1>
</div>
<div class="des">
<p class="card-text">Edit Order Status</p>
<a href="editOrder.jsp" class="btn btn-secondary" style="width: 100%; margin-top:
2px;">EDIT</a>
</div>
</div>
<!--cards -->
<div class="card">
<div class="image">
<img src="customer.jpg" alt="customer" style="height: 120px;">
</div>
<div class="title">
315
GROCERY STORE
<h1>Search Customer</h1>
</div>
<div class="des">
<p class="card-text">Search Customer Information</p>
<a href="searchCustomer.jsp" class="btn btn-success" style="width: 100%; margin-top:
2px;">SEARCH</a>
</div>
</div>
</div>
<br />
<section class="" style="padding-top: 25px">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p>Admin Home</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
316
GROCERY STORE
Admin/editOrder.jsp
317
GROCERY STORE
<form action="editOrderCode.jsp">
<div class="field">
<input type="text" name="txtorderno" required>
<label>Enter Order No</label>
</div>
<div class="field">
<input type="text" name="txtprnm" required>
<label>Enter Product Name</label>
</div>
<div class="field">
<select name="status" style="height: 100%; width: 100%; outline: none; font-size: 17px;
padding-left: 20px; border: 1px solid lightgrey; border-radius: 25px; transition: all 0.3s ease;">
<option value="Confirmed">Confirmed</option>
<option value="Pending">Pending</option>
<option value="Delivered">Delivered</option>
<option value="Shipped">Shipped</option>
</select>
</div>
<div class="field">
<input type="submit" value="Submit">
</div>
</form>
</div>
</div>
</div>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p>Edit Order</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
318
GROCERY STORE
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
319
GROCERY STORE
Admin/editOrderCode.jsp
ordid=Integer.parseInt(request.getParameter("txtorderno"));
stus=request.getParameter("status");
prnm=request.getParameter("txtprnm");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="Update orderdetails set status=? where orderno="+ordid+"and
prodnm="+"'"+prnm+"'";;
PreparedStatement ps=con.prepareStatement(qry);
ps.setString(1,stus);
int r=ps.executeUpdate();
if(r==1)
{
%>
<div>
<table>
<td>
<%="Status Changed Successfully"%>
</td>
</table>
</div>
<%
}
else
{
%>
<div>
<table>
<td>
320
GROCERY STORE
</body>
</html>
321
GROCERY STORE
Admin/searchPayment.jsp
<div class="wrapper">
322
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p>Admin Search Payment</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
323
GROCERY STORE
Admin/searchcode.jsp
324
GROCERY STORE
try{
int r; ResultSet rs;
r=Integer.parseInt(request.getParameter("txttransid"));
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select * from payment where transid=?";
PreparedStatement ps=con.prepareStatement(qry);
ps.setInt(1,r);
rs=ps.executeQuery();
if(rs.next())
{
%>
<h1 style="text-align: center; margin: 20px;">Payment Details</h1>
<div style="margin-bottom: 250px; margin-top: 50px; margin-left: 620px;">
<table>
<tr>
<td style="font-weight: 900"><%= " Transaction ID:-
"+rs.getString("transid")+"<br>" %></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Amount:-
₹"+rs.getString("amount")+"<br>" %></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Customer ID:- "+rs.getString("custid")+"<br>"
%></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Card Number:-
"+rs.getString("cardno")+"<br>" %></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Card Type:- "+rs.getString("cardtype")+"<br>"
%></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Bank Name:- "+rs.getString("banknm")+"<br>"
%></td>
</tr>
</table>
</div>
<%
}
else
{
out.println("Record Not Found");
}
325
GROCERY STORE
}
catch(Exception ex)
{
out.println(ex);
}
%>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p>Admin Payment Details</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
326
GROCERY STORE
Admin/searchCustomer.jsp
<div class="wrapper">
327
GROCERY STORE
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p>Admin Add Product</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
328
GROCERY STORE
Admin/searchcustcode.jsp
329
GROCERY STORE
try{
int r; ResultSet rs;
r=Integer.parseInt(request.getParameter("txtcustid"));
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery", "grocery");
String qry="select * from custregisteration where custid=?";
PreparedStatement ps=con.prepareStatement(qry);
ps.setInt(1,r);
rs=ps.executeQuery();
if(rs.next())
{
%>
<h1 style="text-align: center; margin: 20px;">Product Details</h1>
<div style="margin-bottom: 250px; margin-top: 50px; margin-left: 620px;">
<table>
<tr>
<td style="font-weight: 900"><%= " Customer ID:- "+rs.getString("custid")+"<br>"
%></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Customer Name:-
"+rs.getString("name")+"<br>" %></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Email:- "+rs.getString("email")+"<br>" %></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Phone No.:- "+rs.getString("phno")+"<br>"
%></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Date Of Birth:- "+rs.getString("dob")+"<br>"
%></td>
</tr>
<tr>
<td style="font-weight: 900"><%= " Password:- "+rs.getString("password")+"<br>"
%></td>
</tr>
</table>
</div>
<%
}
else
{
out.println("Record Not Found");
}
}
330
GROCERY STORE
catch(Exception ex)
{
out.println(ex);
}
%>
<section class="">
<!-- Footer -->
<footer class="text-center text-white" style="background-color: #0a4275;">
<!-- Grid container -->
<div class="container1 p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p>Admin Add Product</p>
</section>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js"></script>
</body>
</html>
331
GROCERY STORE
DisplayPhotoServlet.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.*;
/**
*
* @author Prateek
*/
@WebServlet(urlPatterns = {"/DisplayPhotoServlet"})
public class DisplayPhotoServlet extends HttpServlet {
/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","grocery","grocery");
PreparedStatement ps = con.prepareStatement("SELECT picpath from grocery where
productid=?");
int id = Integer.parseInt(request.getParameter("id"));
ps.setInt(1,id);
ResultSet rs = ps.executeQuery();
rs.next();
Blob b = rs.getBlob("PICPATH");
332
GROCERY STORE
response.setContentType("image/jpeg");
response.setContentLength( (int) b.length());
InputStream is = b.getBinaryStream();
OutputStream os = response.getOutputStream();
byte buf[] = new byte[(int) b.length()];
is.read(buf);
os.write(buf);
os.close();
}
catch(Exception ex) {
out.println(ex.getMessage());
}
}
/**
* Handles the HTTP <code>POST</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
333
GROCERY STORE
*/
@Override
public String getServletInfo() {
return "Short description";
}// </editor-fold>
334
GROCERY STORE
CSS FILES
beforeLogin.css
*{
padding: 0;
margin: 0;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
body{
font-family: sans-serif;
}
nav{
background: #000000;
height: 80px;
width: 100%;
}
label.logo{
color: white;
font-size: 35px;
line-height: 80px;
padding: 0 100px;
font-weight: bold;
}
nav ul{
float: right;
margin-right: 20px;
}
nav ul li{
display: inline-block;
line-height: 80px;
margin: 0 5px;
}
nav ul li a{
color: white;
font-size: 17px;
padding: 7px 13px;
border-radius: 3px;
text-transform: uppercase;
}
a.active,a:hover{
background: #1b9bff;
transition: .5s;
335
GROCERY STORE
}
.checkbtn{
font-size: 30px;
color: white;
float: right;
line-height: 80px;
margin-right: 40px;
cursor: pointer;
display: none;
}
#check{
display: none;
}
@media (max-width: 952px){
label.logo{
font-size: 30px;
padding-left: 50px;
}
nav ul li a{
font-size: 16px;
}
}
@media (max-width: 858px){
.checkbtn{
display: block;
}
ul{
position: fixed;
width: 100%;
height: 100vh;
background: #2c3e50;
top: 80px;
left: -100%;
text-align: center;
transition: all .5s;
}
nav ul li{
display: block;
margin: 50px 0;
line-height: 30px;
}
nav ul li a{
font-size: 20px;
}
a:hover,a.active{
background: none;
color: #0082e6;
}
336
GROCERY STORE
#check:checked ~ ul{
left: 0;
}
}
337
GROCERY STORE
index.css
.tales {
width: 100%;
height: 500px;
}
.center{
text-align: center;
}
.img-circle{
border-radius: 50%;
}
338
GROCERY STORE
about.css
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');
.body{
display: flex;
min-height: 100vh;
align-items: center;
justify-content: center;
width: 100%;
}
.container{
width: 360px;
background: #000;
box-shadow: 0 0 8px rgba(250,250,250,0.6);
opacity: 1;
}
.container form{
width: 100%;
text-align: center;
padding: 25px 20px;
}
form h1{
padding: 10px 0;
color: #00fff0;
}
form p{
color: #1b9bff;
}
339
GROCERY STORE
contact.css
@import
url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=s
wap');
.body{
min-height: 100vh;
width: 100%;
background: #c8e8e9;
display: flex;
align-items: center;
justify-content: center;
}
.container{
width: 85%;
background: #fff;
border-radius: 6px;
padding: 20px 60px 30px 40px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.container .content{
display: flex;
align-items: center;
justify-content: space-between;
}
.container .content .left-side{
width: 25%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 15px;
position: relative;
}
.content .left-side::before{
content: '';
position: absolute;
height: 70%;
width: 2px;
right: -15px;
top: 50%;
transform: translateY(-50%);
background: #afafb6;
}
.content .left-side .details{
margin: 14px;
text-align: center;
340
GROCERY STORE
}
.content .left-side .details i{
font-size: 30px;
color: #3e2093;
margin-bottom: 10px;
}
.content .left-side .details .topic{
font-size: 18px;
font-weight: 500;
}
.content .left-side .details .text-one,
.content .left-side .details .text-two{
font-size: 14px;
color: #afafb6;
}
.container .content .right-side{
width: 75%;
margin-left: 75px;
}
.content .right-side .topic-text{
font-size: 23px;
font-weight: 600;
color: #3e2093;
}
.right-side .input-box{
height: 50px;
width: 100%;
margin: 12px 0;
}
.right-side .input-box input,
.right-side .input-box textarea{
height: 100%;
width: 100%;
border: none;
outline: none;
font-size: 16px;
background: #F0F1F8;
border-radius: 6px;
padding: 0 15px;
resize: none;
}
.right-side .message-box{
min-height: 110px;
}
.right-side .input-box textarea{
padding-top: 6px;
}
.right-side .button{
341
GROCERY STORE
display: inline-block;
margin-top: 12px;
}
.right-side .button input[type="submit"]{
color: #fff;
font-size: 18px;
outline: none;
border: none;
padding: 8px 16px;
border-radius: 6px;
background: #3e2093;
cursor: pointer;
transition: all 0.3s ease;
}
.button input[type="submit"]:hover{
background: #5029bc;
}
342
GROCERY STORE
margin-left: 0;
}
}
343
GROCERY STORE
feedback.css
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');
.section{
position: absolute;
height: 100%;
width: 100%;
}
.body{
display: flex;
min-height: 100vh;
align-items: center;
justify-content: center;
width: 100%;
}
.container{
width: 360px;
background: #000;
box-shadow: 0 0 8px rgba(250,250,250,0.6);
opacity: 0.6;
}
.container form{
width: 100%;
text-align: center;
padding: 25px 20px;
}
form h1{
padding: 10px 0;
}
form .id{
position: relative;
}
.id i{
position: absolute;
font-size: 20px;
top: 50%;
right: 20px;
transform: translateY(-50%);
}
form input{
width: 100%;
height: 50px;
margin: 4px 0;
border: 1px solid #5c5c5c;
border-radius: 3px;
background: #181717;
padding: 0 15px;
344
GROCERY STORE
padding-right: 45px;
font-size: 20px;
}
form textarea{
padding: 5px 15px;
border: 1px solid #5c5c5c;
border-radius: 3px;
background: #181717;
font-size: 20px;
width: 100%;
margin: 4px 0;
}
form input:focus::placeholder,
form textarea:focus::placeholder{
padding-left: 4px;
color: #00fff0;
transition: all 0.3s ease;
}
form input:focus + i{
color: #00fff0;
transition: all 0.3s ease;
}
345
GROCERY STORE
registration.css
@import
url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=s
wap');
.container{
max-width: 700px;
width: 100%;
background-color: #fff;
padding: 25px 30px;
border-radius: 5px;
box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}
.container .title{
font-size: 25px;
font-weight: 500;
position: relative;
}
.container .title::before{
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 30px;
border-radius: 5px;
background: linear-gradient(135deg, #71b7e6, #9b59b6);
}
.content form .user-details{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 20px 0 12px 0;
}
form .user-details .input-box{
margin-bottom: 15px;
width: calc(100% / 2 - 20px);
}
form .input-box span.details{
display: block;
font-weight: 500;
margin-bottom: 5px;
}
.user-details .input-box input{
height: 45px;
width: 100%;
outline: none;
346
GROCERY STORE
font-size: 16px;
border-radius: 5px;
padding-left: 15px;
border: 1px solid #ccc;
border-bottom-width: 2px;
transition: all 0.3s ease;
}
.user-details .input-box input:focus,
.user-details .input-box input:valid{
border-color: #9b59b6;
}
form .gender-details .gender-title{
font-size: 20px;
font-weight: 500;
}
form .category{
display: flex;
width: 80%;
margin: 14px 0 ;
justify-content: space-between;
}
form .category label{
display: flex;
align-items: center;
cursor: pointer;
}
form .category label .dot{
height: 18px;
width: 18px;
border-radius: 50%;
margin-right: 10px;
background: #d9d9d9;
border: 5px solid transparent;
transition: all 0.3s ease;
}
#dot-1:checked ~ .category label .one,
#dot-2:checked ~ .category label .two,
#dot-3:checked ~ .category label .three{
background: #9b59b6;
border-color: #d9d9d9;
}
form input[type="radio"]{
display: none;
}
form .button{
height: 45px;
margin: 35px 0
}
347
GROCERY STORE
348
GROCERY STORE
login.css
.body{
display: grid;
height: 100%;
width: 100%;
place-items: center;
background: #f2f2f2;
}
::selection{
background: #4158d0;
color: #fff;
}
.wrapper{
width: 380px;
background: #fff;
border-radius: 15px;
box-shadow: 0px 15px 20px rgba(0,0,0,0.1);
}
.wrapper .title{
font-size: 35px;
font-weight: 600;
text-align: center;
line-height: 100px;
color: #fff;
user-select: none;
border-radius: 15px 15px 0 0;
background: linear-gradient(-135deg, #c850c0, #4158d0);
}
.wrapper form{
padding: 10px 30px 50px 30px;
}
.wrapper form .field{
height: 50px;
width: 100%;
margin-top: 20px;
position: relative;
}
.wrapper form .field input{
height: 100%;
width: 100%;
outline: none;
font-size: 17px;
padding-left: 20px;
border: 1px solid lightgrey;
border-radius: 25px;
transition: all 0.3s ease;
}
349
GROCERY STORE
350
GROCERY STORE
}
form .field input[type="submit"]{
color: #fff;
border: none;
padding-left: 0;
margin-top: -10px;
font-size: 20px;
font-weight: 500;
cursor: pointer;
background: linear-gradient(-135deg, #c850c0, #4158d0);
transition: all 0.3s ease;
}
form .field input[type="submit"]:active{
transform: scale(0.95);
}
form .signup-link{
color: #262626;
margin-top: 20px;
text-align: center;
}
form .pass-link a,
form .signup-link a{
color: #4158d0;
text-decoration: none;
}
form .pass-link a:hover,
form .signup-link a:hover{
text-decoration: underline;
}
351
GROCERY STORE
home.css
*{
margin: 0px;
padding: 0px;
}
body{
font-family: arial;
}
.main{
margin: 2%;
}
.card{
width: 20%;
display: inline-block;
box-shadow: 2px 2px 20px black;
border-radius: 5px;
margin: 2%;
}
.image img{
width: 100%;
border-top-right-radius: 5px;
border-top-left-radius: 5px;
}
.title{
text-align: center;
padding: 10px;
}
h1{
font-size: 20px;
}
.des{
padding: 3px;
text-align: center;
padding-top: 10px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
.container {
display: flex;
}
.push {
margin-left: auto;
padding-right: 2px;
}
352