Anda di halaman 1dari 33

EC Lab ONLINE CINEMA RESERVATION SYSTEM

Contents

Sl. No. Title Page No.

1 Acknowledgement 2

2 Synopsis 3-6

3 SRS 7-10

4 Software Design 11-14

5 Tables 15

6 Introduction to HTML and JavaScript 16-26

7 Software Testing and Implementation 27-28

8 Sample Forms 29-30

9 Sample Source code 31

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.

We are indebted to Prof. Pradeep G. Siddeshwar (Coordinator, Department of Computer


Science and Applications, Bangalore University) and Mr. Hanumanthappa (Reader,
Department of Computer Science and applications), for useful suggestions, guidance and
encouragement during the course of this project.

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

Title of the project


Online Cinema Reservation System

Objective of the project


This system will allow users to view details of movies, shows, ticket availability etc and
allow them to book tickets online. The user shall also be allowed to select specific seat as
per his choice for any particular show of the movie subject to availability of the seats.
The service provider will have provision to provide information regarding the movies,
changes and the reviews of the movie being screened.

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.

The Existing System


The problem with the existing system has been identified as defined in the problem
definition.

The Proposed System


The recommended solution to the current problem faced by our client who happens to be
Cinema Theater is to automate Cinema Reservation System to overcome the Luke-poles
of the existing manual system.

Overview of the Proposed System


Following Information can be stored in the Database
1 User Details
(Stores user Name and Password)
2 Cinema Details
(Cinema name, Language, Director, Star cast, Rating etc)
3 Cinema Class Details
(Cinema name, Language, Class, Show and Status)
4 User Review Details
(Cinema name and Review)
5 Book Tickets Details
(Cinema name, Language, Class, Show, Date of booking, and Time)

MCA PROGRAMME, BU

5
EC Lab ONLINE CINEMA RESERVATION SYSTEM

Objectives of the Proposed System


The proposed system is the completely automated system, which has the following
objectives
1 To provide a user-friendly environment.
2 To aid a completely flexible working environment to support changes and
modifications.

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

System Requirement Specification


Introduction
Purpose
The system aims at automation of booking tickets in cinema theatres with
the provision of booking seats of viewer choice and storing details of cinema
being screened, user details booking details reviews etc.

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

5 Hard Disk Drive : 10GB or higher


6 Printer : Optional

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

KEY FEATURES OF ORACLE 8i

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

SQL gives many tools need to maintain referential integrity in the


CREATE TABLE Statement.

• 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: Passwords

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.

Relational Databases and SQL

In a Relational database, data is stored in tables. A table is a collection of rows and


Columns. Structured Query Language (SQL) is used to retrieve or update data by
specifying columns, tables and various relationships between them. SQL is a
standardized language for defining and manipulating data in a relational data-base. SQL
statements are executed by a database manager. A database manager is a computer
program that manages the data.

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.

STRUCTURED QUERY LANGUAGE

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 has become a database language of choice because it is flexible, powerful


and easy to learn.
 SQL is non procedural language it
o Process sets of records rather than just one at a time.
o Provides automatic navigation to the data.
 SQL Provides commands for a variety of tasks including querying data, creating,
updating and replacing objects and inserting, updating and deleting rows.
 All major RDBMS supports SQL. Thus one can transfer all the skills gained with
SQL from one RDBMS to another.
 Programs written in SQL are portable; they can often be moved from one
database system to another with little modification.

SQL Commands

MCA PROGRAMME, BU

13
EC Lab ONLINE CINEMA RESERVATION SYSTEM

The SQL Commands are divided into three categories:


 Data Definition Language Commands (DDL)
 Data Manipulation Language Commands (DML)
 Transaction Control Commands.

TYPES OF SQL OPERATORS

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.

Movie table – It stores the details of movies.

Attribute Type Length


Movie Varchar 30

Ticket details table – It stores information regarding ticket details.

Attribute Type Length


Name Varchar 50
Time Int 10
T_date Date
Quantity Int 10

Customer details table – It stores information of customer or user.

