Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
E-commerce is fast gaining ground as an accepted and used business paradigm. More and
more business houses are implementing web sites providing functionality for performing
commercial transactions over the web. It is reasonable to say that the process of ordering on the
web is becoming common place. The objective of this project is to develop a general purpose e-
commerce store where any product (such as Amul, Natural etc.) can be bought from the comfort
of home through the Internet. However, for implementation purposes, this paper will deal with
an online Ice-Cream Parlor. The Ice-Cream Parlor is a virtual store on the Internet where
customers can browse the catalogue and select products of interest. The selected items may be
collected in an ordering cart. At checkout time, the items in the ordering cart will be presented as
an order. At that time, more information will be needed to complete the transaction. Usually, the
customer will be asked to fill or select a billing address, a shipping address, a shipping option,
and payment information such as Cash on Delivery and then bill is displayed to the user. The
Ice-Cream Parlors expanded permanently through new products and services in order to offer a
product portfolio corresponding to the market. Private customer and business customers can
order the selected products of the Ice-Cream Parlor service online quickly and comfortably. The
online Ice-Cream Parlor needs to sell different types of products to customer living in any part of
the world. The website will show all products in categorized manner. Customer can browse any
product for its price and other details and can order the product. Orders need to accompany with
shipping & billing details. Customer has to pay order amount. Products can be managed by
operators from admin panel. Operator can be created by admin. Admin can keep track of orders
through admin panel.
2. SYSTEM STUDY
This process is done manually. The existing system is time consuming and it is very costly,
because it involves a lot of paperwork. User has to directly visit the ice cream parlor to buy ice
creams. Such, it seems to be uncomfortable for the user. To manually handle such a system was
very difficult task. But now-a-days because of computerization this job is becoming easier
Disadvantages
The existing system is manual system. Needs to be converted into automated system.
Risk of mismanagement of data.
Less Security.
No proper coordination between different Applications and Users.
Fewer Users - Friendly.
Accuracy not guaranteed.
Not in reach of distant users.
2.1.2 Proposed System
To reduce the inconvenience that were found in the current system, it has been automated
so as to provide a user friendly GUI that will help data entry. This also includes Member
registration and Comment. A database is implemented to maintain all the data of the ice cream
parlor in a database system called MySQL. The developed system will be a Time saving
application for the user. User or visitor can get a broad view about the handset which they
require.
Advantages
Symbol Description
A data flow.
LEVEL 0
DFD Level 0 is also called a Context Diagram. It’s a basic overview of the whole system
or process being analyzed or modeled. It’s designed to be an at-a-glance view, showing the
system as a single high-level process, with its relationship to external entities. It should be easily
understood by a wide audience, including stakeholders, business analysts, data analysts and
developers.
Ice cream
management
Admin Vendor
system
Database
LEVEL 1
DFD Level 1 provides a more detailed breakout of pieces of the Context Level Diagram.
You will highlight the main functions carried out by the system, as you break down the high-
level process of the Context Diagram into its sub – processes.
1.0
Details database
Vendor
Register
2.0
Admin
Login
3.0
4.0
Purchase
A system architecture or systems architecture is the conceptual model that defines the
structure, behavior, and more views of a system. An architecture description is a formal
description and representation of a system, organized in a way that supports reasoning about the
structures and behaviors of the system. System architecture can comprise system components,
the externally visible properties of those components, the relationships (e.g. the behavior)
between them. It can provide a plan from which products can be procured, and systems
developed, that will work together to implement the overall system. There have been efforts to
formalize languages to describe system architecture; collectively these are called architecture
description languages (ADLs).
An allocated arrangement of physical elements which provides the design solution for a
consumer product or life-cycle process intended to satisfy the requirements of the
functional architecture and the requirements baseline.
Architecture comprises the most important, pervasive, top-level, strategic inventions,
decisions, and their associated rationales about the overall structure (i.e., essential
elements and their relationships) and associated characteristics and behavior.
If documented, it may include information such as a detailed inventory of current
hardware, software and networking capabilities; a description of long-range plans and
priorities for future purchases, and a plan for upgrading and/or replacing dated equipment
and software.
Add product
Customer
Admin Database
Purchase product
Registration
In registration module, the vendor will register their details. The registered details will be
stored in a database. The vendor will enter their name, email, address etc. Thus this module
serves to store the details in the database.
Login
In login module vendor and the admin will get a login session. While, registering their
details vendor will get a username and password. And the admin will login with their given
username and password.
Add product
In add product module the admin will add the details of the product, types of the product,
prize of the product and the stock details about the product. This helps the vendor to select the
product easily.
View product
View product
In view product module the vendor will view the product added by the admin. They can
also select the flavor they want to add. They will select the product they want to buy in this
module
Purchase product
If the vendor selects the product then they will add their details to buy the product. They
will select the product they want to buy. After that they will purchase it through online
5. SYSTEM TESTING
The first test in the development process is the unit test. The source code is normally
divided into modules, which in turn are divided into smaller units called units. These units have
specific behavior. The test done on these units of code is called unit test. Unit test depends upon
the language on which the project is developed.
Unit tests ensure that each unique path of the project performs accurately to the
documented specifications and contains clearly defined inputs and expected results. Functional
and reliability testing in an Engineering environment. Producing tests for the behavior of
components (nodes and vertices) of a product to ensure their correct behavior prior to system
integration.
Thus the unit testing is tested with their login module whether they are logged in an
efficient manner. Such that the system is divided into each modules which are tend to be
executed.
Testing is which modules are combined and tested as a group. Modules are typically code
modules, individual applications, source and destination applications on a network, etc.
Integration Testing follows unit testing and precedes system testing. Testing after the product is
code complete. Betas are often widely distributed or even distributed to the public at large in
hopes that they will buy the final product when it is release.
6. SYSTEM IMPLEMENTATION
Java Server Page (JSP) is a technology for controlling the content or appearance of Web
pages through the use of servlets, small programs that are specified in the Web page and run on
the Web server to modify the Web page before it is sent to the user who requested it. Sun
Microsystems, the developer of Java, also refers to the JSP technology as the Servlet application
program interface (API). JSP is comparable to Microsoft's Active Server Page (ASP) technology.
Whereas a Java Server Page calls a Java program that is executed by the Web server, an Active
Server Page contains a script that is interpreted by a script interpreter (such as VBScript or
JScript) before the page is sent to the user. Architecturally, JSP may be viewed as a high-level
abstraction of Java servlets. JSPs are translated into servlets at runtime, therefore JSP is a
Servlets; each JSP servlet is cached and re-used until the original JSP is modified.JSP can be
used independently or as the view component of a server-side model–view–controller design,
normally with JavaBeans as the model and Java servlets (or a framework such as Apache Struts)
as the controller. This is a type of Model 2 architecture.
JSP allows Java code and certain pre-defined actions to be interleaved with static web
markup content, such as HTML, with the resulting page being compiled and executed on the
server to deliver a document. The compiled pages, as well as any dependent Java libraries,
contain Java byte code rather than machine code. Like any other Java program, they must be
executed within a Java virtual machine (JVM) that interacts with the server's host operating
system to provide an abstract, platform-neutral environment. JSPs are usually used to deliver
HTML and XML documents, but through the use of Output Stream, they can deliver other types
of data as well. The Web container creates JSP implicit objects like request, response, session,
application, config, page, pageContext, out and exception. JSP Engine creates these objects
during translation phase.
Syntax
JSP pages use several delimiters for scripting functions. The most basic is <% ... %>,
which encloses a JSP scriptlet. A scriptlet is a fragment of Java code that is run when the user
requests the page. Other common delimiters include <%= ... %> for expressions, where the
scriptlet and delimiters are replaced with the result of evaluating the expression, and directives,
denoted with <%@ ... %>.Java code is not required to be complete or self-contained within a
single scriptlet block. It can straddle markup content, provided that the page as a whole is
syntactically correct. For example, any Java if/for/while blocks opened in one scriptlet must be
correctly closed in a later scriptlet for the page to successfully compile. Content which falls
inside a split block of Java code (spanning multiple scriptlets) is subject to that code. Content
inside an if block will only appear in the output when the if condition evaluates to true. Likewise,
content inside a loop construct may appear multiple times in the output, depending upon how
many times the loop body runs.
Compiler
A Java Server Pages compiler is a program that parses JSPs, and transforms them into
executable Java Servlets. A program of this type is usually embedded into the application server
and run automatically the first time a JSP is accessed, but pages may also be precompiled for
better performance, or compiled as a part of the build process to test for errors. Some JSP
containers support configuring how often the container checks JSP files timestamps to see
whether the page has changed. Typically, this timestamp would be set to a short interval (perhaps
seconds) during software development, and a longer interval (perhaps minutes, or even never)
for a deployed Web application.
Introduction
MySQL is the world's most used open source relational database management system
(RDBMS) as of 2008 that run as a server providing multi-user access to a number of databases.
The MySQL development project has made its source code available under the terms of the
GNU General Public License, as well as under a variety of proprietary agreements. MySQL was
owned and sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned
by Oracle Corporation.
MySQL is a popular choice of database for use in web applications, and is a central
component of the widely used LAMP open source web application software stack—LAMP is an
acronym for "Linux, Apache, MySQL, Perl/PHP/Python." Free-software-open source projects
that require a full-featured database management system often use MySQL.
For commercial use, several paid editions are available, and offer additional functionality.
Applications which use MySQL databases include: TYPO3, Joomla, Word Press, phpBB,
MyBB, Drupal and other software built on the LAMP software stack. MySQL is also used in
many high-profile, large-scale World Wide Web products, including Wikipedia, Google (though
not for searches), ImagebookTwitter, Flickr, Nokia.com, and YouTube.
Inter images
MySQL is primarily an RDBMS and ships with no GUI tools to administer MySQL
databases or manage data contained within the databases. Users may use the included command
line tools, or use MySQL "front-ends", desktop software and web applications that create and
manage MySQL databases, build database structures, back up data, inspect status, and work with
data records. The official set of MySQL front-end tools, MySQL Workbench is actively
developed by oracle, and is freely available for use.
Graphical
Command line
MySQL ships with some command line tools. Third-parties have also developed tools to
manage a MySQL server, some listed below. Maatkit - a cross-platform toolkit for MySQL,
PostgreSQL and Memcached, developed in Perl Maatkit can be used to prove replication is
working correctly, fix corrupted data, automate repetitive tasks, and speed up servers. Maatkit is
included with several GNU/Linux distributions such as CentOS and Debian and packages are
available for Programming. MySQL works on many different system platforms, including AIX,
BSDi, FreeBSD, HP-UX, eComStation, i5/OS, IRIX, Linux, Mac OS X, Microsoft Windows,
NetBSD, Novell NetWare, OpenBSD, OpenSolaris, OS/2 Warp, QNX, Solaris, Symbian,
SunOS, SCO Open Server, SCO UnixWare, Sanos and Tru64. A port of MySQL to OpenVMS
also exists.
MySQL is written in C and C++. Its SQL parser is written in yacc, and a home-brewed
lexical analyzer. Many programming languages with language-specific APIs include libraries for
accessing MySQL databases. These include MySQL Connector/Net for integration with
Microsoft's Visual Studio (languages such as C# and VB are most commonly used) and the
JDBC driver for Java. In addition, an ODBC interimage called MyODBC allows additional
programming languages that support the ODBC inter image to communicate with a MySQL
database, such as ASP or ColdFusion. The HTSQL - URL-based query method also ships with a
MySQL adapter, allowing direct interaction between a MySQL database and any web client via
structured URLs.
Features
As of April 2009, MySQL offered MySQL 5.1 in two different variants: the open source
MySQL Community Server and the commercial Enterprise Server. MySQL 5.5 is offered under
the same licenses. They have a common code base and include the following features:
This Website project would allow our customers convenient and easy access to the site. It
would save time and placing orders and doing payment becomes simpler and it is very efficient.
Hence we have designed the project to provide the user with easy navigation, retrieval of data
and necessary feedback as much as possible. A good ordering cart design must be accompanied
with user-friendly ordering cart application logic. It should be convenient for the customer to
view the contents of their cart and to be able to remove or add items to their cart. The E-Ice
Cream Parlor web application described in this project provides a number of features that are
designed to make the customer more comfortable. “Online Ice-Cream Parlor” provides
knowledge about the latest technology used in developing web enabled application and client
server technology that will be great demand in future. This will provide better opportunities and
guidance in future in developing projects independently.
In future enhancement the admin can add the product and maintain the stock of the added
products. If the product decreases then admin will get a notification where they can re-order the
product again.
BIBLIOGRAPHY
Book reference:
[1] Bryan basham, “Head first servlets and 2nd edition JSP”,O reilly media-2008
[2] Budi kurniawan, “ servlet and JSP and 2nd edition”Addison- Wesley longman-2003
[3] Hans Bergsten, “ java server page and 3rd edition”, O reilly associates, inc-2003
[4] Joel murach, “java servlet and JSP 2nd edition”, marach training & reference-2014
Web reference:
[1] https://en.wikipedia.org/wiki/Ice_cream
[2] https://en.wikipedia.org/wiki/List_of_ice_cream_brands
SOURCE CODE
Admin.jsp
<%--
Document : admin
Created on : Jan 10, 2018, 10:40:49 AM
Author : Java
--%>
<%
try
{
String a=request.getParameter("Submit");
if(a.equals("Login"))
{
String name=request.getParameter("name");
String pass=request.getParameter("pass");
out.print(name+""+pass);
if((name.equals("admin"))&&(pass.equals("admin")))
{
response.sendRedirect("admin_home.jsp");
}
else
{
%>
<script language="javascript">
alert("user name/ pass Wrong!");
window.location="admin.jsp";
</script>
<%
}
}
}catch (Exception e)
{
//out.print(e);
%>
<html lang="zxx">
<head>
<title>Ice Cream Hotel Category Bootstrap Responsive Web Template | Contact Us ::
W3layouts</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="keywords" content="Ice Cream Responsive web template, Bootstrap Web
Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible
web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design"
/>
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<!--// Meta tag Keywords -->
<style type="text/css">
<!--
.style5 {color: #1A3B5C}
-->
</style>
</head>
<body>
<!-- header -->
<div class="header">
<!-- navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<h1>
<a class="navbar-brand" href="index.html">
<img src="images/logo.png" alt=" " class="img-fluid">
</a>
</h1>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</ul>
</div>
</nav>
<!-- //navigation -->
</div>
<!-- //header -->
<!-- banner -->
<div class="banner-2">
</div>
<!-- //banner -->
<tr>
<td width="169" height="37"><h2 class="style5">user name </h2></td>
<td width="52"> </td>
<td width="364"><label>
<input name="name" type="text" id="name" required="" class="txtclr" />
</label></td>
</tr>
<tr>
<td><h2 class="style5">Password</h2></td>
<td> </td>
<td><label>
<input name="pass" type="password" id="pass" required="" class="txtclr"
/>
</label></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Login" class="clrbtn" />
<a href="user_reg.jsp"></a></label></td>
</tr>
</table></td>
<td width="205"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</div>
</div>
</div>
<script src="js/bootstrap.js"></script>
<!-- Necessary-JavaScript-File-For-Bootstrap -->
</body>
</html>
Newproduct.jsp
<%
try
{
String btn = request.getParameter("Submit");
if (btn.equals("Submit"))
{
String pname = request.getParameter("pname");
String ptype = request.getParameter("ptype");
String flavour = request.getParameter("flavour");
String qty = request.getParameter("qty");
String price = request.getParameter("price");
<%
}
}
}
catch (Exception e)
{
out.print(e.getMessage());
}
%>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Ice Cream Hotel Category Bootstrap Responsive Web Template | Contact Us ::
W3layouts</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="keywords" content="Ice Cream Responsive web template, Bootstrap Web
Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible
web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design"
/>
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<!--// Meta tag Keywords -->
<style type="text/css">
<!--
.style5 {color: #1A3B5C}
-->
</style>
</head>
<body>
<!-- header -->
<div class="header">
<!-- navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<h1>
<a class="navbar-brand" href="index.html">
<img src="images/logo.png" alt=" " class="img-fluid">
</a>
</h1>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</ul>
</div>
</nav>
<!-- //navigation -->
</div>
<!-- //header -->
<!-- banner -->
<div class="banner-2">
</div>
<!-- //banner -->
<tr>
<td><div align="left">Price</div></td>
<td><label>
<div align="left">
<input name="price" type="number" class="txt_style" id="price"
required="">
</div>
</label></td>
</tr>
<tr>
<td> </td>
<td><label>
<div align="left">
<input type="submit" name="Submit" value="Submit">
</div>
</label></td>
</tr>
</table></td>
<td> </td>
</tr>
</table>
</form>
</div>
</div>
</div>
</body>
</html>
Admin_user.jsp
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Ice Cream Hotel Category Bootstrap Responsive Web Template | Contact Us ::
W3layouts</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="keywords" content="Ice Cream Responsive web template, Bootstrap Web
Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible
web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design"
/>
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<!--// Meta tag Keywords -->
<style type="text/css">
<!--
.style5 {color: #1A3B5C}
.style7 {color: #D74600; }
-->
</style>
</head>
<body>
<!-- header -->
<div class="header">
<!-- navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<h1>
<a class="navbar-brand" href="index.html">
<img src="images/logo.png" alt=" " class="img-fluid">
</a>
</h1>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</ul>
</div>
</nav>
<!-- //navigation -->
</div>
<!-- //header -->
<!-- banner -->
<div class="banner-2">
</div>
<!-- //banner -->
%>
<tr>
<td><h4><span class="style7">
<% out.print(s);%>
</span></h4></td>
<td><h4><span class="style7">
<% out.print(rs0.getString("name"));%>
</span></h4></td>
<td><h4><span class="style7">
<% out.print(rs0.getString("contact"));%>
</span></h4></td>
<td><h4><span class="style7">
<% out.print(rs0.getString("email"));%>
</span></h4></td>
<td><h4><span class="style7">
<% out.print(rs0.getString("address"));%>
</span></h4></td>
</tr>
<%
}
%>
</table></td>
<td> </td>
</tr>
</table>
</form>
</div>
</div>
</div>
<script src="js/bootstrap.js"></script>
<!-- Necessary-JavaScript-File-For-Bootstrap -->
</body>
</html>
Vendorproduct.jsp
%>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Ice Cream Hotel Category Bootstrap Responsive Web Template | Contact Us ::
W3layouts</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="keywords" content="Ice Cream Responsive web template, Bootstrap Web
Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible
web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design"
/>
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<!--// Meta tag Keywords -->
<style type="text/css">
<!--
.style5 {color: #1A3B5C}
.style7 {color: #D74600; }
-->
</style>
</head>
<body>
<!-- header -->
<div class="header">
<!-- navigation -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<h1>
<a class="navbar-brand" href="index.html">
<img src="images/logo.png" alt=" " class="img-fluid">
</a>
</h1>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</ul>
</div>
</nav>
<!-- //navigation -->
</div>
<!-- //header -->
<!-- banner -->
<div class="banner-2">
</div>
<!-- //banner -->
%>
<tr>
<td><h3><span class="style7">
<% out.print(s);%>
</span></h3></td>
<td><h3><span class="style7">
<% out.print(rs0.getString("pname"));%>
</span></h3></td>
<td><h3><span class="style7">
<% out.print(rs0.getString("flavor"));%>
</span></h3></td>
<td><h3><span class="style7">
<% out.print(rs0.getString("count"));%>
</span></h3></td>
<td><h3><span class="style7">
<% out.print(rs0.getString("cdate"));%>
</span></h3></td>
<td><h3><span class="style7">
<% out.print(rs0.getString("amount"));%>
</span></h3></td>
</tr>
<%
}
%>
</table></td>
<td width="205"> </td>
</tr>
</table>
</form>
</div>
</div>
</div>
<script src="js/bootstrap.js"></script>
<!-- Necessary-JavaScript-File-For-Bootstrap -->
SCREEN SHOT