Upload
khangminh22
View
1
Download
0
Embed Size (px)
Citation preview
A Project Report on
“ FURNITURE SHOWROOM”
Submitted to the Bangalore University in partial fulfillment
of the requirement for the award of the degree in
Bachelor of Computer Applications
Submitted by
SHERLIN ANGELINA USN:15VFSB7054
Under the guidance of Mrs. APOORVA A
Asst. Professor
Ring Road, Marathalli, Bangalore – 560 103.
DECLARATION
I hereby declare that the project report entitled “FURNITURE SHOWROOM” was prepared by
me during theyear2017-2018 and was submitted to the Bangalore University, in partial
fulfillment of the requirements for the award of the Degree in Bachelor of Computer
Applications. I also declare that this project report is original and genuine and it has not been
submitted to any other University for the award of any degree, diploma or other similar titles or
purposes.
Date: Signature of the Candidate
Place: New Horizon College SHERLIN ANGELINA
(Marathalli) [USN:15VFSB7054]
CERTIFICATE
This is to certify that the project report entitled FURNTIURE SHOWROOM”
Submitted by SHERLIN ANGELINA [15SDSB7054]. This report is an outcome of genuine
project work and has been submitted in partial fulfillment for the award of the Degree of
Bachelor of Computer Applications, awarded by Bangalore University, during the academic
year 2017-18.
Project Guide Head of the Department
Ms. Apoorva A Mr. Nagaraju K
Signature of the Examiners 1.
2.
ACKNOWLEDGEMENT
We express our deep sincere thanks to Dr. Mohan Maghnani, Chairman of New Horizon
Educational Institutions for providing the platform and infrastructure to do this project. This
project would not have been possible without the help and co-operation of many. At the outset, I
wish to record my profound gratitude to our principal Dr. R. Bodhisatvan
We are extremely thankful to Mr Nagaraju K, Head-Computer science for his unending support
and encouragement during the development of this project.
We would like to acknowledge the interest and the support extended by our project guide Mrs.
Anjana S Murthy, Asst. Professor, Department of Computer Science, to make this project
implementation successful.
Above all we would thank God for the blessings and my parents also for their valuable
suggestion and support in my project report
Finally, we extend my deep sense of gratitude to all those who made this project come alive and
encouraged and guided me from the start to finish.
INDEX
CHAPTERS PAGE NO
CHAPTER:1 INTRODUCTION TO THE PROJECT
1.1. Abstract 1
1.2. PROBLEM STATEMENT 1
1.3. MODULE DESCRIPTION 1-3
CHAPTER:2 SYSTEM ANALYSIS
2.1. INTRODUCTION TO SYSTEM
ANALYSIS
4
2.1.1 EXISTING SYSTEM 4
2.1.2 PROPOSED SYSTEM 4
2.2. SOFTWARE REQUIREMENTS
SPECIFICATION
4
2.3. HARDWARE REQUIREMENTS 5
2.4. SOFTWARE REQUIRMENTS 5-6
2.5. INTRODUCTION TO HTML 7-13
2.6. INTRODUCTION TO CSS 13-16
2.7. INTRODUCTION TO PHP 17-20
2.8. INTRODUCTION TO MYSQL 21-23
2.9. INTRODUCTION TO XAMPP 14-16
CHAPTER:3 SYSTEM DESIGN
3.1. TABLE STRUCTURE 24-29
3.2. DATA FLOW DIAGRAM 30
3.3. FORM DESIGN 31-39
CHAPTER:4 CODING AND DEVELOPMENT
4.1. SOURCE CODE 40-97
CHAPTER:5 TESTING AND IMPLEMENTATION
5.1. INTRODUCTION TO TESTING 98
5.2. TYPES OF TESTING 98-101
CHAPTER:6 CONCLUSION AND FUTURE ENHANSMENT
6.1. CONCLUSION 102
6.2. FUTURE ENHANSMENT
7.BIBLIOGRAPHY 103
GREEN FURNITURE 1
INTRODUCTION
1.1 PROBLEMSTATEMENT:
An online furniture shop that allows users to check for various furniture available
at the online store and purchase online. The project consists of list of furniture
products displayed in various models and designs. The user may browse through
these products as per categories. If the user likes a product he may add it to his
shopping cart. Once user wishes to checkout he must register on the site first. He
can then login using same id password next time. Now he may pay through a credit
card or cash on delivery. Once the user makes a successful transaction he gets a
copy of the shopping receipt on his email id. Here we use .net framework to make
the entire frontend. The middle tier or code behind model is designed in c#. And
sql serves as a backend to store furniture lists and inventory data thus the online
furniture shopping project brings anentire
furniture shop online and makes it easy for both buyer and seller to make furniture
deals.
Modules
1. Admin
a. Login
b. Addcategory
c. Deletecategory
d. Addproduct
e. Deleteproduct
GREEN FURNITURE 2
f. Changepassword
2. User
a. Register
b. Login
c. Viewproducts
d. Add product tocart
e. Buyproduct
f. Changepassword
1.1.1 Modules Description
Registration: This module allows the user to register into the website to donate or
request for blood. This has 2categories:
1. Donor Registration: A donor should give his personal information for
registering hisaccount.
2. Acceptor Registration: This module allows the user to register by providing
his personal information of the patients who needs blood.
Log In: This module allows the user to login to the account to view about the news
updates or camp updates as per theirrequirement.
Here it is further classified into:
1. Admin login: Admin logs in to his/her account to view and maintain
the wholewebsite.
2. Donor login: A donor can login to his account for diff purposes either
for viewing updates about the camps or to check if there is requirement
for his /her bloodgroup.
GREEN FURNITURE 3
Admin: The admin manages the entire website. In this module, the admin plays a
major role by maintaining details of both donor and acceptor i.e. admin will be able to
add new donor, acceptor and update the information of donor and acceptor.one can also
add camp, delete camp etc...
GREEN FURNITURE 4
SYSTEM ANALYSIS:
Analysis can be defined as breaking up of any whole to find out their nature, function etc. It
defines design as to make preliminary sketches of; to sketch a pattern or outline for plan. To
plan and carry out especially by artistic arrangement or in a skillful wall.
System analysis and design can be characterized as a set of techniques and processes, a
community of interests, a culture and an intellectual orientation. The various tasks in the system
analysis include the following.
Understandingapplication.
Planning.
Scheduling.
Developing candidatesolution.
Performing tradestudies.
Performing cost benefitanalysis.
Recommending alternativesolutions.
Selling of thesystem.
Supervising, installing and maintaining thesystem.
GREEN FURNITURE 5
2.1. REQUIREMENT AND SPECIFICATIONS:
DEFINITION:
A software requirements specification (SRS) is a description of a softwaresystem to be
developed. It lays out functional and non-functional requirements, and may include a set of
usecasesthat describe user interactions that the software must provide.
Software requirements specification establishes the basis for an agreement between customers
and contractors or suppliers (in market-driven projects, these roles may be played by the
marketing and development divisions) on what the software product is to do as well as what it is
not expected to do. Software requirements specification permits a rigorous assessment of
requirements before design can begin and reduces later redesign. It should also provide a realistic
basis for estimating product costs, risks, and schedules. Used appropriately, software
requirements specifications can help prevent software project failure.
The software requirements specification document enlists enough and necessary requirements
that are required for the project development. To derive the requirements we need to have clear
and thorough understanding of the products to be developed or being developed. This is achieved
and refined with detailed and continuous communications with the project team and customer till
the completion of the software.
The SRS may be one of a contract deliverableData Item Descriptions or have other forms of
organizationally-mandated content.
The Software Requirements Specification (SRS) is a communication tool between stakeholders
and software designers. The specific goals of the SRS are:
Facilitatingreviews
Describing the scope ofwork
Providing a reference to software designers (i.e. navigation aids, documentstructure)
GREEN FURNITURE 6
Providing a framework for testing primary and secondary usecases
Including features to customerrequirements
Providing a platform for ongoing refinement (via incomplete specs orquestions)
An example organization of an SRS is asfollows:
Purpose
Definitions
Systemoverview
References
Overalldescription
Productperspective
SystemInterfaces
Userinterfaces
Hardwareinterfaces
Softwareinterfaces
CommunicationInterfaces
MemoryConstraints
Designconstraints
Operations
Site AdaptationRequirements
Productfunctions
Usercharacteristics
Constraints, assumptions anddependencies
Specificrequirements
External interface requirements
Functionalrequirements
Performancerequirements
Logical databaserequirement
GREEN FURNITURE 7
Software Systemattributes
Reliability
Availability
Security
Maintainability
Portability
GREEN FURNITURE 8
SYSTEM REQUIREMENTS:
2.2 Hardware RequirementSpecifications:
• System : Pentium IV 2.4GHz.
• Hard Disk : 40GB.
• FloppyDrive : 1.44 Mb.
• Monitor : 15 VGAColor.
• Mouse : Logitech.
• Ram : 512Mb.
2.3 Software Requirement Specifications:
OperatingSystem :WindowsXP / 7,Win 8
Front End : Java, jsp, servlets, jdbc, html, css, SQL
Back End :MySQL
IDE : Eclipse/NetBeans
GREEN FURNITURE 9
2.3.1 Introduction toJAVA
When the chronicle of computer languages is written, the following will be said: B led to
C, C evolved into C++, and C++ set the stage for Java. To understand Java is to understand the
reasons that drove its creation, the forces that shaped it, and the legacy that it inherits. Like the
successful computer languages that came before, Java is a blend of the best elements of its rich
heritage combined with the innovative concepts required by its unique environment. While the
remaining chapters of this book describe the practical aspects of Java—including its syntax,
libraries, and applications—in this chapter, you will learn how and why Java came about, and
what makes it so important. Although Java has become inseparably linked with the online
environment of the Internet, it is important to remember that Java is first and foremost a
programming language. Computer language innovation and development occurs for two
fundamental reasons:
Creation of Java
Java was conceived by James Gosling, Patrick Haughton, Chris Warth, Ed Frank, and
Mike Sheridan at Sun Microsystems, Inc. in 1991. It took 18 months to develop the first working
version. This language was initially called "Oak" but was renamed "Java" in 1995. Between the
initial implementation of Oak in the fall of 1992 and the public announcement of Java in the
spring of 1995, many more people contributed to the design and evolution of the language. Bill
Joy, Arthur van Hoff, Jonathan Payne, Frank Yellin,
And Tim Lindholm was key contributors to the maturing of the original prototype.
Somewhat surprisingly, the original impetus for Java was not the Internet! Instead, the primary
motivation was the need for a platform-independent (that is, architecture- neutral) language that
could be used to create software to be embedded in various consumer electronic devices, such as
microwave ovens and remote controls. As you can probably guess, many different types of CPUs
are used as controllers. The trouble with C and C++ (and most other languages) is that they are
designed to be compiled for a specific target.
GREEN FURNITURE 10
Although it is possible to compile a C++ program for just about any type of CPU, to do
so requires a full C++ compiler targeted for that CPU. The problem is that compilers are
expensive and time-consuming to create. An easier—and more cost-efficient—solution was
needed. In an attempt to find such a solution, Gosling and others began work on a portable,
platform-independent language that could be used to produce code that would run on a variety of
CPUs under differing environments. This effort ultimately led to the creation of Java. About the
time that the details of Java were being worked out, a second, and ultimately more important,
factor was emerging that would play a crucial role in the future ofJava.
This second force was, of course, the World Wide Web. Had the Web not taken shape at
about the same time that Java was being implemented, Java might have remained a useful but
obscure language for programming consumer electronics. However, with the emergence of the
World Wide Web, Java was propelled to the forefront of computer language design, because the
Web, too, demanded portable programs. Most programmers learn early in their careers that
portable programs are as elusive as they are desirable. While the quest for a way to create
efficient, portable (platform independent) programs is nearly as old as the discipline of
programming itself, it had taken a back seat to other, more pressing problems. Further, because
much of the computer world had divided itself into the three competing camps of Intel,
Macintosh, and UNIX, most programmers stayed within their fortified boundaries, and the
urgent needfor
Portable code was reduced. However, with the advent of the Internet and the Web, the old
problem of portability returned with a vengeance. After all, the Internet consists of a diverse,
distributed universe populated with many types of computers, operating systems, and CPUs.
Even though many types of platforms are attached to the Internet, users would like them all to be
able to run the same program. What was once an irritating but low-priority problem had become
a high-profilenecessity.
By 1993, it became obvious to members of the Java design team that the problems of
portability frequently encountered when creating code for embedded controllers are also found
when attempting to create code for the Internet. In fact, the same problem that Java was initially
designed to solve on a small scale could also be applied to the Internet on a large scale. This
GREEN FURNITURE 11
Realization caused the focus of Java to switch from consumer electronics to Internet
programming. So, while the desire for an architecture-neutral programming language provided
the initial spark, the Internet ultimately led to Java's large-scale success. As mentioned earlier,
Java derives much of its character from C and C++. This is by intent. The Java designers knew
that using the familiar syntax of C and echoing the object-oriented features of C++ would make
their language appealing to the legions of experienced C/C++ programmers. In addition to the
surface similarities, Java shares some of the other attributes that helped make C and C++
successful. First, Java was designed, tested, and refined by real, working programmers. It is a
language grounded in
The needs and experiences of the people who devised it. Thus, Java is also a
programmer's language. Second, Java is cohesive and logically consistent. Third, except for
those constraints imposed by the Internet environment, Java gives you, the programmer, and full
control. If you program well, your programs reflect it. If you program poorly, your programs
reflect that, too. Put differently, Java is not a language with training wheels. It is a language for
professional programmers. Because of the similarities between Java and C++, it is tempting to
think of Java as simply the "Internet version of C++." However, to do so would be a large
mistake.
Java has significant practical and philosophical differences. While it is true that Java was
influenced by C++, it is not an enhanced version of C++. For example, Java is neither upwardly
nor downwardly compatible with C++. Of course, the similarities with C++ are significant, and if
you are a C++ programmer, then you will feel right at home with Java. One other point: Java was
not designed to replace C++.
Java was designed to solve a certain set of problems. C++ was designed to solve a
different set of problems. Both will coexist for many years to come. As mentioned at the start of
this chapter, computer languages evolve for two reasons: to adapt to changes in environment and
to implement advances in the art of programming.
The environmental change that prompted Java was the need for platform-independent
programs destined for distribution on the Internet. However, Java also embodies changes in the
GREEN FURNITURE 12
Way that people approach the writing of programs. Specifically, Java enhances and refines the
object-oriented paradigm used by C++.
Thus, Java is not a language that exists in isolation. Rather, it is the current instance of an
ongoing process begun many years ago. This fact alone is enough to ensure Java a place in
computer language history. Java is to Internet programming what C was to systems
programming: a revolutionary force that will change the world.
2.3.2 INTRODUCTION TOSERVLETS
Introduction
The Java web server is Java Sot’s own web Server. The Java web server is
just a part of a larger framework, intended to provide you not just with a web
server, but also with tools. To build customized network servers for any Internet or
Intranet client/server system. Servlets are to a web server, how applets are to the
browser.
About Servlets
Servlets provide a Java-based solution used to address the problems currently associated
with doing server-side programming, including inextensible scripting solutions, platform-specific
APIs, and incomplete interfaces.
Servlets are objects that conform to a specific interface that can be plugged into a Java-
based server. Servlets are to the server-side what applets are to the client-side - object byte codes
that can be dynamically loaded off the net. They differ from applets in that they are faceless
objects (without graphics or a GUI component). They serve as platform independent,
dynamically loadable, pluggable helper byte code objects on the server side that can be used to
dynamically extend server-side functionality.
GREEN FURNITURE 13
For example, an HTTP Servlets can be used to generate dynamic HTML content. When
you use Servlets to do dynamic content you get the following advantages:
They’re faster and cleaner than CGIscripts
They use a standard API (the ServletsAPI)
They provide all the advantages of Java (run on a variety of servers without needing tobe
rewritten).
Attractiveness of Servlets
There are many features of Servlets that make them easy and attractive to use. These include:
Easily configured using the GUI-based Admintool
Can be loaded and invoked from a local disk or remotely across thenetwork.
Can be linked together, or chained, so that one Servlets can call another Servletsor
several Servlets insequence.
Can be called dynamically from within HTML pages, using server-side includetags.
Are secure - even when downloading across the network, the Servlets security modeland
Servlets sandbox protect your system from unfriendlybehavior.
Advantages of the Servlet API
One of the great advantages of the Servlet API is protocol independence. It assumes
nothing about:
The protocol being used to transmit on thenet
How it isloaded
The server environment it will be runningin
These qualities are important, because it allows the Servlet API to be embedded in many
different kinds of servers. There are other advantages to the Servlet API as well.
GREEN FURNITURE 14
These include:
It’s extensible - you can inherit all your functionality from the base classes made
available toyou.
It’s simple, small, and easy touse.
Features of Servlets
Servlets are persistent. Servlet are loaded only by the web server and can maintain
services betweenrequests.
Servlets are fast. Since Servlets only need to be loaded once, they offer muchbetter
performance over their CGIcounterparts.
Servlets are platformindependent.
Servlets are extensible. Java is a robust, object-oriented programming language,which
easily can be extended to suit yourneeds
Servlets aresecure.
Servlets can be used with a variety ofclients.
Loading Servlets
Servlets can be loaded from three places
From a directory that is on the CLASSPATH. The CLASSPATH of the Java Webserver
includes service root/classes/ which is where the system classes reside.
From the <SERVICE_ROOT /Servlets/ directory. This is *not* in the server’sclass path.
A class loader is used to create Servlets from this directory. New Servlets can be added - existing
Servlets can be recompiled and the server will notice thesechanges.
GREEN FURNITURE 15
From a remote location. For this a code base like http: // nineteen / classes / foo / is
required in addition to the Servlets class name. Refer to the admin GUI docs on Servlet section to
see how to set this up.
Loading Remote Servlets
Remote Servlets can be loaded by:
1. Configuring the Admin Tool to setup automatic loading of remoteServlets
2. Setting up server side include tags in. shtmlfiles
3. Defining a filter chainconfiguration
Invoking Servlets
A Servlet invoker is a Servlet that invokes the "service" method on a named Servlet. If
the Servlet is not loaded in the server, then the invoker first loads the Servlet (either from local
disk or from the network) and the then invokes the "service" method. Also like applets, local
Servlets in the server can be identified by just the class name. In other words, if a Servlet name is
not absolute, it is treated aslocal.
A client can invoke Servlets in the following ways:
The client can ask for a document that is served by theServlet.
The client (browser) can invoke the Servlet directly using a URL, once it hasbeen
mapped using the Servlet Aliases section of the adminGUI.
The Servlet can be invoked through server side includetags.
The Servlet can be invoked by placing it in the Servlets/directory.
The Servlet can be invoked by using it in a filterchain.
GREEN FURNITURE 16
2.3.3 INTRODUCTION TOJavaScript
JavaScript is a script-based programming language that was developed by Netscape
Communication Corporation. JavaScript was originally called Live Script and renamed as
JavaScript to indicate its relationship with Java. JavaScript supports the development of both
client and server components of Web-based applications. On the client side, it can be used to
write programs that are executed by a Web browser within the context of a Web page. On the
server side, it can be used to write Web server programs that can process information submitted
by a Web browser and then update the browser’s display accordingly
Even though JavaScript supports both client and server Web programming, we prefer
JavaScript at Client side programming since most of the browsers supports it. JavaScript is
almost as easy to learn as HTML, and JavaScript statements can be included in HTML
documents by enclosing the statements between a pair of scriptingtags
<SCRIPTS>.</SCRIPT>.
<SCRIPT LANGUAGE = “JavaScript”>
JavaScript statements
</SCRIPT>
Here are a few things we can do with JavaScript:
Validate the contents of a form and makecalculations.
Add scrolling or changing messages to the Browser’s statusline.
Animate images or rotate images that change when we move the mouse overthem.
Detect the browser in use and display different content for differentbrowsers.
Detect installed plug-ins and notify the user if a plug-in is required.
We can do much more with JavaScript, including creating entireapplication.
GREEN FURNITURE 17
JavaScript vs. Java
JavaScript and Java are entirely different languages. A few of the most glaring differences are:
Java applets are generally displayed in a box within the web document; JavaScript can
affect any part of the Web documentitself.
While JavaScript is best suited to simple applications and adding interactive features to
Web pages; Java can be used for incredibly complexapplications.
There are many other differences but the important thing to remember is that JavaScript
and Java are separate languages. They are both useful for different things; in fact they can be
used together to combine theiradvantages.
Advantages
JavaScript can be used for Sever-side and Client-sidescripting.
It is more flexible thanVBScript.
JavaScript is the default scripting languages at Client-side since all the browsers supportsit.
2.3.4 INTRODUCTION TO Hyper Text MarkupLanguage
Hypertext Markup Language (HTML), the languages of the World Wide Web (WWW),
allows users to produces Web pages that include text, graphics and pointer to other Web pages
(Hyperlinks).
HTML is not a programming language but it is an application of ISO Standard 8879,
SGML (Standard Generalized Markup Language), but specialized to hypertext and adapted to
the Web. The idea behind Hypertext is that instead of reading text in rigid linear structure, we
can easily jump from one point to another point. We can navigate through the information based
on our interest and preference. A markup language is simply a series of elements, each delimited
withspecialcharactersthatdefinehowtextorotheritemsenclosedwithintheelementsshould
GREEN FURNITURE 18
Be displayed. Hyperlinks are underlined or emphasized works that load to other documents or
some portions of the same document.
HTML can be used to display any type of document on the host computer, which can be
geographically at a different location. It is a versatile language and can be used on any platform
or desktop.
HTML provides tags (special codes) to make the document look attractive. HTML tags
are not case-sensitive. Using graphics, fonts, different sizes, color, etc., can enhance the
presentation of the document. Anything that is not a tag is part of the document itself.
Basic HTML Tags:
<!-- --> specifies comments
<A>……….</A> Creates hypertextlinks
<B>……….</B> Formats text asbold
<BIG>……….</BIG> Formats text in large font.
<BODY>…</BODY> Contains all tags and text in the HTMLdocument
<CENTER>...</CENTER> Createstext
<DD>…</DD> Definition of aterm
<DL>...</DL> Creates definitionlist
<FONT>…</FONT> Formats text with a particularfont
<FORM>...</FORM> Encloses a fill-outform
<FRAME>...</FRAME> Defines a particular frame in a set offrames
<H#>…</H#> Creates headings of differentlevels
GREEN FURNITURE 19
<HEAD>...</HEAD> Contains tags that specify information about adocument
<HR>...</HR> Creates a horizontalrule
<HTML>…</HTML> Contains all other HTMLtags
<META>...</META> Provides meta-information about adocument
<SCRIPT>…</SCRIPT> Contains client-side or server-sidescript
<TABLE>…</TABLE> Creates atable
<TD>…</TD> Indicates table data in atable
<TR>…</TR> Designates a tablerow
<TH>…</TH> Creates a heading in atable
Advantages
A HTML document is small and hence easy to send over the net. It is small because it does
not include formattedinformation.
HTML is platformindependent.
HTML tags are notcase-sensitive.
Java Database Connectivity
What Is JDBC?
JDBC is a Java API for executing SQL statements. (As a point of interest, JDBC is a
trademarked name and is not an acronym; nevertheless, JDBC is often thought of as standing for
Java Database Connectivity. It consists of a set of classes and interfaces written in the Java
programming language. JDBC provides a standard API for tool/database developers and makes it
possible to write database applications using a pure Java API.
GREEN FURNITURE 20
Using JDBC, it is easy to send SQL statements to virtually any relational database. One
can write a single program using the JDBC API, and the program will be able to send SQL
statements to the appropriate database. The combinations of Java and JDBC lets a programmer
write it once and run it anywhere.
What Does JDBC Do?
Simply put, JDBC makes it possible to do three things:
Establish a connection with adatabase
Send SQLstatements
Process theresults.
JDBC versus ODBC and other APIs
At this point, Microsoft's ODBC (Open Database Connectivity) API is that probably the
most widely used programming interface for accessing relational databases. It offers the ability
to connect to almost all databases on almost all platforms.
So why not just use ODBC from Java? The answer is that you can use ODBC from Java,
but this is best done with the help of JDBC in the form of the JDBC-ODBC Bridge, which we
will cover shortly. The question now becomes "Why do you need JDBC?" There are several
answers to this question:
1. ODBC is not appropriate for direct use from Java because it uses a C interface. Calls
from Java to native C code have a number of drawbacks in the security, implementation,
robustness, and automatic portability ofapplications.
2. A literal translation of the ODBC C API into a Java API would not be desirable. For
example, Java has no pointers, and ODBC makes copious use of them,including the
GREEN FURNITURE 21
Notoriously error-prone generic pointer "void *". You can think of JDBC as ODBC
translated into an object-oriented interface that is natural for Java programmers.
3. ODBC is hard to learn. It mixes simple and advanced features together, and it has
complex options even for simple queries. JDBC, on the other hand, was designed to keep
simple things simple while allowing more advanced capabilities whererequired.
4. A Java API like JDBC is needed in order to enable a "pure Java" solution. When ODBC
is used, the ODBC driver manager and drivers must be manually installed on every client
machine. When the JDBC driver is written completely in Java, however, JDBC code is
automatically installable, portable, and secure on all Java platforms from network
computers tomainframes.
Two-tier and three-tier Models
The JDBC API supports both two-tier and three-tier models for database access. In the
two-tier model, a Java applet or application talks directly to the database. This requires a JDBC
driver that can communicate with the particular database management system being accessed. A
user's SQL statements are delivered to the database, and the results of those statements are sent
back to the user. The database may be located on another machine to which the user is connected
via a network. This is referred to as a client/server configuration, with the user's machine as the
client, and the machine housing the database as the server. The network can be an Intranet,
which, for example, connects employees within a corporation, or it can be the Internet.
In the three-tier model, commands are sent to a "middle tier" of services, which then send
SQL statements to the database. The database processes the SQL statements and sends the results
back to the middle tier, which then sends them to the user. MIS directors find the three-tier
model very attractive because the middle tier makes it possible to maintain control over access
and the kinds of updates that can be made to corporate data. Another advantage is that when
there is a middle tier, the user can employ an easy-to-use higher-level API which is translated by
the middle tier into the appropriate low-level calls. Finally, in many cases the three-tier
architecture can provide performanceadvantages.
GREEN FURNITURE 22
Until now the middle tier has typically been written in languages such as C or C++,
which offer fast performance. However, with the introduction of optimizing compilers that
translate Java byte code into efficient machine-specific code, it is becoming practical to
implement the middle tier in Java. This is a big plus, making it possible to take advantage of
Java's robustness, multithreading, and security features. JDBC is important to allow database
access from a Java middletier.
JDBC Driver Types
The JDBC drivers that we are aware of at this time fit into one of four categories:
JDBC-ODBC bridge plus ODBCdriver
Native-API partly-Javadriver
JDBC-Net pure Javadriver
Native-protocol pure Javadriver
JDBC-ODBC Bridge
If possible, use a Pure Java JDBC driver instead of the Bridge and an ODBC driver. This
completely eliminates the client configuration required by ODBC. It also eliminates the potential
that the Java VM could be corrupted by an error in the native code brought in by the Bridge (that
is, the Bridge native library, the ODBC driver manager library, the ODBC driver library, and the
database client library).
What Is the JDBC- ODBC Bridge?
The JDBC-ODBC Bridge is a JDBC driver, which implements JDBC operations by
translating them into ODBC operations. To ODBC it appears as a normal application program.
The Bridge implements JDBC for any database for which an ODBC driver is available. The
Bridge is implemented as the
Sun.jdbc.odbc Java package and contains a native library used to access ODBC. The
Bridge is a joint development of Innersole and Java Soft.
GREEN FURNITURE 23
Java Server Pages (JSP)
Java server Pages is a simple, yet powerful technology for creating and maintaining
dynamic-content web pages. Based on the Java programming language, Java Server Pages offers
proven portability, open standards, and mature re-usable component model .The Java Server
Pages architecture enables the separation of content generation from content presentation. This
separation not eases maintenance headaches; it also allows web team members to focus on their
areas of expertise. Now, web page designer can concentrate on layout, and web application
designers on programming, with minimal concern about impacting each other’s work.
Features of JSP
Portability:
Java Server Pages files can be run on any web server or web-enabled application server
that provides support for them. Dubbed the JSP engine, this support involves recognition,
translation, and management of the Java Server Page lifecycle and its interaction components.
Components
It was mentioned earlier that the Java Server Pages architecture can include reusable Java
components. The architecture also allows for the embedding of a scripting language directly into
the Java Server Pages file. The components current supported include Java Beans, and Servlets.
Processing
A Java Server Pages file is essentially an HTML document with JSP scripting or tags.
The Java Server Pages file has a JSP extension to the server as a Java Server Pages file. Before
the page is served, the Java Server Pages syntax is parsed and processed into a Servlet on the
server side. The Servlet that is generated outputs real content in straight HTML for responding to
theclient.
GREEN FURNITURE 24
Access Models:
A Java Server Pages file may be accessed in at least two different ways. A client‟s
request comes directly into a Java Server Page. In this scenario, suppose the page accesses
reusable Java Bean components that perform particular well-defined computations like accessing
a database. The result of the Beans computations, called result sets is stored within the Bean as
properties. The page uses such Beans to generate dynamic content and present it back to the
client.
In both of the above cases, the page could also contain any valid Java code. Java Server
Pages architecture encourages separation of content from presentation.
Steps in the execution of a JSP Application:
1. The client sends a request to the web server for a JSP file by giving the name of the
JSP file within the form tag of a HTMLpage.
2. This request is transferred to the Java Webserver. At the server side Java Webserver
receives the request and if it is a request for a jsp file server gives this request to the
JSPengine.
3. JSP engine is program which can understand the tags of the jsp and then it converts
those tags into a Servlet program and it is stored at the server side. This Servlet is
loaded in the memory and then it is executed and the result is given back to the
JavaWebServer and then it is transferred back to the result is given back to the
JavaWebServer and then it is transferred back to theclient.
JDBC connectivity
The JDBC provides database-independent connectivity between the J2EE platform and a
wide range of tabular data sources. JDBC technology allows an Application Component Provider
to:
Perform connection and authentication to a databaseserver
GREEN FURNITURE 25
Managertransactions
Move SQL statements to a database engine for preprocessing andexecution
Execute storedprocedures
Inspect and modify the results from Selectstatements
Purpose
The generated application is the first version upon the system. The overall system is
planned to be in the formal of distributed architecture with homogeneous database platform. The
major objective of the overall system is to keep the following components intact.
Details of Software use
For technical writers who haven't had the experience of designing software requirements
specifications (SRSs, also known as software functional specifications or system specifications)
templates or even writing SRSs, they might assume that being given the opportunity to do so is
either a reward or punishment for something they did (or failed to do) on a previous project.
Actually, SRSs are ideal projects for technical writers to be involved with because they lay out
the foundation for the development of a new product and for the types of user documentation and
media that will be required later in the project development life cycle. It also doesn't hurt that
you'd be playing a visible role in contributing to the success of the project.
This article will describe what an SRS is and why it's important, discuss how and why
technical writers should be involved with them, and discuss the critical elements for writing an
SRS. Although this article does not attempt to address all aspects of developing SRSs, it aims to
help you determine the scope for such a project, to provide some guidelines for writing SRSs,
and to provide additional resources. Hopefully with this information, you'll not be asking, "Why
me?" but proclaiming "Why notme?"
GREEN FURNITURE 26
2.3.4 Introduction to MYSQL
The database has become an integral part of almost every human's life. Without it, many things
we do would become very tedious, perhaps impossible tasks. Banks, universities, and libraries
are three examples of organizations that depend heavily on some sort of database system. On the
Internet, search engines, online shopping, and even the website naming convention would be
impossible without the use of a database. A database that is implemented and interfaced on
acomputer. .
One of the fastest SQL (Structured Query Language) database servers currently on the
market is the MySQL server, developed by T.c.X. DataKonsultAB. MySQL, available for
download at www.mysql.com, offers the database programmer with an array of options and
capabilities rarely seen in other database servers. MySQL is free of charge for those wishing to
use it for private and commercial use. Those wishing to develop applications specifically using
MySQL should consult MySQL's licensing section, as there is charge for licensing the product.
(3)
These capabilities range across several topics, including the following:
a) Ability to handle an unlimited number of simultaneoususers.
b) Capacity to handle 50,000,000+records.
c) Very fast command execution, perhaps the fastest to be found on themarket.
d) Easy and efficient user privilege system. However, perhaps the most interesting characteristic
of all is the fact that it's free. That's right, T.c.X offers MySQL as a free product to the public.(3)
GREEN FURNITURE 27
PROPOSED SYSTEM
The“OnlineFurniture‟applicationistargetedtoautomatealmostalloftheprocessesmentioned above
to reduce the clerical labor of the staff working in Furniture Stores, both technical as well as
Sales department, using the latest technologies and cost effective tools, thereby providing better
control to the management of sales and inventory data by avoiding manual errors and making all
sorts of calculations easier andfaster.
GREEN FURNITURE 28
3.1 TABLEDESCRIPTION
Admin login
Sl. No Field name Variable type
/size
Constrains Description
1. Username Varchar / 20 Primary key Stores the username of the admin
2. Password Varchar / 10 unique Stores n verifies the password of
the admin.
m_category
Sl. No Field name Variable type
/size
Constrains Description
1. Category Id Int/10 Not null Stores category‟s ID
2. Category Name Varchar / 30 null Stores the name of the category
GREEN FURNITURE 29
m_product
Sl. No Field name Variable Type
/size
Constrains Description
3. Product_Id Int / 10 Not null It stores the Id of the product.
4. Category_name Varchar / 30 Null Stores the category name.
3. Product_name Varchar/ 30 Null Stores the product‟s name.
4. Prod_image Varchar/ 10 Null Displays the image of the product
6. Product price Int/ 10 Null Stores the price of the product
m-cart
Sl. No Field name Variable Type /size Constrains Description
1. Product_Id Int / 20 Not null It stores the Id of the product.
2. Product_name Varchar / 30 Null Stores the name of the product.
3. Product_price Int/ 30 Null Stores the price of the product.
4. Quantity Int / 10 Null Stores the number of the product.
6. User id Varchar / 20 Null Stores the mail id of the user
requesting for blood.
GREEN FURNITURE 30
Registration
Sl.no
Variable Name
Variable type/size
Constrains
Description
1. User Name Varchar (30) Not null It contains the name of the
user.
2. Password Varchar (30) Null Password of the user will
be stored here
3. First Name Varchar (30) Null Stores the first name of the
user
4. Last Name Varchar (30) Null Stores the last name of the
user
5. Gender Varchar (30) Null This contains the gender of
the user.
6. Address Varchar (30) Null Address of the user will be
stored.
7. City Varchar (30) Null This contains the city of
the user.
8. Zip Code Varchar (30) Null This contains the Zip code
of the user.
9. State Varchar (30) Null This contains the state of
the user.
10. Country Varchar (30) Null This contains the country
of the user.
11. Email Varchar (30) Null This contains the mail id of
the user.
12. Mobile No. Varchar (30) Null It contains the mobile no of
the user
GREEN FURNITURE 31
3.2 Data FlowDiagrams
INTRODUCTION TO DFD
A data flow diagram (DFD) is a graphical representation of the "flow" of data through an
information system,modeling its process aspects. A DFD is often used as a preliminary step to
create an overview of the system without going into great detail, which can later be elaborated.
DFDs can also be used for the visualization of data processing (structured design).
A DFD shows what kind of information will be input to and output from the system, how the
data will advance through the system, and where the data will be stored. It does not show
information about the timing of process or information about whether processes will operate in
sequence or in parallel unlike a flowchart which also shows this information.
GREEN FURNITURE 33
4.1SOURCE CODE
AdminLogin.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<script language="javascript">
function window_Onload()
{
document.getElementById ("username").focus();
document.getElementById ("username").value="";
document.getElementById("password").value="";
}
function checkFormValidator ()
{
if(document.adminloginform.username.value=="")
{
alert("Please Enter Username");
document.adminloginform.username.focus();
return false;
}
GREEN FURNITURE 34
else if(document.adminloginform.password.value=="")
{
Alert ("Please Enter Password");
document.adminloginform.password.focus
(); return false;
}
}
</script>
</head>
<body background="Images/pil.jpeg" onload="window_Onload ()">
<%!
%>
<%
String loginstatus="";
String signoutstatus="";
Loginstatus= (String) request.getAttribute ("loginstatus"); signoutstatus=request.getParameter
("signoutstatus");
//System.out.println ("Sign out Status "+signoutstatus);
%>
GREEN FURNITURE 35
<form name="adminloginform" action="AdminLoginAction" method="post" onsubmit="return
checkFormValidator()">
<center><font size="5"><font color="#800517">Admin Module </font></font></center>
<hr color="#C031C7">
<br>
<br>
<a href="MainHome.jsp"><font size="5"><font color="#800517">Home</font></font></a>
<img src="Images/E2.JPG" align="right">
<center>
<table bgcolor ="white" border="0" width="30%" height="40%" align ="right">
<tr>
<td align="center">
<font size="5"><font color="#800517">Admin Login </font></font><br><br>
<font color="#800517"><font size="4">Username</font></font><input
type="text" name="username" size="20" />
<br><br>
<font color=#800517 size="4">Password</font><input type="password"
name="password" size="21.5" />
<br><br>
GREEN FURNITURE 36
<input type="submit" value="Login"> <input
type="reset" value="Reset"/>
</td>
</tr>
</Table>
<%
if(loginstatus==null)
{
else if(loginstatus.equals("failure"))
{
%>
<script language="javascript">
alert ("Login Failed!!!");
</script>
<%
}
if(signoutstatus==null)
{
/* Created by Qamar Islam*/
GREEN FURNITURE 37
}
else if(signoutstatus.equals("success"))
{
%>
<center><h2><font color="#800517">Logged out Succesfully!!!</font></h2></center>
<%
}
%>
</form>
</body>
</html>
AdminHome.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Admin Page</title>
</head>
<frameset name="header" rows="25%,*" border="1">
GREEN FURNITURE 38
<frame name="top" src="AdminHeader.jsp" scrolling="no">
<frame name="right" src="AdminContent.jsp" scrolling="yes">
</frameset>
</head>
<body background="q.jpg">
</body>
</html>
AdminContent.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body background="images/q.jpg">
</body>
GREEN FURNITURE 39
</html>
MainHome.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Online Jewellery</title>
</head>
<body background="Images/soft.jpg"><br><br><br>
<img src="Images/e.JPG" align="left">
<table bgcolor ="" border="1" width="30%" height="50%" align ="right"
bordercolor="#E55B3C">
<tr>
<td align="center">
<br>
GREEN FURNITURE 40
<a href="AdminLogin.jsp"><font size="5"><font color="#800517">Admin</font></font></a>
<br><br>
<a href="UserLogin.jsp"><font size="5"><font color="#800517">User</font></font></a>
<br><br>
<a href="Register.jsp"><font size="5"><font color="#800517">New User</font></font></a>
<br><br>
</td>
</tr>
</table><br><br><br>
</body>
</html>
MyCart.jsp
<%@page import="com.qam.dao.UserDAO"%>
<%@page import="model.MyCart, com.qam.dbcon.*, java.sql.*"%>
GREEN FURNITURE 41
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
/* function Q()
{
alert (document.getElementById ("proid1").value);
} */
Function ChangeQuantity(obj)
{
var proid=document.getElementById("test").value;
/* alert(proid);
alert(obj); */
GREEN FURNITURE 42
Var jspcall = "UpdateQuantity.jsp?
proid="+proid+"&quant="+obj; window.location.href = jspcall;
}
</script>
</head>
<body>
<%!
String username="";
Connection connection=null;
Statement statement=null;
ResultSet resultset=null;
int total=0;
%>
<%
if(session.getAttribute("user")==null)
{
response.sendRedirect ("SessionExpired.jsp");
}
Else
GREEN FURNITURE 43
{
username=(String)session.getAttribute("user");
System.out.println("Value of id session in header..."+username);
}
MyCart mc=UserDAO.getCartDetailsByUserId(username);
// out.println(mc.toString());
if(mc.getBuy().equals("NO"))
{
%>
<center>
<table border="1" bordercolor="#C85A17">
<tr bgcolor="">
<th><FONT SIZE="4" COLOR="#800517">Product ID</FONT></th>
<th><FONT SIZE="4" COLOR="#800517">Product
Name</FONT></th>
<th><FONT SIZE="4" COLOR="#800517">Product
Price</FONT></th>
GREEN FURNITURE 44
<!-- <th><FONT SIZE="4"
COLOR="#800517">View</FONT></th> -->
<th><FONT SIZE="4" COLOR="#800517">Quantity</FONT></th>
<th><FONT SIZE="4" COLOR="#800517">Delete</FONT></th>
</tr>
<%
try
{
connection = db_connnection.getConnection();
statement=connection.createStatement();
resultset=statement.executeQuery("select * from m_cart where
user_id='"+username+"' andbuy='NO'");
while(resultset.next())
GREEN FURNITURE 45
{
//int csno = i;
int proid = resultset.getInt("product_id");
String proname = resultset.getString ("product_name");
String proprice = resultset.getString("product_price");
String quantity = resultset.getString("quantity");
// String buy =resultset.getString ("buy");
//<option>
%>
<tr>
<form action="UpdateQuantity.jsp">
<td><div id="proid1" align=center><FONT SIZE="4"
COLOR="#808080"><input type="text" name="proid" value=<%=proid %>read
only></FONT></div>
<td><div align=center><FONT SIZE="4"
COLOR="#808080"><%=proname %></FONT></div>
GREEN FURNITURE 46
<td><div align=center><FONT SIZE="4"
COLOR="#808080"><%=proprice %></FONT></div>
<%-- <td><div align=center><FONT SIZE="4"
COLOR="#808080"><%=quantity %></FONT></div> --%>
<td><div align=center><input type="text" name="quantity1"
value=<%=quantity %>></div></td>
<td><div align=center><FONT SIZE="4"
COLOR="#808080"><input type="submit"
value="Update"></FONT></div></td></form>
<%-- <td><div align=center><a href="<%=img%>" target="_blank"><img
src="<%=img %>" height="100" width="100"></a></div> --%>
<td>
<a href="DeleteProductFromCart.jsp?prodname=<%=proid%>" onclick="return
confirm('Do you want to delete')"><font color="#808080">Delete</a></p>
</td>
</tr>
GREEN FURNITURE 47
<%
}%>
<%}
catch (Exception e)
{}
%>
</table>
<%
total=UserDAO.Total(username);
%>
<br>
GREEN FURNITURE 48
<table border="1" bordercolor="#C85A17">
<tr><td width="200"><div align=center><FONT SIZE="4"
COLOR="#808080">TOTAL = <%= total %></FONT></div></td></tr>
<form action="BuyProduct.jsp">
<tr><td width="200"><div align=center><FONT SIZE="4"
COLOR="#808080">COD<input type="radio" name="buyOption" value="COD"
checked="checked"> Credit Card<input type="radio" name="buyOption"
value="CreditCard"></FONT></div></td></tr>
<tr><td><div align=center><FONT SIZE="4" COLOR="#808080"><input
type="submit" value="BUY"></FONT></div></td></tr>
</table>
<%}
else{
%>
<div align=center><FONTSIZE="4"COLOR="#6060010"> Please Add
Product To TheCart</FONT></div>
<%} %>
</center>
</body>
</html>
Register
GREEN FURNITURE 49
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-
1">
<title>Add New User</title>
<script language="javascript">
function window_Onload()
{
document.adduserform.uname.focus();
document.adduserform.uname.value="";
document.adduserform.pass.value="";
document.adduserform.repass.value="";
document.adduserform.fname.value="";
document.adduserform.lname.value="";
GREEN FURNITURE 50
document.adduserform.user_gender.value="";
document.adduserform.address.value="";
document.adduserform.city.value="";
document.adduserform.zcode.value="";
document.adduserform.state.value="";
document.adduserform.cnt.value="";
document.adduserform.email.value="";
document.adduserform.mobile.value="";
}
function checkFormValidator()
{
if(document.adduserform.uname.value=="")
{
alert("Please Enter your User
Name");
document.adduserform.uname.focus();
return false;
GREEN FURNITURE 52
else if(document.adduserform.pass.value=="")
{
alert("Please Enter your
Password");
document.adduserform.pass.focus();
return false;
}
else if(document.adduserform.repass.value=="")
{
alert("Please Enter Re-Type
Password");
GREEN FURNITURE 54
}
else if(document.adduserform.fname.value=="")
{
alert("Please Enter First Name");
document.adduserform.fname.focus();
return false;
}
else if(document.adduserform.lname.value=="")
{
alert("Plese Enter your Last Name");
document.adduserform.lname.focus();
GREEN FURNITURE 55
return false;
}
else if(document.adduserform.user_gender.value=="")
{
alert("Please Enter your Gender");
document.adduserform.user_gender.focus();
return false;
}
else if(document.adduserform.address.value=="")
{
GREEN FURNITURE 56
alert("Plese Enter your Address");
document.adduserform.address.focus();
return false;
}
else if(document.adduserform.city.value=="")
{
alert("Please Enter your city");
document.adduserform.city.focus();
return false;
}
GREEN FURNITURE 57
else if(document.adduserform.zcode.value=="")
{
alert("Plese Enter your zip code");
document.adduserform.zcode.focus();
return false;
}
else if (isNaN(document.adduserform.zcode.value))
{
alert("The zip number contains illegal characters.");
document.adduserform.zcode.value = "";
document.adduserform.zcode.focus();
return false;
}
else if(document.adduserform.state.value=="")
{
GREEN FURNITURE 58
alert("Plese Enter your state");
document.adduserform.state.focus();
return false;
}
else if(document.adduserform.cnt.value=="")
{
alert("Plese Enter your City");
document.adduserform.cnt.focus();
return false;
}
else if(document.adduserform.email.value=="")
{
alert("Plese Enter your Email");
GREEN FURNITURE 59
document.adduserform.email.focus();
return false;
}
else if(document.adduserform.email.value=="")
{
var x=document.forms["myForm"]["email"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
{
alert("Not a valid e-mail address");
return false;
}
}
GREEN FURNITURE 60
else if(document.adduserform.mobile.value=="")
{
alert("Plese Enter your Mobile");
document.adduserform.mobile.focus();
return false;
}
else if(document.adduserform.mobile.value=="")
{
var x = document.form1.txtPhone.value;
var y = document.form1.txtMobile.value;
if(isNaN(x)||x.indexOf(" ")!=-1)
{
alert("Enter numeric value")
return false;
GREEN FURNITURE 61
}
if(isNaN(y)||y.indexOf(" ")!=-1)
{
alert("Enter numeric value")
return false;
}
if(y.length>10)
{
alert("enter 10 characters");
return false;
}
}
GREEN FURNITURE 62
}
function checkPassword()
{
var password=document.getElementById("pass").value;
var repassword=document.getElementById("repass").value;
if(password!=repassword)
{
alert("Password Mismatch");
document.getElementById("pass").value="";
document.getElementById("repass").value="";
document.getElementById("pass").focus();
return false;
}
return true;
GREEN FURNITURE 63
}
</script>
</head>
<body background="Images/soft.jpg" onload="window_Onload()">
<body bgcolor="white">
<%!
String regiserstatus="";
String insertstatus="";
%>
<%
GREEN FURNITURE 64
regiserstatus=(String)request.getAttribute("regiserstatus");
//regiserstatus=request.getParameter("regiserstatus");
insertstatus=(String)request.getAttribute("insertstatus");
System.out.println("insertstatus .... "+insertstatus);
%>
<form name="adduserform" method="post" action="Register_User_Action"
onsubmit="return checkFormValidator()">
<%
if(regiserstatus==null)
{
}
else if(regiserstatus.equals("userexist"))
{
%>
GREEN FURNITURE 65
<script language="javascript">
alert("Sorry! User Already Exist!!!");
</script>
<%
}
%>
<%
if(insertstatus==null)
{
}
else if(insertstatus.equals("success"))
{
GREEN FURNITURE 66
%>
<script language="javascript">
alert("Inserted successfully!!!");
</script>
<%
}
%>
<a href="MainHome.jsp"><h2><font
color="#800517">Home</font></h2></a>
<img src="Images/qqq.JPG" align="right">
<center><br><br><br>
<table bgcolor="" "border="1" width="30%" bordercolor="#F9B7FF">
<tr><td align="center">
<table border="0"bordercolorlight="#F9B7FF">
<tr><td align="center" colspan="2"><font
color="#800517"><h1>User Registration</h1></font></td></tr>
GREEN FURNITURE 67
<tr><td><font color="#800517">User
Name</font></td><td><input type="text" name="uname" ></td></tr>
<tr><td><font color="#800517">Password</font></td><td><input
type="text" name="pass" ></td></tr>
<tr><td><font color="#800517">Re-Password</font></td><td><input
type="text" name="repass"></td></tr>
<tr><td><font color="#800517">First Name</font></td><td><input
type="text" name="fname"></td></tr>
<tr><td><font color="#800517">Last Name</font></td><td><input
type="text" name="lname"></td></tr>
<tr><td><font color="#800517">Gender</font></td><td><input type="text"
name="user_gender" ></td></tr>
<tr><td><font color="#800517">Address</font></td><td><input
type="text" name="address" ></td></tr>
<tr><td><font color="#800517">City</font></td><td><input type="text"
name="city" ></td></tr>
<tr><td><font color="#800517">Zip Code</font></td><td><input
type="text" name="zcode" ></td></tr>
<tr><td><font color="#800517">State</font></td><td><input type="text"
name="state" ></td></tr>
GREEN FURNITURE 68
<tr><td><font
color="#800517">Country</font></td><td><input type="text" name="cnt"
></td></tr>
<tr><td><font color="#800517">Email</font></td><td><input
type="text" name="email" ></td></tr>
<tr><td><font color="#800517">Mobile
No</font></td><td><input type="text" name="mobile" ></td></tr>
<tr><td colspan="2" align="center"><br><inputtype="submit"
value="Register" onclick="return checkPassword()"/><input type="reset"
value="RESET"></td></tr>
</table><br>
</td></tr></table>
</center>
</form>
</body>
</html>
GREEN FURNITURE 69
UserLogin
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-
1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
UserHome
<%--
Document :UserHome
Created on : 11 Mar, 2014, 5:09:42 PM
GREEN FURNITURE 70
Author :QamarIslam
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<frameset name="header" rows="29%,*" border="1">
<frame name="top" src="UserHeader.jsp" scrolling="no">
<frame name="right" src="UserContent.jsp" scrolling="yes">
</frameset>
</head>
<body background="w.jpg">
<h1>Hello World!</h1>
GREEN FURNITURE 72
Once source code has been generated, software must be tested to uncover (and correct) as many
errors as possible before delivery to customer. Our goal is to design a series of test cases that
have a high likelihood of finding errors. To uncover the errors software techniques areused.
These techniques provide systematic guidance for designing test that
(1) Exercise the internal logic of software components,and
(2) Exercise the input and output domains of the program to uncover errors in program function,
behavior andperformance.
STEPS:
Software is tested from two different perspectives:
(1) Internal program logic is exercised using ―White box ‖ test case designtechniques.
(2) Software requirements are exercised using ―Black box ‖ test case design techniques. In both
cases, the intent is to find the maximum number of errors with the Minimum amount of effort
and time.(5)
5.2 TYPES OFTESTING:
A strategy for software testing must accommodate low-level tests that are necessary to verify that
a small source code segment has been correctly implemented as well as high-level tests that
validate major system functions against customer requirements. (5)
A strategy must provide guidance for the practitioner and a set of milestones for the manager.
Because the steps of the test strategy occur at a time when deadline pressure begins to rise,
progress must be measurable and problems must surface as early as possible. Following testing
techniques are well known and the same strategy is adopted during this project testing.(5)
GREEN FURNITURE 73
5.2.1 UNITTESTING:
Unit testing focuses verification effort on the smallest unit of software design- the software
component or module. The unit test is white-box oriented. The unit testing implemented in every
module of student attendance management System by giving correct manual input to the system,
the data are stored in database and retrieved. If you want required module to access input or get
the output from the End user, any error will have accrued the time will provide handler to show
what type of error will accrued. (5)
UNIT TEST CASE 1
Name of the test Login test
Item being tested Test for valid user
Sample input Enter wrong username and password
Expected output Username and password required
Actual output Same as expected output
Remark Successful
UNIT TEST CASE 2
Name of the test Generate record test
Item being tested Test for valid register number
Sample input Enter wrong register number
Expected output Invalid register number
Actual output Same as expected output
Remark Successful
GREEN FURNITURE 74
5.2.2 SYSTEMTESTING:
System testing is actually a series of different tests whose primary purpose is to fully exercise
the computer-based system. Below we have described the two types of testing which have been
taken for this project. It is to check all modules worked on input basis. If you want to change any
values or inputs will change all information. So, specified input is must.(5)
5.2.3 MODULETESTING:
A module is sometimes used to describe a small subsystem composed of several “units.” For the
purposes of this article, the terms unit and module will be used interchangeably, referring to the
types of testing employed at the lowest level of system decomposition. The techniques described,
however, have greater applicability to testing outside of the unit or module. Testing directed to a
single module or unit is called module or unit testing. It consists of test planning, test data
development, test monitoring and execution, and evaluation of results. (5)
5.2.4 INTEGRATEDTESTING:
The purpose of integration testing is to verify functional, performance, and reliability
requirementsplaced on major design items. These "design items", i.e., assemblages (or groups of
units), are exercised through their interfaces using black box testing, success and error cases
being simulated via appropriate parameter and data inputs. Software Integration Testing is
performed according to the Software Development Life Cycle (SDLC) after module and
functional tests. The cross-dependencies for software integration testing are: schedule for
integration testing, strategy and selection of the tools used for integration, define the
GREEN FURNITURE 75
cyclomatical complexity of the software and software architecture, reusability of modules and
life-cycle / versioning management.(5)
5.2.5 FUNCTIONALTESTING:
Functional testing is a quality assurance(QA) process and a type of black-box testingthat bases
its test cases on the specifications of the software component under test. Functions are tested by
feeding them input and examining the output, and internal program structure is rarely considered
(unlike white-box testing). Functional testing usually describes what the system does.
Functional testing does not imply that you are testing a function (method) of your module or
class. Functional testing tests a slice of functionality of the whole system. (5)
GREEN FURNITURE 76
CONCLUSION:
The conclusion has been drawn on the basis of the findings, and the
recommendations that have been made to enable retailers, IT support and
researchers to devise strategies to ensure the ultimate objective of customer loyalty
is achieved. The current level of empirical research done on retail in the Indian
context is miniscule. This study is concentrated on perceptions and evaluations of
furniture stores and seeks to build on the very little research done in retailing in
general, and data mining in retailing in particular. In the future, researchers can
seek other relevant research problems from the industry and from existing
literature.
6.1 Future Enhancement
In terms of future scope, a variety of data mining techniques can be used by
researchers to simplify customer perceptions and attitudes. Every day, every hour
and every minute, tera-bytes of data gets generated from millions of shoppers, yet,
retail managers/ business executives always grapple with relevant information that
can help retailers/ researchers design strategies to generate customer loyalty. A
multi-channel solution for the forward thinking furniture retailer
World furniture consumption has been growing steadily for the past 10 years.
Although the demand is high, shifting consumer buying preferences and changing
tastes mean that furniture retailers are faced with huge opportunities for growth but
also with great newchallenges
GREEN FURNITURE 96
BIBLIOGRAPHY: -
WEBSITES REFERENCES
1. www.w3schools.com
2. www.quora.com
3. www.stackoverflow.com
4. www.websitebuilderexpert.com
.