Attributes Type Length


Name Varchar 50
Mobile Int 25
Email Varchar 30
Quantity Int 30
Amount Int 30

Feedback table – It stores customers’ feedback about our reservation system.

Attributes Type Length


Feedback Varchar 200

MCA PROGRAMME, BU

15
EC Lab ONLINE CINEMA RESERVATION SYSTEM

Introduction to HTML

It is important to realize that an HTML document must be built on a very specific


framework. This framework, in its simplest form, consists of three sets of matched
container tags.
A tag is a simple markup element, and always takes the form <TAG>. A container is a
pair of HTML tags of the form <TAG> </TAG>. You can think of the <TAG> element
as turning something on, while the </TAG> turns that same thing off. For example,
consider this line of HTML:
The first HTML tag, <I>, turns on italics. The second tag, </I>, turns them off. When
displayed on-screen, this line of text would look like this: This is in Italics. But this isn't.
The tags themselves don't appear on-screen. They just tell the browser program how to
display the elements they contain.
The simplest possible HTML document is given in the following program below. The
entire document is enclosed in the <HTML></HTML> container tags. The first part of
the document is encapsulated in the <HEAD></HEAD> container, which itself contains
a <TITLE></TITLE> container. Finally, the body of the page is contained in a
<BODY></BODY> container. The Simplest HTML Document
<HTML>
<HEAD>
<TITLE>A Very Basic HTML Document</TITLE>
</HEAD>
<BODY>
This is where the text of the document would be.
</BODY>
</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

JavaScript is a lightweight object-based scripting language created by Netscape


Communications Corporation for developing Internet applications. JavaScript is
lightweight in that there isn't a great deal to learn and you can be productive with it very
quickly, in contrast to much more complex languages such as Java. As a scripting
language, JavaScript is meant to tell an application what to do. Unlike languages used to
create applications, it cannot do anything without the application.
You can develop server applications or client applications with JavaScript. In this book,
the term "server" refers to the computer where your Web pages reside. The term "client"
refers to the browser application that loads and displays your Web pages. This book
focuses on teaching you to create client applications with JavaScript-specifically,
documents (Web pages) on the World Wide Web.
You can embed JavaScript statements in Web pages, which are written in HTML
(Hypertext Markup Language). JavaScript is an extension to HTML that lets you create
more sophisticated Web pages than you ever could with HTML alone. To appreciate this,
it helps to know a little history.

MCA PROGRAMME, BU

17
EC Lab ONLINE CINEMA RESERVATION SYSTEM

The history of JavaScript


Strictly speaking, HTML is a Standard Generalized Markup Language (SGML),
Document Type Definition (DTD). An SGML document has three parts. The first part
defines the character set to be used and tells which characters in that set distinguish text
from markup tags. Markup tags specify how the viewer application, or browser, should
present the text to the user. The second part of an SGML document specifies the
document type and states which markup tags are legal. The third part of an SGML
document, called the document instance, contains the actual text and markup tags.
Because there is no requirement that the three parts of an SGML document reside in the
same physical file, we can concentrate on the document instance. The Web pages you
create are document instances.
Most HTML browsers assume a common definition about the character set used, and
about which characters distinguish text from markup tags. They also generally agree
about a core set of legal markup tags. They then diverge on which additional new markup
tags to permit.

HTML 1.0 and 2.0


HTML 1.0 refers to the original set of markup tags. HTML 1.0 is so limited that a
browser that restricted HTML documents to HTML 1.0 would be a museum piece.
HTML 2.0 includes a more generous set of markup tags than HTML 1.0; in particular, it
allows markup tags that define user input fields. As of this writing, HTML 2.0 defines the
de facto common core of markup tags. You can create a relatively sophisticated Web
page with HTML 2.0 markup tags.
JavaScript can provide a high degree of user interaction like some other systems,
including CGI and Java.

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.

Platforms and browsers


