Professional Documents
Culture Documents
Contents
1 Acknowledgement 2
2 Synopsis 3-6
3 SRS 7-10
5 Tables 15
10 Conclusion 32
11 References 33
MCA PROGRAMME, BU
1
EC Lab ONLINE CINEMA RESERVATION SYSTEM
ACKNOWLEDGEMENT
The satisfaction and euphoria that accompanies the successful completion of any task
would be incomplete without the mention of the people who made it possible, whose
constant guidance, support and encouragement crowned all the efforts with success.
Finally, we whole heartedly thank one and all who helped us directly or indirectly to
make this project a great success.
SYNOPSIS
MCA PROGRAMME, BU
2
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Software to be used
1 HTML
2 JavaScript
3 JSP and JavaBeans
4 Oracle 8i or higher
5 Apache tomcat 4.0 or higher
6 Internet explorer or Netscape Navigator browser
Hardware to be used
1 Pentium III Processor 866 MHz
2 256 MB RAM
Team Members
1. Shiva Shankar B.N.
2. Hemantha Kumar S.
3. Rajashekar Reddy
MCA PROGRAMME, BU
3
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Problem Definition
Description
Problem definition is the first step of the development life cycle where the
problems with the existing system are identified with the help of the process called
“Initial Investigation”. The output of “Initial Investigation” is the problem specification
document, which specifies the set of problems with the existing system as identified by
the analysts.
The existing system of booking tickets is manual which has to be automated and web
enabled so as to reduce crowd in theatre and time spent by the viewers in obtaining
tickets. Here viewers can also select seats of his choice and can see the reviews of movies
being screened.
Problem Specification
The existing system is a manual system that has been recognized to have a certain set of
problems. Some of which are as follows
1 One has to go to the theatre and book tickets.
2 Time spent in queue to collect tickets is more.
3 Availability of tickets is not known in advance.
MCA PROGRAMME, BU
4
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Feasibility Study
Description
The feasibility study conducted aims at the detailed study of the existing manual system
and proposes a feasibility report with the alternatives to overcome the problems of the
existing system. The feasibility report highlights the recommendation of the most
beneficial and cost effective system that has been planned based on the detailed study
conducted.
MCA PROGRAMME, BU
5
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Advantages
1 Viewers can avoid queues and book tickets online.
2 Availability of tickets is known in advance so that they can plan
accordingly.
3 Crowd can be avoided.
4 Every user is provided with a unique user id to issue tickets during
booking.
Disadvantages
1) End user has to be educated and trained to work efficiently use this system.
2) User has the provision of booking tickets only three days in advance.
3) Development, implementation and maintenance are comparatively expensive.
Enhancements
1) The system can be used with little or no modifications by all the cinema theatres.
MCA PROGRAMME, BU
6
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Scope
The system can be used by all theatres with little or no modification.
Title
The name of this system is Online Cinema Reservation System henceforth
referred as ‘the system’.
Overview
This document involves complete details of the system and also provides
information about the system which helps the user to understand and efficiently
use the system. It can be termed as “A user guide” in a nutshell.
MCA PROGRAMME, BU
7
EC Lab ONLINE CINEMA RESERVATION SYSTEM
General Description
Product Perspective
This system in comparison with the manual system can avoid crowd in
front of theatres provides user with information of the movies being screened,
next coming movies, reviews, rating, availability of tickets and allows user to
book tickets online.
Product Functions
This system automatically generates user-id when a user books tickets
where he can submit his id in theatre counters and collect tickets for which he has
booked. User has provision to select seats of his choice.
User Characteristics
User should have hands on experience with the computer, printer and the
OS. A small duration of training on this particular system would enable the user
to efficiently handle the system as the system is extremely user friendly.
General Constraints
This system is built based on the Cinema theatres of INDIA and can be
used only in the INDIAN Cinema theatres with little or no modification. The
constraints are based only on the prevailing booking tickets system of this
country.
Specific Requirements
External Interface Requirements
Hardware Requirements
1 Computer : INTEL compatible
2 Microprocessor : Pentium III or IV
3 CPU Clock : 550 MHz or higher
4 RAM : 128 MB or higher
MCA PROGRAMME, BU
8
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Software Requirements
7 HTML
8 JavaScript
9 JSP
10 Oracle 9i
11 Apache tomcat 4.0 or higher
12 Internet explorer or Mozilla Firefox browser
Functional Requirements
1) The system shall provide two types of login to secure the data; one login account with
all privileges i.e. is called the administrator account and the second login account
only to view the data i.e. the user account.
2) The system shall also store the following information
i) Cinema details
ii) Show details
iii) User details
iv) Review details
v) Booking details
vi) The system shall also provide provision of booking tickets of user choice
thereby generating user-id, which has to be submitted by the user to collect
tickets in the counter.
MCA PROGRAMME, BU
9
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Domain Requirements
1) The prime requirement of this project is to
i. Allow user to book tickets online.
ii. Check availability of tickets.
iii. User can book tickets for seats of his choice.
2) The above reports should highlight the following criteria's with respect to the
User.
i. User should produce id, which was generated during booking in theatre
counters to collect tickets.
ii. User fails to produce id would not be issued tickets.
Performance Requirements
The system can be used efficiently on the networked platform and hence can meet
most of the performance requirements as specified by the users of the system.
Design Constraints
The two different types of login provided for the different types of users of the
system helps meet the design constraints of the system as it provides the security to the
data allowing only the administrator to modify the data in the system.
Attributes
The project being developed has generic attributes and can be modified as per the
particular client’s requirement once he decides to purchase the system.
MCA PROGRAMME, BU
10
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Software Design
Description
Requirement specifications are now used for translating the model into a design of the
desired system. At this juncture, the emphasis changes from defining the user
requirements to defining how the system will work. Design of the system is nothing but
the blueprint or plan for the solution of the system. It is the first step in moving from the
problem domain towards the solution domain. It is essentially the bridge between
requirements specification and the final solution of the system. The input to the design
phase is the specification document. Design is a multistage process. The stages can be
identified as
1 Database Design
2 HTML Forms Design
Oracle is the most prevalent Relational Database Management System (RDBMS) in the
world. The Oracle database runs on every major machine and under every prominent
operating system available. Versions of Oracle exist for platforms from modestly
equipped portable computers up to powerful database servers accommodating thousands
of concurrent users.
ADO is a key component of Microsoft’s drive for Universal Data Access (UDA): it can
be used for accessing data wherever it may be stored, either in Oracle / SQL Server
databases. ADO is the “friendly face” of OLE DB. MSADASQL effectively acts as a
conversion layer, mapping OLE DB interfaces to ODBC APIs. It is the default provider
for ADO and, since ODBC is still the only driver that provides access to all Oracle
functionality; it is very useful in many circumstances.
SQL and relational data modeling gives a strong reliable paradigm for data access. The
data base manager provides interfaces and tools that we can use.
The application data is independent of the conceptual model.
MCA PROGRAMME, BU
11
EC Lab ONLINE CINEMA RESERVATION SYSTEM
• SECURITY
Security is the protection of the database against unauthorized access od\r change of the
data.
Oracle 8i provides high level of security to the application. Oracle 8i has extensive
models in protecting.
The first level of security is the Oracle 8i user. Every user has a password.
The Second Level of Security: Privileges
The second level of security is the scheme authorization system. Oracle 8i adds the role
which makes granting privileges even more flexible. A role is grouping of privileges. We
can grant privilege for an object to a role, thus all the users assigned the role those
privileges.
MCA PROGRAMME, BU
12
EC Lab ONLINE CINEMA RESERVATION SYSTEM
A partitioned relational database is a relational database where the data is managed across
multiple partitions (also called nodes). In this book we will focus our attention on single
partition databases. You can access the sample database and try out all the examples in
this book through interactive SQL by using an interface like the command line processor
(CLP) or the command centre.
SQL is a set of commands that all programmers and users must use to access data with in
ORACLE database. The Oracle 8i server provides full SQL commands to level 2 and full
implementation of the integrity enhancement features. The SQL consists of facilities for
defining accessing and managing relational database.
Advantages of SQL:
SQL Commands
MCA PROGRAMME, BU
13
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Query data.
Updating, Inserting and Deleting database Objects.
Controlling access to the database.
Providing for data integrity and consistency.
MCA PROGRAMME, BU
14
EC Lab ONLINE CINEMA RESERVATION SYSTEM
TABLE STRUCTURES
There can be n number of tables in the database to store the data. Our project requires 4
tables to store the data after applying all the three normalization techniques. They are as
follows.
MCA PROGRAMME, BU
15
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Introduction to HTML
MCA PROGRAMME, BU
16
EC Lab ONLINE CINEMA RESERVATION SYSTEM
The most fundamental of all the tags used to create an HTML document is, not
surprisingly, the <HTML> tag. This tag should be the first item in your document and the
corresponding end tag, </HTML>, should be the last. Together, these tags indicate that
the material contained between them represents a single HTML document .This is
important because an HTML document is a plain text ASCII file. Without these tags, a
browser or other program isn't able to identify the document format and interpret it
correctly.
The </HTML> end tag is just as important as the start tag. It is becoming possible to
include HTML documents within e-mail messages and news postings. Without the
</HTML>, the viewer does not know when to stop interpreting the text as HTML code.
JavaScript
MCA PROGRAMME, BU
17
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Java
MCA PROGRAMME, BU
18
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Many people confuse JavaScript with Java, which is a programming language developed
by Sun Microsystems, Inc. Each has its own Usenet newsgroup, yet people frequently
post questions about Java to the JavaScript newsgroup, and vice versa.
Java is a programming language and JavaScript is a scripting language. Java programs
are compiled on the server. You can write stand-alone programs in Java. Scripts written
in JavaScript are interpreted by the browser. You cannot write stand-alone programs in
JavaScript-you need a browser to interpret JavaScript.
Java is object-oriented. It employs classes and inheritance. It provides encapsulation of
data. JavaScript is object-based. There are no classes. There is no inheritance. Data
within objects is readily accessible.
Java is compiled into "applets" that are accessed from HTML pages. JavaScript is
embedded in HTML.
Java requires that data types be strongly typed (if a function expects one of its arguments
to be a number, the function will not accept a character string). JavaScript is loosely
typed. JavaScript has numbers, character strings, and Booleans (logical yes/no, true/false,
on/off data) and freely interchanges them.
Java can be used to create very powerful applications. JavaScript scripts cannot really do
all the neat things that Java applets can. On the other hand, it is much more difficult to
write programs in Java than it is to write scripts in JavaScript.
MCA PROGRAMME, BU
19
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Introduction to JSP
Java server page (JSP) is a server-side program. A JSP is called by a client to provide a
web service, the nature of which depends on J2EE application. A JSP process the request
by using logic built into the JSP or by calling the other web components built using java
servlet technology or enterprise java bean technology or created using other technologies.
Once the request is processed, the JSP responds by sending the result to the client. JSP is
written in HTML,XML, or in the client’s format that is interspersed with scripting
elements, directives and actions comprised of java programming language ang JSP
syntax.
A JSP is simpler to create than a java servlet because a JSP is written in HTML rather
than with the java programming language. This means that the JSP is not cluttered with
many println ( ) methods as found in a java servlet. However, a JSP offers basically the
sane features found in a java servlet because a JSP is converted to a java servlet the first
time that client requests the JSP.
There are three methods that are automatically called when a JSP is requested and when
the JSP terminates normally. These are the jspInt ( ) method, jspDestroy ( ), and the
service method. These methods can be overridden, although the jspInt ( ) method and
jspDestroy ( ) method are commonly overridden in a SP to provide customized
functionality when the JSP is called and terminates.
JSP Tag
A JSP program consists of a combination of HTML tags and JSP tags. JSP tags define
java code that is to be executed before the output of the JSP program is sent to the
browser.
MCA PROGRAMME, BU
20
EC Lab ONLINE CINEMA RESERVATION SYSTEM
A JSP tag begins with a <%, which is followed by a java code, and ends with %>. There
is also an extendable mark up language (XML) version of JSP tags, which are formatted
as <JSP: TagID></Jsp: TagID>.
JSP tags are embedded into the HTML component of a JSP program and are processed
by a JSP virtual engine such as Tomcat. Tomcat reads the JSP program whenever the JSP
program is called by a browser and resolves JSP tags, and then sends the HTML tags and
related information to the browser.
Java code associated with JSP tags in the JSP program is executed when encountered by
tomcat and the result of that process is sent to the browser. The browser knows how to
display the result because the JSP is enclosed within an open and closed HTML tags.
There are five types of JSP tags used in JSP programming. They are
Comment tag
A comment tag open with <%- - and closes with - -%> and is followed by a comment
that usually describes the functionality of statements that follow the comment tag.
Directive tags
A directive tag opens with<%@ and commands the JSP virtual engine to perform a
specific task, such as importing a java package required by objects and methods used in
the deceleration statement. The directive tag closes with %>. There are three commonly
used directives; these are import, include and taglib. The import tag is used to import the
java packages into the JSP program. The include tag is used to insert a specified file into
the JSP program replacing the include tag. The taglib tag specifies tag that contains a tag
library.
MCA PROGRAMME, BU
21
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Expression tag
An expression tag opens with <%= and is used for an expression statement whose result
replaces the expression tag when the JSP virtual engine resolves the JSP tags. An
expression tag closes with %>.
Scriplet tag
A scriplet tag opens with <% and contains commonly used java control statements and
loops. A scriplet tag closes with %>.
MCA PROGRAMME, BU
22
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Methods
A method is defined similar to how a method is defined in a java program expect the
method definition is placed within a JSP tag.
A JSP program is capable of handling practically and kind of method that can normally
use in a java program.
<HTML>
<HEAD>
<TITLE>JSP Programming</TITLE>
</HEAD>
<BODY>
<%! Boolean curve (int grade)
{
return 10 + grade;
}
%>
<p> your curve grade is : <%=curve (80) %>
<\p>
</BODY>
</HTML>
In the above example both the methods are defined in the same JSP tag, although each
follows java syntax structure for defining a method. One method uses a default value for
the curve, while the overload method enables the statement that calls the method to
provide the value of the curve.
Control Statements
One of the most powerful features available in the JSP is the ability to change the flow of
the program to truly create dynamic content for a web page based on conditions received
from the browser. There are two control statements used to change the flow of a JSP
program. These are the if statement and the if statement and the switch statement, both of
MCA PROGRAMME, BU
23
EC Lab ONLINE CINEMA RESERVATION SYSTEM
which are also used to direct the flow of a java program. The if statement evaluates a
condition statement to determine if one or more lines of code are to be executed or
skipped. Similarly, a switch statement compares a value with one or more other values
associated with a case statement. The code segment that is associated with the matching
case statement is executed. Code segments associated with other case statements are
ignored.
The power of these controls comes from the fact that the code segment that is executed or
skipped can consist of HTML tags or a combination of HTML tags and JSP tags. That is,
these code segments don’t need to be only java statements or java tags.
Loops
JSP loops are nearly identical to loops that you use in your java program except you can
repeat HTML tags and related information multiple times within the JSP program without
having to enter the additional HTML tags. There are three kinds of loops commonly used
in a JSP program. These are the for loop, the while loop, and the do…while loop. The for
loop repeats, usually a specified number of times, although you can create an endless for
loop. The while loop executes continually as long as a specified condition remains true.
However, the while loop may not execute because the condition may never be true. In
contrast, the do... while loop executes at least once; afterwards. The conditional
expression in the do...while loop is evaluated to determine if the loop should be executed
another time.
Request String
The browser generates a user request string whenever the Submit button is selected. The
user request string consists of the URL and the query string. There are four predefined
implicit objects that are in every JSP program. These are request, response, session, and
out. the request object is an instance of HTTPServletResponse, and the session object is
an instance of HttpSession. The out object is an instance of the JSPWriter that is used to
MCA PROGRAMME, BU
24
EC Lab ONLINE CINEMA RESERVATION SYSTEM
send a response to the client. Copying a value from a multivalued field such as selection
list field can be tricky since there are multiple instances of the field name, each with a
different value. However you can easily handle multivalued fields by using the
getParameterValues ( ) method. The getParametervalues ( ) method is designed to return
multiple values from the field specified as the argument to the getParameterValues ( ).
Session Objects
A JSP database system is able to share information among JSP programs within a session
by using a session object. Each time a session is created; a unique ID is assigned to the
session and stored as a cookie.
The unique ID enables JSP programs to track multiple sessions simultaneously while
maintaining data integrity of each session. The session ID is used to prevent the
intermingling of information from clients.
In addition to the session ID, a session object is also used to store other types of
information, called attributes. An attribute can be login information, preferences, or even
purchases placed in an electronic shopping cart.
Tomcat
MCA PROGRAMME, BU
25
EC Lab ONLINE CINEMA RESERVATION SYSTEM
JSP programs are executed by a JSP virtual machine that runs on a web server. Therefore,
you will need to have access to a JSP virtual machine to run your JSP program.
Alternatively, you can use an integrated development environment such as JBulider that
has a built in JSP virtual machine or you can download and install a JSP virtual machine.
One of the most popular JSP virtual machines is tomcat, and it is downloadable at no
charge from the Apache web site. Apache is also a popular web server that you can also
download at no cost. You will also need to have the java development kit (JDK) installed
on your computer. Here is what we will need to download and install Tomcat:
Connect to jacarta.apache.org
Select Download.
Select Binaries to display the Binary Download page.
Create a folder from the root directory called tomcat.
Download the latest release of Jakarta-tomcat. Zip to the tomcat folder.
Unzip Jakarta-tomcat. Zip. You can download a demo copy of WinZip from
www.winzip.com if you don’t have a zip/unzip program installed on your computer.
The extraction process should create the following folders in the tomcat directory; bin,
conf, doc, lib, src, and webapps.
Use a text editor such as notepad and edit the JAVA_HOME variable in the
tomcat.bat.file, which is located in the \tomcat\bin folder. Make sure the JAVA_HOME
variable is assigned the path where the JDK is installed on the computer.
Open a DOS window and type \tomcat\bin\tomcat to start Tomcat.
Open your browser. Enter htto://localhost:8080. The tomcat home page is displayed on
the screen verifying that tomcat is running.
MCA PROGRAMME, BU
26
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Software Testing
Software Testing
Software testing is the process used to help identify the correctness, completeness,
security, and quality of developed computer software. Testing is a process of technical
investigation, performed on behalf of stakeholders, that is intended to reveal quality-
related information about the product with respect to the context in which it is intended to
operate. This includes, but is not limited to, the process of executing a program or
application with the intent of finding errors.
The most common term for a collection of test cases is a test suite. The test suite often
also contains more detailed instructions or goals for each collection of test cases. It
definitely contains a section where the tester identifies the system configuration used
during testing> A group of test cases may also contain pre requisite states or steps, and
descriptions of the following tests.
MCA PROGRAMME, BU
27
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Collections of test cases are sometimes incorrectly termed a test plan. They might
correctly be called a test specification. If sequence is specified, it can be called a test
script, scenario or procedure.
Software Maintenance
People have been appointed and trained by us as part of the maintenance process so that
system can be used efficiently and all the features of the system can be efficiently
handled.
MCA PROGRAMME, BU
28
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Sample Forms
MCA PROGRAMME, BU
29
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Home Page
MCA PROGRAMME, BU
30
EC Lab ONLINE CINEMA RESERVATION SYSTEM
<html>
<head>
<title>
PVR cinemas
</title>
</head>
<body bgcolor=black>
</body>
</html>
MCA PROGRAMME, BU
31
EC Lab ONLINE CINEMA RESERVATION SYSTEM
Conclusion
Online cinema reservation system is designed for cinema halls, multiplexes which is a
user friendly system. Because customers can avoid long queues and saving their precious
time. They can collect the ticket at the counter at the time of show. It is a fully automated
system which provides a lot of good things to the customers. It will provide user friendly
The system can be used with little or no modifications by all the cinema theatres. By
using this system the availability of tickets is known well in advance so that customers
can plan accordingly. The large crowd can be avoided. The tickets will be provided with
the user-id.
While some of the limitations of this system is that the user has to be educated to work
expensive.
MCA PROGRAMME, BU
32
EC Lab ONLINE CINEMA RESERVATION SYSTEM
References
• Websites
• www.jspprogramming.com
• www.microsoft.com
• Books
• JSP Book Tata McGraw Hill Publications.
MCA PROGRAMME, BU
33