Professional Documents
Culture Documents
P 0406 Project Report
P 0406 Project Report
1.
ORGANISAION PROFILE
2.
INTRODUCTION
2.1 SYNOPSIS
2.2 OVERVIEW OF PROJECT.
3.
SYSTEM STUDY
3.1 PROBLEM DEFINITION
3.2 SOFTWARE REQUIREMENTS
3.3 HARDWARE REQUIREMENTS
4.
5.
SYSTEM ANALYSIS
6. DESIGN SPECIFICATION
6.1 TABLES
6.2 CONTEXT DIAGRAM
6.3 DATAFLOW DIAGRAMS
7.
SYSTEM SPECIFICATION
8.
SCREENS
9.
10.
CONCLUSION
11.
BIBLIOGRAPHY
INTRODUCTION
SYNOPSIS
The Project entitled "ONLINE
SHOPPING" is a web-based application Software
developed in JAVA LANGUAGE using Java as front
end on Pentium machine.
The main aim of "ONLINE SHOPPING" is to
improve the services of Customers and vendors.
It maintains the details of customer payments,
product receipts, addition of new customers,
products and also updating, deletion for the
same.
It also stores the details of invoices
generated by customer and payments made by them
with all Payments details like credit card.
The primary features of the project
entitled "ONLINE SHOPPING" are high accuracy,
design flexibility and easy availability.
And
also
it
uses
database
tables
Representing
entities and relationships between entities.
PROBLEM DEFINITION
PROBLEM DEFINITION
To develop a web-based application to improve
the service to the customers and merchant which in
turn increases the sales and profit in
"ONLINE
SHOPPING"
HARDWARE
SOFTWARE
JDK1.2.2,JAVASERVER 1.1.3,
SQL SERVER ODBC.
OPERATING SYSTEM
WINDOWS NT.
are
two
main
subclasses
of
AWT Package
The java.awt package provides graphical
user interface (GUI) elements that are used to
get input from and display information to the
user. These elements include windows, buttons,
scrollbars, and text items.
AWT Image Package
The java.awt.image package contains classes
and interfaces for managing image data, such as
setting
the
color
model,
cropping,
color
filtering, setting pixel values, and grabbing
snapshots of the screen.
AWT Peer Package
The java.awt.peer package contains classes
and
interfaces
that
connect
platformindependent AWT components to their platformdependent implementation (such as Motif widgets
or Microsoft Windows controls). Creating a User
Interface covers all three of the AWT packages.
FEATURES OF JAVA
Distributed
Secure
Java is intended to be used in
networked/distributed environment toward that
end; a lot of emphasis has been placed on
security. Java enables the contraction of
virus-free, temper-free systems.
Here is a sample of what Javas
security features are supposed to keep a Java
programming from doing:
1. Overrunning the runtime stack.
2. Corrupting
space.
memory
outside
its
own
process
PARADIGM OF JAVA
Java as a programming language evolved
keeping in view certain criteria and features.
It was built around a model that had these
features. Some of the features of this model we
have seen like the object oriented, architecture
neutral, robust, secure etc.
Some additional
features are explaining below
JAVA APPLETS
Applets are a common way of writing Java
applications.
Integrating web based sound and
graphics into applications is simplified by
using methods in Applet class.
Applets are
Componen
Container
Window
Frame
Panel
Applet
that
give
the
Java
has
no
templates
or
other
implementation of parameterized types.
There
is a set of containers : Vectors, stacks and
Hash table that hold object references, and
through which you can satisfy your container
needs, but these containers are not designed
for efficiently like the C++ standard template
library(STL)
Networking
Database Connection (via JDBC)
Multithreading
Distributed Objects (via RMI and CORBA)
Compression
Commerce
Automatic
garbage
collection
prevents
memory leaks
INTRODUCTION TO JDBC
What is JDBC and Why JDBC?
JDBC (Java Database Connectivity) is a fronttool for connecting to a server and is similar
to ODBC in the respect.
However, JDBC can
matter.
This approach is a recommended once
since using ODBC drivers, which are industry
standard as of now, would make an application
truly portable across the databases.
4. Native Protocol ALL Java Drivers: This
type
of
Jdbc
driver
is
written
completely in Java and can access the database
by making use of native protocols of the
database.
This method of data access is
suitable in case of Intranets were carry every
thing can run as an application instead of an
applet.
JDBC ARCHITECTURE:
JDBC architecture is shown below.
of JDBC are
1. JDBC Driver Manager
2. JDBC Driver
3. JDB-ODBC Bridge
4. Applications.
Components
Application
JDBC Driver
JDBC
JDBC
Native
ODBC
JDBC
NET
Native
Protocol
Uses Native
uses special Uses native
Calls to
net protocols net protocols
ODB
Access
The data to accessthe to access the
base
database
database
DATA BASE
complaint.
APPLICATION:
SERVLETS:
Client and Servers
To understand the World Wide Web and Server
Side programming must understand the division
between Web clients and Web servers and how HTTP
facilities the interaction between the two.
Putting in simple words, a server handles
request from various clients.
For example,
suppose you are using a word processing program
to edit files on another compute. Your computer
would be the client because it is requesting the
files from another computer. The other computer
would be the server because it is handling your
computer's request.
With networked computers,
clients and servers are very common.
A server
typically runs on a different machine than the
client, although this not always the case. The
interaction between the two usually begins on
the client side. The client software request an
object or transaction from the server software,
which either handles the request an object or
"FooServlet
foo
((FooServlet)
context.getServlet ("FooServlet")") which is
used in class BarServlet is different from the
class literal FooServlet as used in FooServlet
itself.
A way to overcome 5this problem is using a
supercalss or and interface which is loaded by
the system loader and thus shared by all
Servlets. In a Web Server, which is written in
Java, these classes are usually located in the
class path (as defined by the CLASSPATH
environment variable)
Sharing Data between Servlets
Version 2.1 of the Servlet API offers a new
way of sharing named objects between all the
Servlets in a Servlets in Servlet context (and
also other contexts, as youll see below) by
binding the objects to the ServletContext
object which is shared by several Servlets.
The ServletContext class has several
for accessing the shared objects:
methods
like
IIS
and
other
third
INTRODUCTION TO HTML
WHAT IS World Wide Web?
The World Wide Web is a network of
information resources. The web realize on
three mechanism to make the resources readily
available to the widest possible audience:
1. A Uniform name is scheme for
resources on the web (E.g.: - URLs)
locating
Hypertext,
for
easy
navigation
among
of
the
machine
hosting
the
the
JoeCool</a>.
Fragment Identifiers
Some URLs refer to a location within a
resource.
This kind of URL ends with "#"
followed by an anchor identifier (called the
"fragment identifier").
Relative URLs
A relative URL doesn't contain any naming
scheme information. Its path generally refers
to a resource on the same on the same machine
as the current document.
Relative URLs may
contain relative path components (".." means
one level up in the hierarchy defined by the
path), and may contain fragment identifiers.
Relative URLs are resolved to full URLs
using a base URL.
As an example of relative
URL resolution, assume we have the base URL
http://www.ame.com/support/intro.html.
The
relative URL in the following markup for a
hypertext link:
<A href="supplies.html"> Supplies </a>
In HTML, URLs play a role in these situations:
What is HTML?
To
publish
information
for
global
distribution,
one
needs
a
universally
understood language, a kind of publishing
mother
tongue
that
all
computers
may
potentially
understand.
The
publishing
language used by the World Web is HTML (from
HyperTextMarkupLanguage).
HTML gives authors the means to:
Publish online documents with headings, text,
tables, lists, photos, etc.
Retrieve online information via hypertext
links, at the click of a button.
Design forms for conducting transaction with
remote services, for use in searching for
information,
making reservations,
ordering
products, etc.
Accessibility
As the Web community grows and its members
diversify in their abilities and skills, it is
crucial that the underlying technologies be
appropriate to their specific needs. HTML has
been
designed
to
make
Web
pages
more
accessible to those with physical limitations.
HTML
4.0
developments
in
the
area
of
accessibility include:
Encouraging the use of style sheets to achieve
layout effect.
Making
it
descriptions
easier
to
provide
of
images
for
alternate
non-visual
browsers.
Providing labels for form fields.
Providing labeled hierarchical groupings for
form fields.
Providing the ability to associate a
longer text description with an HTML element.
Tables
Authors
now
have
greater
control
over
structure and layout (e.g., column groups).
The ability of designers to recommend column
widths allows user agents to display table
data incrementally as it arrives rather than
waiting for the entire table before rendering.
Compound Documents
HTML now offers a standard mechanism for
embedding
generic
media
objects
and
applications in HTML documents. The OBJECT
element (together with its more specific
ancestor elements IMG and APPLET) provides a
mechanism for including images, video, sound,
mathematics, specialized applications, and
other objects in a document. It also allows
authors to specify a hierarchy of alternate
renderings for user agents that don't support
a specific rendering.
Style Sheets
Style Sheets simplify HTML markup and
largely relieve HTML of the responsibilities
of presentation. They give both authors and
users
control
over
the
presentation
of
documents-font information, alignment, colors,
etc. The mechanism for associating a style
sheet with a document is independent of the
style sheet language.
Before the advent of style sheets,
authors
and
had
limited
control
over
rendering. HTML 3.2 included a number of
attributes and elements offering control over
alignment, font size, and text color. Authors
also exploited tables and images as a means
for laying out pages. The relatively long time
it takes for users to upgrade their browsers
means that these features will continue to be
used for some time. However, since style
sheets
often
more
powerful
presentation
mechanisms, the World Wide Web consortium will
eventually
phases
out
many
of
HTML's
presentation elements and attributes.
COMPONENTS OF WWW: WEBPAGE: The part of the Web the user sees the
front-end" is known as a Web page, made up of
links, images, navigation tools text, etc.
Web
documents
are
files
of
information
residing at a Web site.
These documents are
usually
coded
in
HyperTextMarkupLanguage
(HTML)
HOME PAGE: Home page is the first page of web
documents.
Home page is the entry point for
that particular WWW site. Also, home page is
the page a browser loads.
Every browser has
its own home page.
However, the default
homepage for a browser can be changed.
LINK: A link can be anything on a page such as
text or graphics, is a gateway to another page
within
the
sight,
sore
to
an
entirely
different site.
SERVER
SERVLETCode
Servlet
Code
Handle
Client
Client
Client
Server
Requests
Servlet code
Server
SYSTEM SPECIFICATION
The
application
ONLINE
designed into two modules
SHOPPING
was
the
and
the
The
end-user
of
this
product
is
a
departmental store where the application is
hosted on the web and the administrator
maintains the database. The application which
is deployed at the departmental stores will
automate the customer details that are appended
to the customers database, the details of the
items are brought forward from the database for
the customers view based on the selection
through the menu and the database of all the
products are updated at the end of each
transaction.
Data entry into the application can be
done through various screens designed for
various levels of users.
Once the authorized
personnel feed relevant data into the system,
several reports could be generated as per the
security.
If the customer wants to buy the product
he wants to enter into the shopping chart. He
selects the desired product, after that he
enter in to the order form he fills the order
form.
After filling order form merchant
shipped the product to address specified by the
Customer.
SYSTEM DESIGN
Design of software involves conceiving,
planning out and specifying the externally
observable characteristics of the software
product.
We have data design, architectural
design and user interface design in the design
process. These are explained in the following
section.
The goal of design process is to
provide a blue print for implementation,
testing and maintenance activities.
DATA DESIGN:
The primary activity during data design is
to select logical representations of data
objects identified during requirement analysis
and software analysis. A data dictionary
explicitly represents the relationships among
data objects and the constrains on the elements
of the data structure.
A data dictionary
should be established and used to define both
data and program design.
FESIBILITY STUDY:
Feasibility study is conducted once the
problem is clearly understood.
Feasibility
study is a high level capsule version of the
entire system analysis and design process. The
objective is to determine quickly at a minimum
expense how to solve a problem. The purpose of
1. Technical Feasibility
2. Economical Feasibility
3. Operational Feasibility.
Implementation:
Implementation is the stage where the
theoretical design is turned into a working
system. The most crucial stage in achieving a
new successful system and in giving confidence
on the new system for the users that it will
work efficiently and effectively.
The system can be implemented only after
thorough testing is done and if it is found to
work according to the specification.
It involves careful planning, investigation of
the current system and its constraints on
implementation, design of methods to achieve
the change over and an evaluation of change
over methods a part from planning. Two major
tasks of preparing the implementation are
education and training of the users and
testing of the system.
The
more
complex
the
system
being
implemented, the more involved will be the
systems analysis and design effort required
just for implementation.
The implementation phase comprises
several activities. The required hardware
software acquisition is carried out.
system may require some software to
developed. For this, programs are written
tested. The user then changes over to his
fully tested system and the old system
discontinued.
TESTING:
of
and
The
be
and
new
is
testing
is
carried
out
in
three
Correction:
Even with the best quality assurance
activities is lightly that the customer will
uncover defects in the software. Corrective
maintenance changes the software to correct
defects.
Maintenance is a set of software
Engineering
activities
that
occur
after
software has been delivered to the customer
and put into operation. Software configuration
change
to
is
others
being
that
may
properly
have
an
DESIGN SPECIFICATION
TABLES
----------------------------------------------------Product Id
Int
Product Name
Varchar
Product Type
Varchar
UnitPrice
Float
Quantity
Varchar
Units in stock
Int
Units on Order
Int
----------------------------------------------------Table Name: CUSTOMER
-----------------------------------------------Column Name
Type
-----------------------------------------------Order Number
Int
Order Date
Date
CustomerName
Varchar
BillAddress
Varchar
ShippingAddress
Varchar
PhoneNumber
Varchar
Email-Id
Varchar
Amount
Float
Shipped Status
Varchar
------------------------------------------
-----------------------------------------------ProdId
Int
ProductName
Varchar
Price
Float
-----------------------------------------------Table Name: CREDITCARD
-----------------------------------------------Column Name
Type
-----------------------------------------------CardType
Varchar
CardNumber
Varchar
------------------------------------------------
DATAFLOW DIAGRAMS
CONTEXT DIAGRAM
Product details
Merchant
Enhance
Product
Update
Order Custome
Delete
Customer Details
DIAGRAM
FOR
MARCHANT
Merchant Details
Stores
Merchan
Enhance
stores
Store Details
DIAGRAM
FOR
MARCHANT
Merchant Details
Stores
Merchant
Delete
Or
Update
Updated store
Details
DIAGRAM
FOR
CUSTOMER
Product details
Customer
Product name
Product
type
Customer
Details
Amount Payable
SECOND LEVEL
SHIPMENT
DATA
FLOW
DIAGRAM
FOR
BILL
Product details
Products
Customer
Bill
Processing
Shipment
Address
Bill
Shipment
Address
Specified by
the Customer
to
the
great
extent.
and
future
requirements
in
mind
and
the
System.
future,
system.
through
out
the
development
of
ADVANTAGES
Every
processed
Avoids
Transaction
is
obtained
and
immediately.
errors
by
avoiding
the
manual
work.
Online
help
messages
available
to
the
operating system.
much experience.
extension.
and
flexible
for
further
CONCLUSION
The central concept of the application is
to allow the customer to shop virtually using
the Internet and allow customers to buy the
items and articles of their desire from the
store.
The
information
pertaining
to
the
the
items
are
shipped
to
the
address
submitted by them.
The
application was
designed into
two
the
articles.
storekeepers
information
who
Second
maintains
pertaining
to
is
and
the
for
the
updates
the
articles
and
on
end
user
store
the
of
where
web
deployed
at
the
the
and
this
the
product
is
application
a
is
administrator
customer
database,
the
through
various
screens
feed
the
designed
for
relevant
data
into
the
user
avoiding
accessing
unnecessary
the
application
overloading
and
at
thus
the
BIBILIOGRAPHY
HTML Publishing Bible
- Alan Simpson.
-Patricknaughton
Peter&
John
Kent.
- Fairly.
- James A. Senn.