JavaScript, as described in this book, is supported by Netscape Navigator 2.01 and later
releases. It is supported on several architectures, as you can see in Table 1.1.
Netscape Platforms
Architecture Operating System
Windows Windows 3.1
Windows NT 3.5 and later
Windows 95
Macintosh MacOS
UNIX DEC Alpha OSF/1 2.0 and
later
HP-UX 9.03

MCA PROGRAMME, BU

19
EC Lab ONLINE CINEMA RESERVATION SYSTEM

IBM RS/6000 AIX 3.2


Sun Sparc Solaris 2.3
Sun Sparc SunOS 4.1.3
BSDI
Linux 1.1.59 and later

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.

Declaration Statement tags


A declaration statement tag opens with <%! And it is followed by a java declaration
statement(s) that define variables, objects, and methods that are available to other
components of the JSP program.

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 %>.

Variable and objects


We can declare java variables and objects that are used in a JSP program by using the
same coding technique as used to declare the in java. However, the declaration statement
must appear as a JSP program before the variable or object is used in the program.
The JSP tag begins with <%!. This tells the JSP virtual engine to make statements
contained in the tag available to the to other JSP tgs in the program.
In the following example the variable age is used in an expression tag that is embedded
within the HTNML paragraph tag <P>. a JSP expression tag begins with <%=, which is
followed by the expression.
The JSP virtual engine resolves the JSP expression before sending the output of the JSP
program to the browser. That is, the JSP tag <% = age %> is replaced with the number
29; afterwards, the HTML paragraph tag and related information is sent to the browser.
<HTML>
<HEAD>
<TITLE>JSP Programming</TITLE>
</HEAD>
<BODY>
<%! Int age=29;%>
<p> Your age is : <%=age%> <\p>
</BODY>
</HTML>

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 ( ).

Parsing other information


The request string sent to the JSP by the browser is divided into two general components
that are separated by the question mark. The URL component appears to the left of the
question mark and the query string is to right of the question mark. The URL is divided
into four parts, beginning with the protocol. The protocol defines the rules that are used
to transfer the request string from the browser to the JSP program. Three of the more
commonly used protocol re HTTP, HTTPS and FTP, which is a file transfer protocol.
Next is the host and port combination. The host is the internet protocol (IP) address or the
name of the server that contains the JSP program. The port number is the port that the
host monitors. Usually the port is excluded from the request string whenever HTTP is
used because the assumption is the host monitoring port 80. following the host and port is
the virtual path of the JSP program. The server maps the virtual path to the physical path.

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.

Software Verification and Validation


Software verification and validation is intended to show that a system conforms to its
specification and that the system meets the expectations of our client for whom the
system is being developed. It involves checking processes such as inspections and
reviews at each stage of the software process form user requirements definition to
program development.

Test case, suites, scripts and scenarios


A test case is usually a single step, and its expected result, along with various additional
pieces of information. It can occasionally be a series of steps but with one expected result
or expected outcome.

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 Implementation and Maintenance


Software Implementation
Our system has been efficiently implemented at our client’s place who happens to be one

of the popular Cinema Theaters.

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

Tickets booking form

MCA PROGRAMME, BU

30
EC Lab ONLINE CINEMA RESERVATION SYSTEM

Sample Source code

<html>
<head>
<title>
PVR cinemas
</title>
</head>
<body bgcolor=black>

<img src=shiva.jpg width =100% height=100%><p>


<div align=center>
<font color= white size=8 face=verdana>ENTER THE CITY</font></div><p>

<FONT color=black size=3></FONT></B><CENTER></I>


<blink><b><i><font size="3" face="Comic Sans MS" color="#00FF00">&quot;
</font><a href="home.html"><font size="3" face="Comic Sans MS"
color="#00FF00">BENGALOORU</font></a>
<font size="3" face="Comic Sans MS" color="#00FF00">
&quot;</font></i></b></blink></CENTER>
<P>

</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

environment and completely flexible.

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

with this system. Development, implementation and maintenance are comparatively

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.

• Oracle 8i Tata InfoTech Education

MCA PROGRAMME, BU

33

Anda mungkin juga menyukai