1.1 Objective&scope of The Project
1.1 Objective&scope of The Project
Introduction
1.1 Objective&scope of the project:
The main objective of the online buying is to enable a customer to buy the
products through the net. Many people choose to conduct shopping online because of
the convenience.The purpose of the document is to describe the requirements for an
online bookshop, also describes the interface for the system. This document is the
only one that describes the requirements of the system.
A web based application for online book shop. The main objective of
thesystem is to guide the users how to get the books from the webby selecting one
from no of books it gives the detail description of book in detail. Performance is quite
excellent and user understandable.
for administrators and even some book stores are lack in security optionsThe
proposed system provides efficient search operations by author, category, title search,
efficient options as unregister user cannot logged into registered users or
administrators, provide several options for administrators to perform efficient
operations.
is
provided in the application with various controls provided by system rich user
interface.This system makes the overall project management much easier and
flexible.Various classes have been used for maintain the details of all the users
and
catalog. Authentication is provided for this application only registered users can
access.The users information files can be stored in Centralized database which can be
maintained by the system.This system is providing more memory for the users to
maintain data. This system is providing accessibility control to data with respect to
users.This system is providing on line facilities to book both cargo ships and passenger
ships for voyages.This is providing facilities to store different type of administrative data
through online like ship details, ship parts stock, employee details, ship reservation
details, purchase details and different pay bill details etc.
User requirements
Administrator requirements
User requirements:
The books viewed can be added to the shopping cart of the user.
Display the contents of the cart when required and manage the cart.
Administrator Requirements:
Managing users.
2. Documentation:
Design level Document is used as a guide for developers and is given with the
system to the client. Implementation level document may also be prepared to have better
resolution when any conflict occurs.
3. Performance characteristics:
Request should be processed within 25 seconds.
Providing the 24*7 service availability to the customers
7. Physical environment:
The present system can be implemented in substitution to all
metrological stations situatedacross the nation.
8. Security issues:
Administrator login details are not visible to second person
9. Resource issues:
4
The database should not become corrupted in case of system crash or power
failure.
Administrator
Administrator, database
Administrator should be logged in.
1. He can change his password.
2.He can manage registered users
3. He can search books by author or title or
edition.
4.He can add or delete books
5.He can update price of books
Manage book buzz website
Exit condition
registrations
login
select
cust
update
admin
pay cash
delivery report
logout
type of book
select author
cust
place in cart
3.3Object Model
3.3.1 Data Dictionary:
S No
Data type
Visibility
admin
Varchar2(30)
Public
Aname
Syntax
key,
pass varchar2(20));
customer
Pwd
Varchar2(20)
Private
Fname
Varchar2(30)
Public
Create
table
cust
(fname varchar2(30),lname
varchar2(20),uname
varchar2(20),pswd
lname
Varchar2(20)
Public
varchar2(10),address
varchar2(50),eid
uname
Varchar2(20)
Public
varchar2(20),mob
integer(15),gender
pswd
Varchar2(10)
private
varchar2(20),city
varchar2(20));
address
Varchar2(50)
Public
eid
Varchar2(20)
Public
mob
Integer(15)
Public
gender
Varchar2(5)
Public
books
city
Varchar2(20)
Public
Bname
Varchar2(30)
Public
Create table
Books(bname
aname
Varchar2(30)
Public
varchar2(30),aname
varchar2(30),edition
edition
Varchar2(30)
Public
varchar2(30),price
varchar2(30),summary
price
Varchar2(30)
Public
Summary
Varchar2(30)
Public
varchar2(20));
registrations
cid : string()
cpswd : string
cname : string
caddress : string
phone num : int
checks user details()
accepts registration()
user
uid : string
upswd : string
registers into site()
logs into site()
searches books()
selects books()
log outs()
database
db
payments
uid : int
upswd : string
uaddress : string
draws the amount()
admin
books
author : string
type of book : string
selects type of book()
selects author name()
aid : string
apswd : string
controls website()
logs into site()
checks customer pswd()
maintains books details()
3.4Dynamic Models
3.4.1 Sequence Diagrams:
The sequence diagrams mainly used to visualize the communication between the
set of the objects.
Sequence Diagram:
11
:
registrations
: books
: payments
: admin
: cust
: database
1: maintains
2: enter details
3: verify
4: enter user name and password
5: check details
6: valid
7: permint access
Fig
: 3.3: Sequence diagram for customer
12
:
registrations
: database
: books
: admin
1: enter details
2: check
3: verify
4: valid
5: add/delete/update
6: perform action
7: display form
8: fill form
9: return updates
10: view orders for bboks
11: get orders
12: return orders list
13: display orders
Statechart diagram explains each object different state and transitions. State is
nothing but set of values of an object transition is nothing but future state of an object.
home
admin
user
enter user
name and pwd
not valid
not valid
valid
valid
see books
display books
add books
select books
update books
display payment
details
pay cash
exit
Registration Subsystem:
It looks after registration login details and allows profile viewing.
Communication Subsystem:
The entire system can be decomposed into two subsystems. They are:
Admin subsystem: It is responsible for generation of logins, viewing details,
giving responses to the requests posted by users.
User subsystem: It is responsible for registrations, selecting the book and the
type of book.
admin sub
system
user sub
system
update information
main system
16
4.2Design Goals:
System designs the transformation of analysis model into a system design
model. During the system design developers defines the design goals of project and
decompose the system into smaller into subsystems that can be realized by individual
teams. Strategic for building system such hardware software are selected.
i.
Portability:
For programs to be dynamically downloaded to all the various types of
platforms that are connected to the Internet, some means of generating portable
executable code is needed .As you will see, the same mechanism that helps
ensure security also helps create portability. Indeed, Javas solution to these two
problems is both elegant and efficient.
ii.
Security:
Every time you that you download a normal program; you are risking
a viral infection. Prior to Java, most users did not download executable
programs frequently, and those who scanned them for viruses prior to execution.
Most users still worried about the possibility of infecting their systems with a
virus. In addition, another type of malicious program exists that must be guarded
against. This type of program can gather private information, such as credit card
numbers, bank account balances, and passwords. Java answers both these
concerns by providing a firewall between a network application and your
computer.
iii.
Robustness:
The multi-platform environment of the Web places extraordinary
demands on a program, because the program must execute reliably in a variety
of systems. The ability to create robust programs was given a high priority in the
design of Java. Java is strictly typed language; it checks your code at compile
time and run time.
Java virtually eliminates the problems of memory management and deallocation, which is completely automatic. In a well-written Java program, all
run time errors can and should be managed by your program.
17
iv.
Memory:
This requires large amount of memory inorder to store all registered
member details.
The entire system is projected with a physical diagram which specifics the
actual storage parameters that are physically necessary for any database to be
stored on to the disk. The overall systems existential idea is derived from this
diagram.
18
ER-Diagrams:
The entity Relationship Diagram (ERD) depicts the relationship between the
data objects. The ERD is the notation that is used to conduct the date modeling
activity the attributes of each data object noted is the ERD can be described
resign a data object descriptions.
The set of primary components that are identified by the ERD are
Data object
Relationships
Attributes
The primary purpose of the ERD is to represent data objects and their
relationships.
A UML system is represented using five different views that describe the
system from distinctly different perspective. Each view is defined by a set of
diagram, which is as follows.
The analysis representation describes a usage scenario from the endusers perspective.
In this model the data and functionality are arrived from inside the system.
20
Java:
Initially the language was called as oak but it was renamed as Java in 1995. The
primary motivation of this language was the need for a platform-independent (i.e.,
architecture neutral) language that could be used to create software to be embedded in
various consumer electronic devices.
Java is a programmers language.
Java is cohesive and consistent.
21
Except for those constraints imposed by the Internet environment, Java gives
the programmer, full control.
Finally, Java is to Internet programming where C was to system programming.
Features of Java:
Security:
Every time you that you download a normal program, you are risking a viral
infection. Prior to Java, most users did not download executable programs frequently,
and those who did scanned them for viruses prior to execution. Most users still
worried about the possibility of infecting their systems with a virus. In addition,
another type of malicious program exists that must be guarded against. This type of
program can gather private information, such as credit card numbers, bank account
balances, and passwords. Java answers both these
concerns by providing a firewall between a network application and your
computer.
When you use a Java-compatible Web browser, you can safely download Java
applets without fear of virus infection or malicious intent.
Portability:
For programs to be dynamically downloaded to all the various types of
platforms connected to the Internet, some means of generating portable executable
code is needed .As you will see, the same mechanism that helps ensure security also
helps create portability. Indeed, Javas solution to these two problems is both elegant
and efficient.
22
23
Java source
Java
Java VM
.class
6.2
Oracle 10g is one of the many database services that plug into a client / server
model. It works efficiently to manage resources, a database information, among the
multiple clients requesting & sending.
Structured Query Language (SQL):
SQL is an inter-active language used to query the database and access data in
Introduction ToOracle:
ORACLE is a comprehensive operating environment that packs the power of a
mainframe system into user microcomputer. It provides a set of functional programs that
user can use as tools to build structures and perform tasks. Because application developed
on oracle are completely portable to environment and then move it into a multi user
platform. Users do not have to be an expert to appreciate ORACLE, but the better user
understands the programmer, the more productivity and creativity you will use the tools it
provides.
What is aRelational Database Management System:
A relational database management system (RDBMS) can perform a wide array of
tasks. It acts as a transparent interface between the physical storage and a logical
presentation of data. It provides a set of more or less flexible and sophisticates tools for
handling information. User can use this tool to:
Define a database
Query the database
Add, edit and delete data
Modify the structure of database
Secure data from public access
Communicate within the networks
Export and Import data
Because it gives so much control over data, a relational DBMS can also save as the
foundation for products that generate application and extract data.
A Database Management system may be called fully relational if it supports:
25
9. Logical data independence: Logical changes in tables and views do not require
changes in the application programs or in the format of adhoc requests. With this
databases can change and grow without changes in applications.
10. Integrity independence: Since constraints are stored in system catalog, they can be
changed without changing application program. With this maintenance costs are
reduced since only system catalog need to be changed.
11. Distribution independence: Application programs and adhoc requests are not
affected by changes in the distribution of physical data. With this system reliability
will be improved since application programs will work even if the programs and dare
are shifted.
12. Non-Subversion rule: If the RDBMS has languages that access a record of a time it
cannot be used to bypass integrity. With this data integrity is achieved since the
system catalog is musts
a. Code defined a relationally complete set of operations taking one or more
relation as their operands. The operators are two groups: the traditional set of
operators union, intersection, difference and Cartesian product and the special
operators selection, projection, join and division.
b. A fully relational DBMS has to support the above operations.
activities. The data dictionary sores information related to every facet of database system.
User names, user access rights, table storage information and auditing data for the disaster
recovery are all stored in the data dictionary.
Data Access and Manipulations :
All of Oracles data access and manipulation tools are firmly based on ANSI
standard SQL. In Oracle, the tools that a user will use to access and manipulate data, has
well as to design or use applications. Each provides separate point of entry and unique
speech to the Oracle system
7. Screens
Home Page:
28
Login Page:
29
Cities Page:
35
Publishers Page:
36
Categories Page:
37
Book Page:
38
42
8. Reports
43
44
45
46
47
9. Source Code
Admin page:
<!DOCTYPE html>
<%@page import="java.sql.*" %>
<%@page import="bookshop.*" %>
<%@page import="java.util.*" %>
<html>
<%
%>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<scriptsrc="js/jquery-1.10.2.min.js"></script>
<scriptsrc="js/jquery.form.js"></script>
<scriptsrc="js/validations.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function()
{
window.history.forward(1);
});
</script>
48
</head>
<body>
<table class='main'>
<jsp:include
<tr height="450">
<td
<br/>
<jsp:include
</td>
<td
<br/>
<table class='large-list' >
<tr>
<td>
<div id='center'>
<h2> Welcome </h2>
</div>
</td></tr>
</table>
49
<br/>
</td>
<jsp:include
</table>
</body>
<%
%>
50
Customer Page:
<!DOCTYPE html>
<%@page import="java.sql.*" %>
<%@page import="bookshop.*" %>
<%@page import="java.util.*" %>
<html>
<%
%>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<scriptsrc="js/jquery-1.10.2.min.js"></script>
<scriptsrc="js/jquery.form.js"></script>
<scriptsrc="js/validations.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function()
{
window.history.forward(1);
$(".wise").change(function()
{
$("#center").load(
"ViewBookss.jsp?wise="+
(this).val() );
});
51
});
function load( code )
{
$( "#center" ).load( 'BookDetails.jsp?code='+code );
}
function get( url )
{
$( "#center" ).load( url );
}
function set( url )
{
$('#templete').attr('action', url );
$('#templete').attr('method', 'post' );
$('#templete').ajaxForm(
{
target: '#center'
}).submit();
}
</script>
</head>
<body>
<table class='main'>
<jsp:include
<tr height="520">
52
<td
<br/>
<jsp:include
</td>
<td
<br/>
<table class='large-list' >
<tr>
<td>
<div id='center'>
<h4><span><%= request.getParameter("message") %></span></h4>
<jsp:include
page="/ViewBookss.jsp?wise=All"
flush="true" />
</div>
</td></tr>
</table>
<br/>
</td>
<td
<br/>
<table class='large-list' >
<tr class='alt' > <td align='center'>
53
Categories</td>
</tr>
try
{
Connection con = ConnectionPool.openConnection();
Statement st = con.createStatement();
ResultSetrs = st.executeQuery( "select category_id , name from
"<tr><td><input
type='radio'
</td></tr>
<jsp:include
</table>
</body>
54
name='wise'
<%
%>
<html>
10.Testing
Testing is the process of detecting errors. Testing performs a very critical role for
quality assurance and for ensuring the reliability of software. The results of testing are used
later on during maintenance also.
Testing Objectives:
The main objective of testing is to uncover a host of errors, systematically and with
minimum effort and time. Stating formally, we can say,
Testing is a process of executing a program with the intent of finding an error.
A successful test is one that uncovers an as yet undiscovered error.
A good test case is one that has a high probability of finding error, if it exists.
The tests are inadequate to detect possibly present errors.
The software more or less confirms to the quality and reliable standards.
55
11. Conclusion
In this project we explained how an ONLINE BOOK SHOP can be designed to
provide an easy interface for the customers to know about various books and they can easily
find them through our site and they can easily buy them through online.
This reduces the burden for customer by going to book stores and searching for books
and it saves time also by visiting online.
Our project also met all the requirements specified in Software Requirement
Specifications and can also handle various runtime errors caused by irrelevant inputs
given by both student and the administrator. Possible future extensions can also be made to
this system.
56
12.Bibliography
Websites:
1. www.w3schools.com
2.www.projects-forum.com
3. www.uml-diagrams.org
57