Ebilling Report
Ebilling Report
A PROJECT REPORT
On
HOTEL MANAGEMENT SYSTEM
Submitted To
AXIS INSTITUTE OF HIGHER EDUCATION ROOMA KANPUR
In partial fulfillment of the requirements
For the award of the degree
CHATREPATI SAHU MAHARAJ UNIVERSITY
KANPUR
RollNo
0901204,0801407,0901105,0901157
………………………. …...…………………….
Signature of the Student:
RollNo- Signature of the Guide
Acknowledgement
encouragement.
5. It will be great pleasure for me if the readers draw useful conclusion from
report.
Saurabh kumar
Rishu Gupta
Mansi singh
Akansha Gautam
Students Declaration
Saurabh kumar,Rishu
Gupta,Mansi singh,
Aakanksha Gautam
BCA
RollNo.0901204,0801407,0901105,0901157
Place: Kanpur
Date: 05/2020
1. Project profile
1.1 Introduction
1.2 Objectives
1.3 Project Category
1.4 Tools & Platform used
1.4 Web Team
1.5 Web Engineering model used
2. System Analysis
2.1 Requirement Analysis
2.2 System Requirement Specification
Hardware Requirement
Software Requirement
2.3 Risk Analysis
2.4 Cost Analysis
2.5 Project Scheduling
3. System Designing
3.1 Modules
3.2 Database Design
3.3 Data Flow Diagram (DFD)
3.4 Scope and Limitation
3.5 Input Output Specification
4. Deployment & Implementation
4.1 Web Testing
4.2 Hosting & Deployment
4.3 Security
4.4 Maintenance
5. Annexure
5.1 Bibliography
5.2 Softcopy of Project on CD Rom
I n t ro d u c t i o n
Definition of e-Payment
Internet is usually believed to be the only mode. In reality e-payments cover a much
broader range (phone, interbank networks, etc)
Electronic money transfer is any transfer of funds done over any digital mean e.g. the
Internet, in a close to real-time.
It can be done on the domestic market (money order, pension transfer, student grant)
or on the international market.
Information on transfer status can be ensured by the system of track and trace.
E- Billing why?
It’s paperless – you'll have fewer bills clutter your mailbox, where your personal
information could be a target of theft. You can easily print a copy of your bill if
you need one for your records.
It’s convenient – look up your account information anytime and from anywhere
with Internet access. You'll also receive a monthly e-mail notification when your
bill is ready to be viewed.
It’s green – using less paper is better for the environment.
Sending a message:
2. Using special software, you obtain a message hash (mathematical summary) of the
contract.
3. You then use a private key that you have previously obtained from a public-private
key authority to encrypt the hash.
4. The encrypted hash becomes your digital signature of the message. (Note that it will
be different each time you send a message.) At the other end, the person who receives
the message.
a. To make sure it's intact and from you, the person makes a hash of the received
message.
b. He/she then uses your public key to decrypt the message hash or summary.
In the past, a hotel manager commonly was promoted from within the organization
itself. These days, a strong applicant for the position may need formal education in
addition to the hands-on job experience. This could add years and expense to the
Work Environment
Hotel managers work long hours and weekends, often under stressful
conditions that require quick thinking, resourcefulness, diplomacy and
communication skills. Depending on a guest’s complaint or glowing
satisfaction, customer-service responsibilities can prove infuriating,
challenging or rewarding. A manager, by definition, also supervises,
organizes and delegates the work of employees. This involves complex
decisions on everything from handling finances, to organizing a convention,
to fixing plumbing disasters and changing décor. Very often, a career
promotion in this industry means relocating to another hotel in another
town.
Compensation
Pay varies depending on the type and size of employer and the employee’s
job responsibilities. In 2008, the annual salary for a lodging manager
averaged at just under $46,000, with the lowest-earning 10 percent making
less than $28,160 and the highest clearing more than $84,270. Many
employers offer bonuses, free training or profit-sharing in addition to that
salary. Also, given the nature of the job, lodging, meals, laundry and other
perks might be free or discounted.
Objectives
The firm handles all of the work manually, which is very tedious and mismanaged.
The objective of our project is as follows:
a. To keep the information of Customer.
b. To keep the information of consuming unit of energy of current month.
c. To keep the information of consuming unit of energy of previous month.
d. To keep the information of employee working in the department.
e. To maintain the record of the department.
The E-billing system provides the facility for payment of bill by the internet. The
objectives of the project contains the bill payment through ATM Card and Credit Card also
Debit Card as like water bill, electric bill as well as telephone bill. This objective makes more
flexible and easy for depositing bill. The main objectives of this project take the following
steps as:-
Billing system of the water, electric and telephone making easy and paid by the
internet through card system such as ATM, Debit, Credit Card and internet banking.
This project provide for checking status of bill and also paid bill and also states the
unit used in electric and call duration as well as monthly duration in telephone system.
The information are send time to time by the SMS alert in a message about status of
the bill in end of the month on their mobile phone and also respective E-mail IDs.
When customer deposited the bill a confirmation message get in mobile phone.
Making more easy and less work to the customer for the payment.
From an end–user perspective the e-billing projects consist of two functional
elements: an enhanced searchable database for customer, and also generate the billing
report.
Web-based project management software application that makes task management,
paying bill, and document management hassle-free and straightforward. E-billing
System keeps developer’s team on the same page with a centralized location for
payment of multiple bills, tasks, issues, sites, emails, related notes and project
documents.
Project Category
The proposed project falls under “Hotel Management category” in which sets of
technologies are used. Today, software takes on a dual role. It is a product and, at the same
time, the vehicle for delivering a product. As a product, it delivers the computing potential
embodied by computer hardware or, more broadly, a network of computers that are
accessible by local hardware... As the vehicle used to deliver the product, software acts as the
basis for the control of the computer (operating systems), the communication of information
(networks), and the creation and control of other programs (software tools and environments).
Software delivers the most important product of our time information. Software is a logical
rather than a physical system element and posses following characteristics:-
Our application lies in the category of Web-based software. It consists of web pages
retrieved by a browser are software that incorporates executable instructions written in
HTML,, C#, Java, Perl etc and data of type hypertext and a variety of visual and audio
formats. In essence, the network becomes a massive computer providing an almost unlimited
software resource that can be accessed by anyone round the globe.
Development Requirement:
Team
Project Manager
Information Quality
Architect Assurance
Team
Team
Project Stake holder:- The Project Stake holder, sometimes called the
Business owner, is the person responsible for initializing the project. This
person could be, from the marketing department an external client, editors,
producers, or even the CEO of the company. The stake holder deliverables could
include:-
1. Project Concept or Idea
2. Budget
3. Marketing Plan
4. Page Mockups
5. Third Party Contents
Oracle Database is the first database designed for enterprise grid computing, the most flexible
and cost effective way to manage information and applications. Enterprise grid computing
creates large pools of industry-standard, modular storage and servers. With this architecture,
each new system can be rapidly provisioned from the pool of components. There is no need
for peak workloads, because capacity can be easily added or reallocated from the resource
pools as needed.
The relational database uses the concept of linked two-dimensional tables consisting of rows
and columns, as shown in Figure 1-2. Unlike the hierarchical approach, no predetermined
relationship exists between distinct tables. This means that the data
needed to link together the different areas of the network or hierarchical model need not be
defined. Because relational users don’t need to understand the representation of data in
storage to retrieve it (many such users created ad hoc queries against the data), ease of use
helped popularize the relational model.
Relational programming is nonprocedural and operates on a set of rows at a time. In a
master-detail relationship between tables, there can be one or many detail rows for
Each individual master row, yet the statements used to access, insert, or modify the data
would simply describe the set of results. In many early relational databases, data access
required the use of procedural languages that worked one record at a time. Because of this set
orientation, programs can access more than one record in a relational database more easily.
Relational databases can be used more productively to extract value from large groups of
data. The contents of the rows in Figure 1-2 are sometimes referred to as records. A column
within a row is referred to as a field. Tables are stored in a database schema, which is a
logical organizational unit within the database. Other logical structures in the schema often
include the following:
Views
Oracle Lite
Oracle Lite, once known as Oracle Mobile, is intended for single users who are using
Wireless / mobile devices. It differs from other members of the Oracle database family in
that it doesn’t use the same database engine. Instead, Oracle developed a lightweight
engine compatible with the limited memory and storage capacity of handheld devices.
Database Programming
All flavors of the Oracle database include different languages and interfaces that allow
programmers to access and manipulate the data in the database. Database programming
features usually interest two groups: developers building Oracle-based applications that will
be sold commercially and IT organizations within companies that custom-develop
applications unique to their businesses. The following sections describe the languages and
interfaces supported by Oracle.
SQL
The ANSI standard Structured Query Language (SQL) provides basic functions for data
manipulation, transaction control, and record retrieval from the database. However, most
end users interact with Oracle through applications that provide an interface that hides the
underlying SQL and its complexity.
PL/SQL
Oracle’s PL/SQL, a procedural language extension to SQL, is commonly used to implement
program logic modules for applications. PL/SQL can be used to build stored procedures and
triggers, looping controls, conditional statements, and error handling. You can compile and
store PL/SQL procedures in the database. You can also execute PL/SQL blocks via SQL*Plus,
an interactive tool provided with all versions of Oracle. Oracle Database 10g includes a more
optimized version of the core PL/SQL engine, as Oracle9i allowed creation and storage of
precompiled PL/SQL program units.
Java features and options
Oracle8i introduced the use of Java as a procedural language with a Java Virtual
Machine (JVM) in the database (originally called J Server). JVM includes support for Java
stored procedures, methods, triggers, Enterprise JavaBeans™ (EJBs), CORBA, and HTTP. The
Database Networking
Database users connect to the database by establishing a network connection. You
can also link database servers via network connections. Oracle provides a number of
features to establish connections between users and the database and/or between
database servers, as described in the following sections.
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 26
HOTEL MANAGEMENT SYSTEM
Oracle Net
Oracle’s network interface, Oracle Net, was formerly known as Net8 when used in
Oracle8, and SQL*Net when used with Oracle7 and previous versions of Oracle. You can use
Oracle Net over a wide variety of network protocols, although TCP/IP is by far the most
common protocol today. Features associated with Oracle Net, such as shared servers, are
referred to as Oracle Net Services.
Oracle Names
Oracle Names allows clients to connect to an Oracle server without requiring a
configuration file on each client. Using Oracle Names can reduce maintenance efforts,
because a change in the topology of your network will not require a corresponding change
in configuration files on every client machine.
Oracle Internet Directory
The Oracle Internet Directory (OID) was introduced with Oracle8i. OID serves the
same function as Oracle Names in that it gives users a way to connect to an Oracle Server
without having a client-side configuration file. However, OID differs from Oracle Names in
that it is an LDAP (Lightweight Directory Access Protocol) directory; it does not merely
support the Oracle-only Oracle Net protocol.
Oracle Connection Manager
Each connection to the database takes up valuable network resources, which can
impact the overall performance of a database application. Oracle’s Connection Manager,
illustrated in Figure 1-3, reduces the number of Oracle Net client network connections to
the database through the use of concentrators, which provide connection multiplexing to
implement multiple connections over a single network connection. Connection multiplexing
provides the greatest benefit when there are a large number of active users.
You can also use the Connection Manager to provide multiprotocol connectivity when
clients and servers run different network protocols. This capability replaces the
multiprotocol interchange formerly offered by Oracle, but it is less important today because
most companies use TCP/IP as their standard protocol. Oracle Database 10g introduces
dynamic Connection Manager Configuration, enabling changing of CMAN parameters
without shutting down the CMAN process.
You can also use the Connection Manager to provide multiprotocol connectivity
when clients and servers run different network protocols. This capability replaces the
multiprotocol interchange formerly offered by Oracle, but it is less important today because
most companies use TCP/IP as their standard protocol. Oracle Database 10g introduces
dynamic Connection Manager Configuration, enabling changing of CMAN parameters
without shutting down the CMAN process.
TECHNOLOGIES
JSP Overview
You can see that this document looks like any other HTML document with some added tags
containing Java code. The source code is stored in a file called HelloJSPWorld.jsp and copied
Note
A key thing to remember about JSPs is that they are just servlets that are created from a
combination of HTML text and Java source code. This means that they contain all the
functionality of a normal servlet.
JAVA SERVER PAGE
Java Server Pages (JSPs) are similar to HTML files, but provide the ability to display dynamic
content within Web pages. JSP technology was developed by Sun Microsystems to separate
the development of dynamic Web page content from static HTML page design. The result of
this separation means that the page design can change without the need to alter the
underlying dynamic content of the page. This is useful in the development life-cycle because
the Web page designers do not have to know how to create the dynamic content, but
Java Server Pages are made operable by having their contents (HTML tags, JSP tags
and scripts) translated into a servlet by the application server. This process is responsible for
translating both the dynamic and static elements declared within the JSP file into Java
servlet code that delivers the translated contents through the Web server output stream to
the browser. Because JSPs are server-side technology, the processing of both the static and
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 31
HOTEL MANAGEMENT SYSTEM
dynamic elements of the page occurs in the server. The architecture of a JSP/servlet-
enabled Web site is often referred to as thin-client because most of the business logic is
executed on the server. The following process outlines the tasks performed on a JSP file on
the first invocation of the file or when the underlying JSP file is changed by the developer :
❑The Web browser makes a request to the JSP page.
❑The JSP engine parses the contents of the JSP file.
❑The JSP engine creates temporary servlet source code based on the contents of the JSP.
The generated servlet is responsible for rendering the static elements of the JSP specified at
design time in addition to creating the dynamic elements of the page.
❑The servlet source code is compiled by the Java compiler into a servlet class file.
❑The servlet is instantiated. The init and service methods of the servlet are called, and the
servlet logic is executed.
❑The combination of static HTML and graphics combined with the dynamic elements
specified in the original JSP page definition are sent to the Web browser through the output
stream of the servlet’s response object.
Subsequent invocations of the JSP file will simply invoke the service method of the servlet
created by the above process to serve the content to the Web browser. The servlet
produced as a result of the above process remains in service until the application server is
stopped, the servlet is manually unloaded, or a change is made to the underlying file,
causing recompilation.
Actions
Actions provide an abstraction that can be used to easily encapsulate common tasks. They
typically create or act on objects, normally JavaBeans. The JSP technology provides some
standard actions. These actions are defined in the following sections.
<jsp:useBean>
The <jsp:useBean> action associates an instance of a Java Bean defined with a given scope
and ID, via a newly declared scripting variable of the same ID.
<jsp:setProperty>
The <jsp:setProperty> action sets the value of a bean's property.
<jsp:getProperty>
The <jsp:getProperty> action takes the value of the referenced bean instance's property,
converts it to a java.lang.String, and places it into the implicit out object.
<jsp:include>
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 35
HOTEL MANAGEMENT SYSTEM
The <jsp:include> action provides a mechanism for including additional static and dynamic
resources in the current JSP page. The syntax for this action is as follows:
<jsp:include page="urlSpec" flush="true" />
and
<jsp:include page="urlSpec" flush="true">
{ jsp:param ... /> }
</jsp:include>
The first syntax example illustrates a request-time inclusion, whereas the second contains a
list of param sub-elements that are used to argue the request for the purpose of inclusion.
Table 1.3 contains the attributes and their descriptions for the <jsp:include> action.
Table 1.3: The Attributes for the <jsp:include> Action
<jsp:forward>
The <jsp:forward> action enables the JSP engine to dispatch, at runtime, the current request
to a static resource, servlet, or another JSP. The appearance of this action effectively
terminates the execution of the current page.
Note A <jsp:forward> action can contain <jsp:param> sub-attributes. These sub attributes
provide values for parameters in the request to be used for forwarding.
The syntax of the <jsp:forward> action is as follows:
<jsp:forward page="relativeURLspec" />
and
<jsp:forward page=relativeURLspec">
{ <jsp:param .../> }
</jsp:forward>
Table 1.4 contains the single attribute and its descriptions for the <jsp:forward> action.
Table 1.4: The Attribute for the <jsp:forward> Action
<jsp:param>
The <jsp:param> action is used to provide tag/value pairs of information, by including them
as subattributes of the <jsp:include>, <jsp:forward>, and the <jsp:plugin> actions. The syntax
of the <jsp:param> action is as follows:
<jsp:params>
<jsp:param name="paramName"
value="paramValue">
</jsp:params>
Table 1.5 contains the attributes and their descriptions for the <jsp:param> action.
Table 1.5: The Attributes for the <jsp:param> Action
<jsp:param>
The <jsp:param> action is used to provide tag/value pairs of information, by including them
as subattributes of the <jsp:include>, <jsp:forward>, and the <jsp:plugin> actions. The syntax
of the <jsp:param> action is as follows:
<jsp:params>
<jsp:param name="paramName"
value="paramValue">
</jsp:params>
Table 1.5 contains the attributes and their descriptions for the <jsp:param> action.
Table 1.5: The Attributes for the <jsp:param> Action
Attribute Definition
name This attribute represents the name of the parameter being
referenced.
Value This attribute represents the value of the named parameter.
<jsp:plugin>
The <jsp:plugin> action gives a JSP author the ability to generate HTML that contains the
appropriate client-browser–dependent constructs, for example, OBJECT or EMBED, that will
result in the download of a Java plug-in and subsequent execution of the specified applet or
JavaBeans component.
The <jsp:plugin> tag is replaced by either an <object> or <embed> tag, as appropriate for
the
Requesting user agent and the new tag is written to the output stream of the response
object. The attributes of the <jsp:plugin> action provide configuration data for the
presentation of the element. The syntax of the <jsp:plugin> action is as follows:
<jsp:plugin type="pluginType"
code="classFile"
Codebase="relativeURLpath">
<jsp:params>
...
</jsp:params>
</jsp:plugin>
Table 1.6 contains the attributes and their descriptions for the <jsp:plugin> action.
Table 1.6: The Attributes for the <jsp:plugin> Action
Implicit Objects
As a JSP author, you have access to certain implicit objects that are available for use in JSP
documents, without being declared first. To satisfy the JSP specification, all JSP scripting
languages must provide access to the objects defined in Table 1.7. Each of these implicit
objects has a class or interface type defined in a core Java Development Kit (JDK) or Java
Servlet Development Kit (JSDK).
JSP Scripting
JSP scripting is a mechanism for embedding code fragments directly into an HTML
page. There are three scripting language elements involved in JSP scripting. Each of these
JSP scripting elements has its appropriate location in the generated servlet. In this section
we will look at these elements and how together they will result in a complete servlet.
Declarations
JSP declarations are used to declare variables and methods in the scripting language used in
a JSP page. A JSP declaration should be a complete declarative statement. JSP declarations
are initialized when the JSP page is initialized. After the declarations have been initialized,
they are available to other declarations, expressions, and scriptlets. The syntax for a JSP
declaration is as follows:
<%! Declaration %>
A sample variable declaration using this syntax is declared here:
<%! String name = new String ("BOB"); %>
A sample method declaration using the same syntax is declared as follows:
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 39
HOTEL MANAGEMENT SYSTEM
<%!public String getName() { return name; } %>
To get a better understanding of declarations, let's take the previous String declaration and
actually use it to create a JSP document. The sample document would look similar to the
following code snippet:
<HTML>
<BODY>
<%! String name = new String ("BOB"); %>
</BODY>
</HTML>
When this document is initially requested, the JSP code is converted to servlet code and the
previous declaration is placed in the declaration section of the generated servlet. The
declarations section of the generated servlet would look similar to the following code
snippet:
// begin [file="D:\\Declarations.jsp";from=(3,3);to=(3,37)]
String name = new String ("BOB");
// end
Expressions
JSP expressions are elements in a scripting language that are evaluated with the result being
converted to a java.lang.String. After the string is converted, it is written to the current out
JSP Writer object. JSP expressions are evaluated at HTTP request-time, with the resulting
String being inserted at the expression's referenced position in the .jsp file. If the resulting
expression cannot be converted to a String, then a translation time error will occur. If the
conversion to a String cannot be detected during translation, a Class Cast Exception will be
thrown at request-time. The syntax of a JSP expression is as follows:
<%= expression %>
A code snippet containing a JSP expression is shown here:
Hello <B><%= getName() %></B>
To get a better understanding of expressions, let's take this snippet and insert it into a
simple JSP document. The sample document would look similar to the following code
snippet:
<HTML>
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 40
HOTEL MANAGEMENT SYSTEM
<BODY>
<%! String name = new String("BOB"); %>
<%! public String getName() { return name; } %>
- 15 -
Hello <B><%= getName() %></B>
</BODY>
</HTML>
When this document is initially requested, the JSP code is converted to servlet code and the
previous expression is resolved and placed in its referenced location of the generated
servlet's _jspService() method. The generated servlet would look similar to the following
code snippet:
// begin
out.write("<HTML>\r\n<BODY>\r\n\r\n");
// end
// begin
out.write("\r\n");
// end
// begin
out.write("\r\n\r\nHello <B>");
// end
// begin [file="D:\\Expressions.jsp";from=(6,12);to=(6,23)]
out.print( getName() );
// end
// begin
out.write("</B>\r\n\r\n</BODY>\r\n</HTML>\r\n");
// end
Scriptlets
Scriptlets are what bring all the scripting elements together. They can contain any coding
statements that are valid for the language referenced in the language directive. They are
executed at request-time and they can make use of declarations, expressions, and
JavaBeans. The syntax for a scriptlet is as follows:
Tomcat is the official reference implementation of the Java Servlet and JavaServer Pages
technologies. Developed under the Apache license in an open and participatory
environment, it is intended to be a collaboration of the best-of-breed developers from
around the world.
Installing Tomcat
Windows
Installing Tomcat on Windows can be done easily using the Windows installer. Its interface
and functionality is similar to other wizard based installers, with only a few items of
interest.
The installer will create shortcuts allowing starting and configuring Tomcat. It is important
to note that the Tomcat administration web application can only be used when Tomcat is
running.
If using a J2SE 1.4 JRE, the compatibility package must be downloaded and expanded inside
the folder where Tomcat was installed.
Unix daemon
Tomcat can be run as a daemon using the jsvc tool from the commons-daemon project.
Source tarballs for jsvc are included with the Tomcat binaries, and need to be compiled.
Building jsvc requires a C ANSI compiler (such as GCC), GNU Autoconf, and a JDK.
Before running the script, the JAVA_HOME environment variable should be set to the base
path of the JDK. Alternately, when calling the ./configure script, the path of the JDK may be
specified using the --with-java parameter, such as ./configure --with-java=/usr/java.
Using the following commands should result in a compiled jsvc binary, located in
the $CATALINA_HOME/bin folder. This assumes that GNU TAR is used, and
Please note that you should use the GNU make (gmake) instead of the native BSD make on
FreeBSD systems.
cd $CATALINA_HOME/bin
tar xvfz jsvc.tar.gz
cd jsvc-src
autoconf
./configure
make
cp jsvc ..
cd ..
cd $CATALINA_HOME
./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \
-outfile ./logs/catalina.out -errfile ./logs/catalina.err \
org.apache.catalina.startup.Bootstrap
jsvc has other useful parameters, such as -user which causes it to switch to another user
after the daemon initialization is complete. This allows, for example, running Tomcat as a
non privileged user while still being able to use privileged ports. jsvc --help will return the
full jsvc usage information. In particular, the -debug option is useful to debug issues running
jsvc.
Note that the Commons-Daemon JAR file must be on your runtime classpath to run Tomcat
in this manner. The Commons-Daemon JAR file is in the Class-Path entry of the
bootstrap.jar manifest, but if you get a ClassNotFoundException or a NoClassDefFoundError
for a Commons-Daemon class, add the Commons-Daemon JAR to the -cp argument when
launching jsvc.
Starting Tomcat
Stopping Tomcat
To perform a normal shutdown of Tomcat 5.5, a special "shutdown" request must be send
from a separate process, or possibly a different computer. In the default configuration, that
"shutdown" request must be made using the Ajp12 protocol. If the shell or MS-DOS window
used to start Tomcat is not still open, first open a new one and set the environment the
same as for starting Tomcat.
To stop Tomcat 5.5, execute:
On UNIX: bin/shutdown
On Win32: bin\shutdown
The shutdown process incorporates a host, port, and a password. In the default
configuration, the host defaults to localhost. This means that Tomcat 5.5 can only be
shutdown from the same computer that started it. The port automatically defaults to the
port being used by the Ajp12 protocol. The password defaults to "not specified". This means
that a password will not be required to shutdown Tomcat 5.5
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. 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:
■ To adapt to changing environments and uses.
■ To implement refinements and improvements in the art of programming.
As you will see, the creation of Java was driven by both elements in nearly equal
measure. Java’s Lineage Java is related to C++, which is a direct descendent of C. Much of
the character of Java is inherited from these two languages. From C, Java derives its syntax.
Many of Java’s object-oriented features were influenced by C++. In fact, several of Java’s
defining characteristics come from—or are responses to—its predecessors. Moreover, the
creation of Java was deeply rooted in the process of refinement and adaptation that has
been occurring in computer programming languages for the past three decades. For these
reasons, this section reviews the sequence of events and forces that led up to Java. As you
will see, each innovation in language design was driven by the need to solve a fundamental
problem that the preceding languages could not solve. Java is no exception.
The Birth of Modern Programming: C the C language shook the computer world. Its impact
should not be underestimated, because it fundamentally changed the way programming
was approached and thought about. The creation of C was a direct result of the need for a
structured, efficient, high level language that could replace assembly code when creating
systems programs. As you probably know, when a computer language is designed, trade-offs
are often made, such as the following:
■ Ease-of-use various power.
System Analysis
S o ft w a r e R e q u i r e m e n t S p e c i fi c a ti o n
System requirement shows the hardware and software requirement, which is
necessary for developing the software. Necessary software and hardware requirement,
which are necessary for making this software are as follows:
1 .Software Requirement:
Software requirement for developing this project is as follows:
2. Java technology.
3. Microsoft -Access 98 or higher version.
4. Windows XP or higher version.
2. Hardware Requirement:
Hardware requirement for developing this project is as follows:
1. IntelP4 Corei3 Processor
2. 32 MB RAM or higher
ARCHITECTURAL DESIGN:
SDLC of the Project
SDLC( System Development Life Cycle):
System development life cycle is a sequence of events carried out by analyst, designers
and users to develop and important an information system. Activities are carried out in
different stages. The phases are as follows:
1. Preliminary Investigation (Feasibility Study)
2. Determination Of System Requirement
3. Design Of The System
4. Development Of Software
5. System Testing
6. System Implementation
7. System Maintenance
1. Preliminary Investigation (Feasibility Study):
An important outcome of this preliminary investigation is determining whether the
System requested is feasible or not. The major Purpose of this study is listed below:
Identify the responsible users and develop an initial scope of the system.
Identify current deficiencies in the user’s environment determine objectives for the
new system.
Determine whether it is feasible to automate the system and if so suggest some acceptable
options:
The three major areas to consider while determining the feasibility of a project are:
Technical Feasibility
Economical Feasibility
Operational Feasibility
Technical Feasibility:
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 54
HOTEL MANAGEMENT SYSTEM
The Analyst finds out whether current technical resources, which are available in the
organization, are capable of handling user requirements.
Economical Feasibility:
Economical or financial feasibility is second part of resource determination. Basic
resources to consider are:
Management time
Time spent by system analysis team
Cost of doing the full system study
Estimated cost of hardware
Estimated cost of software
Detailed investigation
Analysis or determination of system requirement
Operational Feasibility:
Operational feasibility is dependent upon determining human resources for the
project. It refers to projecting whether the system will operate and be used once it is
installed. The document to be produced at the end of this activity is called “FEASIBILITY
STUDY REPORT”.
Calculating salary and making salary slips of a large into employee is quite
cumbersome:
The automation of this process becomes most important as it is a periodic process; the
calculation of salary is not an easy process as it takes care of all the accounting information
of an employee, the package being received, working days, leaves, benefits program being
Technical Feasibility:
Technical Feasibility:
Technical feasibility centers on the technology used. It means the candidate system
is technically feasible i.e. it don’t have any technical fault and work properly in the given
environment. Our system is technically feasible; it is providing us required output.
Behavioral Feasibility:
Behavioral feasibility is the analysis of behavior of the candidate system. In this we
analyze that the candidate system is working properly or not. If working than it
communicating proper with the environment or not. All this matters are analyzed and a
good candidate system is prepared. Due to the change of system what is the change in
behavior of the users, this factors are also analyzed.
The report would normally be supported by working papers and flow charts: It is then up to
senior management to decide whether his system should advance to the next stage of the
systems development life cycle. Request Approval not all requested projects are desirable or
feasible. In fact, some organizations receive so many project requests from employees that
only a few of them can be pursued. However, those that are both feasible and desirable
should be put into a schedule. Inn some cases, development can start immediately. Butt in
most cases; systems staff members are busy on other on going projects. When this happens
management decides which projects are most important and schedules them. Many
business organizations develop information system plans as carefully as they plan for new
products, new manufacturing programs, or plant expansion. After a project request is
approved, its cost,, priority, completion, time, and personnel requirement are estimated as
used to determine where to add it on any existing project list. Inexpensive projects are not
necessarily approved automatically, since many projects compete for scarce resource.
Some organizations have long waiting lists (backlogs) of projects. It may take a year or two
for the information systems department to begin work on projects submitted and approved
today. Later on, when other preceding projects are completed, the proposed application
development can be launched. At this time, the collection of data and determination of
requirement begin.
ADVANTAGE OF SRS
An SRS establishes the basis for agreement between the client and the supplier on
what the software product will do.
An SRS provides reference for validation of the final product.
CHARACTERSTICS OF AN SRS
A good SRS is
Correct
Complete
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 66
HOTEL MANAGEMENT SYSTEM
Unambiguous
Verifiable
Consistent
Ranked for importance and/or stability
Modifiable
Traceable
Applications
For a typical shrink-wrap application, the spiral model might mean that you have a
rough-cut of user elements (without the polished / pretty graphics) as an operable
application, add features in phases, and, at some point, add the final graphics.
The spiral model is used most often in large projects. For smaller projects, the
concept of agile software development is becoming a viable alternative. The US military has
adopted the spiral model for its Future Combat Systems program.
Advantages
Estimates (i.e. budget, schedule, etc.) become more realistic as work progresses,
because important issues are discovered earlier. It is more able to cope with the (nearly
inevitable) changes that software development generally entails. Software engineers (who
can get restless with protracted design processes) can get their hands in and start working
on a project earlier.
Risk Analysis
Uncertainty, which is constantly present in our daily lives, frequently impacts our
decisions and actions. When we talk about risk, we normally mean the chance that some
undesirable impact will occur. Hence, we normally seek to avoid or minimize risk. If there is
a chance of rain, and we don't want to get wet, we may choose to stay indoors -- avoiding
that risk -- or we may take an umbrella to minimize the impact of rain upon us. Uncertainty
can impact our decisions and actions in desirable as well as undesirable ways. In risk analysis
we usually focus on what can go wrong -- the outcomes that represent loss or damage --
although an effective analysis will also help us understand what can go right as well.
A risk assessment involves evaluating existing physical and environmental security
and controls, and assessing their adequacy relative to the potential threats of the
organization. A business impact analysis involves identifying the critical business functions
The risk analysis process provides the foundation for the entire recovery planning
effort. A primary objective of business recovery planning is to protect the organization in the
event that all or part of its operations and/or computer services is rendered unusable. Each
Cost estimation
Why SCE is difficult and error prone ?
It is the responsibility of the project manager to make accurate estimations of effort
and cost. This is particularly true for projects subject to competitive bidding where a bid too
high compared with competitors would result in loosing the contract or a bid too low could
result in a loss to the organization. This does not mean that internal projects are
unimportant. From a project leaders estimate the management often decide whether to
proceed with the project. Industry has a need for accurate estimates of effort and size at a
very early stage in a project. However, when software cost estimates are done early in the
software development process the estimate can be based on wrong or incomplete
requirements. A software cost estimate process is the set of techniques and procedures that
an organization uses to arrive at an estimate. An important aspect of software projects is to
know the cost, The major contributing factor is effort. Software cost estimation requires a
significant amount of effort to perform it correctly.
SCE is often done hurriedly, without an appreciation for the effort required. You need
experience at developing estimates, especially for large projects. Human bias i.e. An
Estimator is likely to consider how long a certain portion of the system would take, and then
to merely extrapolate this estimate to the rest of the system, ignoring the non-linear aspects
of software development.
Table 1.0
42.27 10 0.24
79.42 20 0.25
182.84 50 0.27
These findings indicate that there is greater productivity when building large software
systems as opposed to small systems. However, the results can be justified as it is expected
that larger teams can specialize and the overheads are of a relatively fixed size. A
publication by [BANKER & KEMERER] discusses the existence of either economies and
diseconomies of scale, for more information about this I strongly recommend reading this
paper.
The majority of research work carried out in the software cost estimation field has
been devoted to algorithmic models. However, by an overwhelming majority, expert
judgment is the most commonly used estimation method. A Dutch study carried out by
[HEMSTRA] revealed that 62% of estimators / organizations use this intuition technique and
a study carried out by [VIGDER & KARK] also confirmed the techniques popularity. In its
crudest form the expert judgment method involves consultation with one or more local
experts who are knowledgeable about the development environment or application domain
to estimate the effort required to complete a software project.
The method relies heavily on the experience of their knowledge in similar
development environments and historically maintained databases on completed projects
and the accuracy of theses past projects. However, the study carried out by [VIGDER &
KARK] indicated that in general estimators did not refer to previous projects as it was too
difficult to access or the expert could not see how the information would help in the
accuracy of the estimate. The study claimed that the majority of estimators tended to use
their memories of previous projects. If more than one expert is used the weighted average
of their estimates are taken. There are obvious risks with this method. As the project may
have some unique features which could take longer than anticipated. The weighted average
is also very much dependent on the competence of the estimator. However, a particular
strength of using an expert is that they can raise unique strengths and weaknesses of the
local organizational characteristics. Despite widespread use, the method seems to have
received a rather poor reputation and is often regarded as subjective and unstructured
making it vulnerable against more structured methods. A more structured form a expert
judgment is the Wideband Delphi Approach. An excellent paper by [HUGHES 96] discusses
expert judgment in detail identifying its strengths and weaknesses , but redressing the
balance that expert judgment is simply a ‘guess’ and identifying how useful the method can
be in industry.
MACHINE LEARNING
Neural Networks
Fuzzy Logic
Case-Based Reasoning
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 77
HOTEL MANAGEMENT SYSTEM
Analogy
Rule-Based
Regression Trees
Hybrid System
Prototype
Web
Form
Design
Coding
Database
Programming
Testing Finish
A grant chart or bar chart is the simplest form of formal project management. The Gantt
chart is used almost exclusively for scheduling purpose and therefore controls only the time
dimention
GANTT CHART
Modules
System
Integration
Testing
Deployment
Documentation Finish
Admin Module
17feb 17feb 18feb 18feb 18feb 19feb
2011 2011 2011 2011 2011 2011
Prototype
Web Form
Design
Coding
Database Finish
Programming
Testing Finish
Client Module
Prototype
Web Form
Design
Coding
Database
Programming
Testing Finish
Prototype
Web Form
Design
Coding
Database
Programming
Testing Finish
Billing module
Prototype
Web Form
Design
Coding
Database
Programming
Testing Finish
Prototype
Web Form
Design
Coding
Database
Programming
Testing Finish
Home Module
Login Module
7mar 7mar 8mar 9mar 10mar 11mar
2011 2011 2011 2011 2011 2011
Prototype
Web Form
Design
Coding
Database
Programming
Testing Finish
Project Planning
MVC Architecture
4. Project Closure
Project Closure involves releasing the final deliverables to the customer, handling
over project documentation, terminating supplier contracts, releasing project resources and
communicating the closure of the project to all stakeholders. The Last remaining step is to
undertake a Post implementation Review to quantify the overall success of the project and
list any lessons learnt for future projects. The following sections provide a more detailed
description of each phase and list document templates which provide the project Manger
with guidance on how to complete each phase successfully.
Initiation
The initiation phase essentially involves the project ‘start-up’. It is the phase with in
which the business problem or opportunity is identified, the solution is agreed, a project
formed to produce the solution and a project team appointed. The diagram below depicts
the activities undertaken:
Modules
Login Module->
This module has been designed to manage login process. All types of accesses by
different type of users are verified for their authentication. This module includes user
interface to enter login id and password to check the identity of the user. Only the
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 90
HOTEL MANAGEMENT SYSTEM
authorized user can deposit their bill according its status. Different modules are secured
from different type of users who do not have the privilege to access some module.
Admin Module->
This module manages functions such as assigning various properties to the billing
information and provides the tips for saving water and energy .Further; it handles the
corrections of bill and any changement according to customer requirement. An administrator
can also delete, add and modify the account of user as required.
Registration Module->
This module provides the registration of the user for providing details of the user and
also consumer number and also account number. The user requirement is so important for
taking more information due to depositing bill that may be electric bill, water bill and
telephone bill.
Billing Module->
The billing module states the choose of type of bill as water bill, telephone bill,
electricity bill. User can select the billing type and make the payment.
Database Design
KESCO
LOGINTABLE
MYACCOUNTDETAIL
BILLDETAILS
Designing of system deals with transforming the requirements of system into a form
implement able using a programming language. We can broadly classify various design
activities into two parts:
Preliminary (or high level) design.
Detailed Design.
In preliminary design part we design the following items:
Different modules required to implement the design.
Control relationship among the identified modules.
Interface among different modules.
The outcome of high-level design is called system architecture. High-level design of the
project is as follows.
Context Diagram
Level 0 DFD establish the context of the system to be developed. It represents the
interaction of the system with various external entities. Not only the external entities with
which the system interacts are identified, but the data interchange occurring between the
system and these external entities are also represented on the context diagram. The context
diagram represents the entire system as a single bubble.
4.1.1DATA FLOW DIAGRAMS (0-LEVEL DFD)
Pictorial representations of systems have long been acknowledged as being more
effective that narrative. They are easier to grasp when being explained or investigate; it is
easier to find a particular aspect interest, and pictorial representations are less ambiguous
than narrative.
The DFD is a simple graphical notation that can be used to represent a system in terms of
the input data to the system, various processing carried out on these data, and the output
data generated by the system.
1Level DFD
2 Level DFD
HOME.JSP
BillGenrate.JSP
BlockUser.jsp
UnblockUser.jsp
AdminProfile.jsp
Customerhome.jsp
MyAccount.jsp
Mybilling.jsp
Viewbill.jsp
Pay(netbanking).jsp
Pay(credit card).jsp
PaymentHistory.jsp
UserProfile.jsp
Changepassword.aspx
EditProfile.jsp
Enquiry.jsp
Registration.jsp
Newuserreg.jsp
Regdetail.jsp
Reg.Success.jsp
PaymentHistory.jsp
CreditLimit.jsp
UnbilledUser.jsp
Updatesuccess.jsp
Sendanouncement.jsp
Aboutus.jsp
Contactus.jsp
Feedback.jsp
Home.jsp
<body bgcolor="#FFFFCC">
<table bgcolor="#990000"align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE
WATER</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="menu.jsp"/></td>
</tr>
<tr><td>
<%
DateFormat df=new SimpleDateFormat("EEEE,dd MMM,yyyy");
String date=df.format(new java.util.Date());
out.print(" | "+date+" | ");
%>
</td></tr>
<tr>
<td height="408"><jsp:include page="homedata.jsp"/></td>
</tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td> </tr>
</table>
</body>
</html>
Header1.jsp
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="700" height="100" border="0">
<tr>
<td><img src="images/header2.png" alt="head" width="700" height="100" /></td>
</tr>
</table>
</body>
</html>
Menu.jsp
<%@page language="java"%>
<html>
<body>
<body>
<B><center>
<table width="650" height="470" border="0">
Adminlogin.jsp
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE
WATER</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="menu.jsp"/></td>
</tr>
<tr><td>
<%
DateFormat df=new SimpleDateFormat("EEEE,dd MMM,yyyy");
String date=df.format(new java.util.Date());
out.print(" | "+date+" | ");
%>
</td></tr>
<tr>
<td height="408" align="center">
<table height="408" border="0" width="700">
<tr>
<td width="264">
<tr>
<td> <b>Enter Password</b></td>
<td><input type="password" name="textPassword" id="textPassword"/></td>
</tr>
<tr><td><b>Type</b></td>
<td> <%=(String)request.getParameter("type")%>
<input type="hidden" name="type" value="<
%=(String)request.getParameter("type")%>"/></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="subLogin" id="subLogin" value="Submit"/>
</div></td>
</tr>
<tr>
<td colspan="2"><a href="forgett.jsp"><b>Forgot Password</b></a>
</td>
</tr>
</table>
</form></td>
<td width="420"><table width="400" height="179" border="0">
<tr>
Userlogin.jsp
<%@ page contentType="text/html ; charset=iso-8859-1" language="java"
import="java.sql.*,java.util.* , java.text.*" errorPage=""%>
<%
String type=(String)session.getAttribute("type");%>
<body bgcolor="#FFFFCC">
<table bgcolor="#990000"align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE
WATER</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="menu.jsp"/></td>
</tr>
<tr><td>
<%
DateFormat df=new SimpleDateFormat("EEEE,dd MMM,yyyy");
String date=df.format(new java.util.Date());
out.print(" | "+date+" | ");
%>
</td></tr>
<tr>
<td height="408" align="center">
<table height="408" border="0" width="700">
<tr>
<td width="264">
<tr>
<td> <b>Enter Password</b></td>
<td><input type="password" name="textPassword" id="textPassword"/></td>
</tr>
<tr><td><b>Type</b></td>
<td> <%=(String)request.getParameter("type")%>
<input type="hidden" name="type" value="<
%=(String)request.getParameter("type")%>"/></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="subLogin" id="subLogin" value="Submit"/>
</div></td>
</tr>
<tr>
<td colspan="2"><a href="forgett.jsp">Forgott
Password</a> /
<a href="registration.jsp">New User ?</a>
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="adminmenu.jsp"/></td>
</tr>
<tr><td>
<%
DateFormat df=new SimpleDateFormat("EEEE,dd MMM,yyyy");
String date=df.format(new java.util.Date());
out.print(" | "+date+" | ");
String logina=(String)session.getAttribute("logina");
if("yesa".equals(logina))
%>
<div id="apDiv1"><a href="index.jsp">Logout</a></div>
</td></tr>
<tr>
<td height="408" align="center">
<b>Admin Home Provide more Flexibility to user By Technical Support....</b>
</td>
</tr>
<tr>
<td height="5"align="center"><jsp:include page="footer.jsp"/></td>
</tr>
</table>
</body>
</html>
Adminmenu.jsp
<%@page language="java"%>
<html>
<body>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<table border="0" cellpadding="0" cellspacing="0" align="center" >
<tr>
<td width="10" class="menu_button_left"></td>
<td class="menu"><a href="billgenerate.jsp">BillGenerate</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="viewuser.jsp">ViewUser</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="blockuser.jsp">BlockUser</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="unblockuser.jsp">UnBlockUser</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="adminprofile.jsp">My Profile</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="sendanna.jsp">SendAnnouncement</a></td>
</tr>
Adminhandler.jsp
<%@page contentType="text/html" pageEncoding="UTF-8" import="java.sql.*"%>
<%
String ademail=request.getParameter("textName");
String adpassword=request.getParameter("textPassword");
try{
boolean flag=false;
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling")
;
Statement stmt=con.createStatement();
String query="select * from admintable";
ResultSet rs=stmt.executeQuery(query);
while(rs.next())
{
String admail=rs.getString(1);
String adpass=rs.getString(2);
if(flag)
{
session.setAttribute("logina","yesa");
if(!rs.next())
{
response.sendRedirect("adminlogin.jsp?type=Admin");
}
catch(Exception e)
{
out.println(e);
}
%>
Billgenrate.jsp
int read;
int inv;
if(rs.next())
{
inv=rs.getInt(1);
%>
<div id="apDiv1"><a href="index.jsp">Logout</a></div>
</td></tr>
<tr><td height="408" align="center">
String loadc=null;
String typeelect=null;
double charges;
double monthlyrent;
double totalamount;
int preading=0;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling")
;
while(rspr.next())
{
preading=rspr.getInt(1);
}
int noofunits=(currentread-preading);
rspr.close();
stpr.close();
// out.print(noofunits);
int loadm=Integer.parseInt(loadc);
stmt.close();
rs.close();
// out.print(loadm);
//out.print(typeelect);
if(loadm >= 1 && loadm <=3 )
{
monthlyrent=150;
}
else if(loadm > 3 && loadm <= 5)
{
if("Domestic".equals(typeelect)||"domestic".equals(typeelect))
{
if(noofunits <= 100)
{
charges=3;
}
else if(noofunits > 100 && noofunits <= 300)
{
charges=3.50;
}
else
{
charges=4;
}
}
else
{
if(noofunits <= 100)
{
charges=3.50;
}
//out.print(charges);
//out.println(monthlyrent);
totalamount =((noofunits*charges)+monthlyrent);
//out.print(totalamount);
prestmt.setInt(1,invoic);
prestmt.setInt(2,connect);
prestmt.setString(3,bdate);
prestmt.setDouble(4,totalamount);
prestmt.setString(5,ddate);
prestmt.setInt(6,currentread);
prestmt.executeUpdate();
prestmt.close();
con.close();
response.sendRedirect("billgenerate.jsp?msg=success");
}
catch(Exception e)
{
out.println(e);
}
%>
Viewuser.jsp
<%@ page contentType="text/html ; charset=iso-8859-1" language="java"
import="java.sql.*,java.util.* , java.text.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<title>ebiling.com</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 980px;
top: 185px;
}
</style>
</head>
%>
<div id="apDiv1"><a href="index.jsp">Logout</a></div>
</td></tr>
<tr>
<td height="408" valign="top">
<table align="center"cellpading="2"width="100%">
<tr bgcolor="#0054A8"align="center">
<td><b>Emailid</b></td><td><b>Password</b></td><td><b>ConnectionNo</
b></td><td><b>CustomerName</b></td><td><b>ContactNo</b></td><td><b>Address</
b></td></tr>
<%
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(Exception e)
{
out.print(e);
}
%>
</table>
<div align="center"><hr width="100"/>
<a href="adminhome.jsp">BACK</a><hr width="100"/></div>
</td>
</tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td> </tr>
Blockuser.jsp
<%@ page contentType="text/html ; charset=iso-8859-1" language="java"
import="java.sql.*,java.util.* , java.text.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<title>ebiling.com</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 980px;
top: 185px;
}
</style>
</head>
<body bgcolor="#FFFFCC">
%>
<div id="apDiv1"><a href="index.jsp">Logout</a></div>
</td></tr>
<tr>
<td height="408" valign="top">
<table align="center"cellpading="2"width="100%">
<tr bgcolor="#0054A8"align="center">
<td><b>Emailid</b></td><td><b>Password</b></td><td><b>ConnectionNo</
b></td><td><b>CustomerName</b></td><td><b>ContactNo</b></td><td><b>Address</
b></td></tr>
<%
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling")
;
Statement stmt=con.createStatement();
String query="select * from logintable";
ResultSet rs=stmt.executeQuery(query);
int i=2;
while(rs.next())
{
if(i%2==0)
catch(Exception e)
{
out.print(e);
}
%>
</table>
<div align="center"><hr width="100"/>
<a href="adminhome.jsp">BACK</a><hr width="100"/></div>
</td>
</tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td> </tr>
</table>
</body>
</html>
Blockhandler.jsp
}
catch(Exception e)
{
out.println(e);
}
%>
Unblockuser.jsp
<%@ page contentType="text/html ; charset=iso-8859-1" language="java"
import="java.sql.*,java.util.* , java.text.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<title>ebiling.com</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 930px;
top: 180px;
}
</style>
</head>
%>
<div id="apDiv1"><a href="index.jsp">Logout</a></div>
</td></tr>
<tr>
<td height="408" valign="middle">
%>
<%
}
}
catch(Exception e)
{
out.print(e);
}%>
</select></td></tr><tr><td> </td></tr>
<tr><td align="center"><b>Enter Loginid for Block:</b><input type="text"
name="loginidblock" value=""/></td></tr>
<tr><td align="center"><input name="submit" type="submit" value="UnBlock" /></td></tr>
<tr><td> </td></tr>
</table>
</form>
</td>
</tr>
<tr>
Unblockhandler.jsp
}
catch(Exception e)
{
out.println(e);
}
%>
Adminprofile.jsp
<body bgcolor="#FFFFCC">
%>
<div id="apDiv1"><a href="index.jsp">Logout</a></div>
</td></tr>
<tr>
<td height="408">
<%
String ademail=(String)session.getAttribute("ademail");
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","eb
illing");
Statement stmt = con.createStatement();
%>
<table border="0" align="center">
<tr>
<td colspan="2"><div
align="center"><strong><h3>YourProfile</h3></strong></div></td>
</tr>
<tr>
<td colspan="2"><em><h4>Following Information was furnished at the time of
Interview to ebilling system.com</h4></em></td>
</tr>
<tr>
<td width="279"><b>Name</b> </td>
<td width="295"><%=rs.getString(3)%></td>
</tr>
<tr>
<td><b>ContactNo</b></td>
<td><%=rs.getString(4)%></td>
</tr>
<tr>
<td><b>Address</b></td>
<td><%=rs.getString(5)%></td>
</tr>
<tr>
<td><b>Password</b></td>
<td><%=rs.getString(2)%></td>
<%}
}
catch(Exception e)
{out.print(e);}%>
</tr></table>
</td>
</tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td>
</tr>
</table>
</body>
</html>
Customerhome.jsp
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<title>ebiling.com</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:200px;
height:24px;
z-index:1;
left: 980px;
top: 180px;
}
</style>
</head>
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
Customerhomeframe.jsp
<%@page language="java"%>
<html>
<body>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<table border="0" cellpadding="0" cellspacing="0" align="center" >
<tr>
<td width="10" class="menu_button_left"></td>
<td class="menu"><a href="customerhome.jsp">Welcome</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="myaccount.jsp">My Account</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="mybilling.jsp">My Billing</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="profile.jsp">My Profile</a></td>
<td width="19" class="menu_button_mid"></td>
<td class="menu"><a href="inquery.jsp">Enquiry</a></td>
</tr>
</table>
</body>
</html>
Myaccount.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,
java.util.*, java.text.* " errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<title>ebiling.com</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:200px;
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
<div id="apDiv1"><table><tr><td><a
href=index.jsp>Logout</a></td></tr></table></div></td>
</tr>
<tr>
<td height="408"><jsp:include page="myaccountdata.jsp"/></td>
</tr>
<tr>
<td height="5"align="center"><jsp:include page="footer.jsp"/></td>
</tr>
</table>
</body>
</html>
Myaccountdata.jsp
Mybilling.jsp
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
<div id="apDiv1"><table><tr><td><a
href=index.jsp>Logout</a></td></tr></table></div></td>
</tr>
<tr>
<td height="408"><jsp:include page="mybillingdata.jsp"/></td>
Mybillingdata.jsp
<body>
<form id="form1" name="form1" method="post" action="">
<table align="left" width="224" border="0">
<tr>
<td width="250" height="40"><strong><a href="viewbill.jsp"><b>VIEW
BILL</b></a></strong></td>
</tr>
<tr>
<td height="40"><strong><a href="pay1.jsp"><b>PAY BILL</b></a></strong></td>
</tr>
<tr>
<td height="40"><strong><a href="paymenthistory.jsp"><b>PAYMENT
HISTORY</b></a></strong></td>
</tr>
<tr>
<td height="40"><strong><a href="creditlimit.jsp"><b>CREDIT
LIMIT</b></a></strong></td>
</tr>
<tr>
<td height="40"><strong><a href="unbilleduser.jsp"><b>UNBILLED
USER</b></a></strong></td>
</tr>
</table>
</form>
</body>
</html>
Viewbill.jsp
<%@ page contentType="text/html ; charset=iso-8859-1" language="java"
import="java.sql.*,java.util.* , java.text.*" errorPage=""%>
<%
String cnm=(String)session.getAttribute("cnno");
String na=(String)session.getAttribute("a");
String meterno=(String)session.getAttribute("meterno");
int metern=Integer.parseInt(meterno);
int invoice=0;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt1=con.createStatement();
String qry="select max(invoicenno) from billdetails where connectionno='"+cnm+"'";
ResultSet rs1=stmt1.executeQuery(qry);
while(rs1.next())
{
invoice=rs1.getInt(1);
}
stmt1.close();
rs1.close();
Statement stmt2=con.createStatement();
String query="select * from billdetails where invoicenno='"+invoice+"'";
ResultSet rs2=stmt2.executeQuery(query);
while(rs2.next())
{
%>
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
<div id="apDiv1"><table><tr><td><a
href=index.jsp>Logout</a></td></tr></table></div></td>
</tr>
<tr><td height="407" align="center">
<table width="245" border="0">
<tr>
<td height="31" colspan="3"><div align="center"><strong><h3>Bill Details</h3></strong></
div></td>
</tr>
<tr>
<td height="37"><b>Connection No.</b></td>
<td><%=rs2.getString(2)%></td>
</tr>
<tr>
<td height="30"><b>Meter No.</b></td>
<td><%out.print(metern);%></td>
</tr>
<tr>
<td height="31"><b>Bill Date</b></td>
<td><%=rs2.getString("billdate")%></td>
</tr>
<tr>
<td height="29"><b>Ammount</b></td>
<td><%=rs2.getInt("amount")%></td>
</tr>
<tr>
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 172
HOTEL MANAGEMENT SYSTEM
<td height="30"><b>Due Date</b></td>
<td><%=rs2.getString("duedate")%></td>
</tr>
<tr>
<td height="29"><b>Invoice No.</b></td>
<td><%out.print(invoice);%></td>
</tr>
<tr>
<td height="31"> </td>
<td><a href="#"><b>Details</b></a></td>
<td><a href="#"><b>Download</b></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="5"align="center"><jsp:include page="footer.jsp"/></td>
</tr>
</table>
</body>
</html>
<%
}
}
catch(Exception e)
{
out.println(e);
}
%>
Viewbilldata.jsp
<body>
<form id="form1" name="form1" method="post" action="">
<table width="237" border="0">
<tr>
<tr>
<td height="37">Connection No.</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="30">Meter No.</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="31">Bill Date</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="29">Ammount</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="30">Due Date</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="29">Invoice No.</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="31"> </td>
<td><a href="#">Details</a></td>
<td><a href="#">Download</a></td>
</tr>
</table>
<table align="left"width="100" border="0">
<tr>
<td> <strong><a
href="customerhome.jsp">Log Out</a></strong></td>
</tr>
</table>
</form>
</body>
</html>
Pay1.jsp
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="604" width="712" border="1">
<tr>
<td width="717" height="100"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 176
HOTEL MANAGEMENT SYSTEM
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
</td>
</tr>
<tr>
<td height="408"><div id="apDiv1"><a href="index.jsp">LogOut</a></div>
<table width="491" height="148" border="0">
<tr>
<td colspan="5" align="center"><h3>Payment Home</h3></td>
</tr>
<tr>
<td align="center"><b>Ammount:</b><input type="text" name="textfield" id="textfield"
/></td>
</tr>
<tr>
<td align="center"><b>Mode:</b> <input type="radio" name="radio"
id="radio" value="net" onclick="fun('net')"/>
Net Banking <input type="radio" name="radio" id="radio" value="card"
onclick="fun('card')" />
Credit Card</td>
</tr>
<tr><td align="center"><div id="data"></div></td></tr>
<tr><td><input type="submit" name="submit" value="PayNow"/></td></tr>
</table></td>
</tr>
<tr>
<td height="5"align="center"><jsp:include page="footer.jsp"/></td>
</tr>
</table>
</body>
</html>
Paymenthistory.jsp
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
<div id="apDiv1"><table><tr><td><a
href=index.jsp>Logout</a></td></tr></table></div></td>
</tr>
<tr>
<td height="408"><jsp:include page="paymenthistorydata.jsp"/></td>
</tr>
<tr>
<td height="5"align="center"><jsp:include page="footer.jsp"/></td>
</tr>
</table>
</body>
</html>
Paymenthistorydata.jsp
<body>
<form id="form1" name="form1" method="post" action="">
<table width="323" height="326" border="0" align="center">
<tr>
<td colspan="3"><div align="center"><strong><h3>PAYMENT HISTORY</h3></strong></
div></td>
</tr>
<tr>
<td width="124"><b>S.No.</b></td>
<td width="90"> </td>
<td width="68"> </td>
</tr>
<tr>
<td><b>Payment Date</b></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><b>Reciept Date</b></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><b>Payment Mode</b></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><b>Amount</b></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><b>Status</b></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><strong><a href="#"><b>Download</b></a></strong></td>
<td><strong><a href="#"><b>Print</b></a></strong></td>
</tr>
</table>
</form>
</body>
</html>
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt = con.createStatement();
String query="select * from logintable where emailid='"+na+"'";
ResultSet rs=stmt.executeQuery(query);
while(rs.next())
{
String cn=rs.getString(4);
session.setAttribute("b",cn);
%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<title>ebiling.com</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:200px;
height:24px;
z-index:1;
left: 980px;
top: 180px;
}
</style>
</head>
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
</tr>
<tr>
<td height="5"><%
Editprofile.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,
java.util.*, java.text.* " errorPage="" %>
<%
String na=(String)session.getAttribute("a");
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt = con.createStatement();
String query="select * from logintable where emailid='"+na+"'";
ResultSet rs=stmt.executeQuery(query);
while(rs.next())
{
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<title>ebiling.com</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:200px;
height:24px;
z-index:1;
left: 980px;
top: 180px;
<body bgcolor="#FFFF99">
<form name="form1" method="post" action="upadatehandler.jsp">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER</marquee></
td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
<div id="apDiv1"><table><tr><td><a
href=index.jsp>Logout</a></td></tr></table></div></td>
</tr>
<tr>
<td height="408" align="center"><table width="475" height="226" border="0"
align="center">
<tr>
<td width="142"><b>Email-Id</b></td>
<td width="140"><input type="text" name="editname"
value="<%=rs.getString(1)%>"/></td>
<td width="171"> </td>
</tr>
<tr>
<td><b>Password</b></td>
<td><input type="text" name="editpass" value="<%=rs.getString(2)%>"/></td>
<td> </td>
</tr>
<tr>
<td><b>Contact No</b></td>
<td><input type="text" name="editcot" value="<%=rs.getString(3)%>"/></td>
<td> </td>
</tr>
<tr>
<td><b>Type of Electricity</b></td>
<td><input type="text" name="editelect" value="<%=rs.getString(8)%>"/></td>
<td> </td>
</tr>
<tr>
</table></td></tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td> </tr>
</table>
</form>
</body>
</html>
<%
}
}
catch(Exception e)
{
out.println(e);%>
Changepasswordprofile.jsp
<body bgcolor="#FFFF99">
<form name="frmcp" method="post" action="changephandler.jsp">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
<%}%>
<tr>
<td width="384" height="46"><div align="center"><hr width="100"/>
<a href="index.jsp"><b>Continue</b></a><hr width="100"/></div></td>
</tr>
</table></td></tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td> </tr>
</table>
</body>
</html>
Updatehandler.jsp
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
conn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt=conn.createStatement();
String query="Update logintable set emailid='"+en+"', password='"+ep+"',contactno='"+ec+"',
typeofelectricity='"+et+"' where connectionno='"+na+"'";
stmt.executeUpdate(query);
response.sendRedirect("updatesuccess.jsp?msg=update");
}
catch(Exception e)
{
out.println(e);
response.sendRedirect("editprofile.jsp");
}
%>
Enquiry.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,
java.util.*, java.text.* " errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER
</marquee></td>
</tr>
<tr>
<td height="5" ><jsp:include page="customerhomeframe.jsp"/></td>
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
<div id="apDiv1"><table><tr><td><a
href=index.jsp>Logout</a></td></tr></table></div></td>
</tr>
<tr>
<td height="408"><jsp:include page="inquerydata.jsp"/></td>
</tr>
<tr>
<td height="5"align="center"><jsp:include page="footer.jsp"/></td>
</tr>
</table></body></html>
Enquirydata.jsp
Following links are for registering the Complaint and viewing status of the Complaints under
the grievance cell.
</td>
</tr>
<tr>
<td><div align="center"><hr width="100"/>
<a href="complaint.jsp"><b>complaint register</b></a><hr width="100"/></div></td>
</tr>
</table>
</form>
Changep.jsp
<%--
Document : changep
Created on : May 21, 2011, 4:16:01 PM
Author : Lenovo
--%>
Changephandler.jsp
<%--
String cn=(String)session.getAttribute("b");
String na=(String)session.getAttribute("a");
String pa=request.getParameter("textop");
String np=request.getParameter("rep");
session.setAttribute("p", np);
String nrep=request.getParameter("textnp");
if("".equals(pa)||"".equals(np)||"".equals(nrep)||!(np.equals(nrep)))
{
response.sendRedirect("changepasswordprofile.jsp?msg=blank");
}
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt= con.createStatement();
String query="select * from logintable where emailid='"+na+"'";
ResultSet rs=stmt.executeQuery(query);
while(rs.next())
{
String p=rs.getString(2);
String e=rs.getString(1);
</style>
</head>
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
<tr>
<td height="100" width="700"><jsp:include page="header1.jsp"/></td>
</tr>
<tr>
<td height="5"><marquee>
SAVE ELECTICITY SAVE WATER</marquee></
td>
</tr>
<tr>
<td height="5" ><jsp:include page="menu.jsp"/></td>
</tr>
<tr>
<td height="5"><%
DateFormat df=new SimpleDateFormat("EEEE, dd MMMM, yyyy");
String date=df.format(new java.util.Date());
out.print("| "+date+" | ");
%>
</td>
</tr>
<tr>
<td height="408" align="center"><form id="form1" name="form1" method="post"
action="newuser.jsp">
<table width="557" height="276" border="0">
<tr>
<td colspan="2"><div align="left"><strong><h4>WELCOME TO THE CUSTOMER</h4></
strong></div></td>
</tr>
<%
if("blank".equals((String)request.getParameter("msg")))
out.print("Fields are Blank / You are not Authorised from Kesco...");
else if("error".equals((String)request.getParameter("msg")))
out.println("You are already registered ...Please login...");
%>
<tr>
<td width="116"><b>Connection no.</b></td>
<tr>
<td colspan="2">
<div align="left">
<input type="submit" name="button" id="button" value="Proceed" />
</div></td>
</tr>
</table>
</form></td></tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td> </tr>
</table>
</body>
</html>
Newuser.jsp
if("".equals(na) ||"".equals(nm))
{
response.sendRedirect("registration.jsp?msg=blank");
}
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt= con.createStatement();
String query="select * from kesco ";
ResultSet rs=stmt.executeQuery(query);
while(rs.next())
{
String conna=rs.getString(1);
String cusname=rs.getString(2);
}
if(!rs.next()) {
response.sendRedirect("registration.jsp?msg=blank");
}
}
catch(Exception e)
{
out.println(e);
}
%>
Newuserreg.jsp
<%--
Document : newuserreg
Created on : May 20, 2011, 12:36:44 PM
Author : Lenovo
--%>
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt= con.createStatement();
String q="select * from logintable";
ResultSet rs1=stmt.executeQuery(q);
while(rs1.next())
{
String cn=rs1.getString(4);
String cm=rs1.getString(6);
</table>
</form></td></tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td>
</tr>
</table>
</body>
</html>
<%
}
}
catch(Exception e)
{
out.println(e);
}
%>
Regdetail.jsp
</style>
</head>
<body bgcolor="#FFFF99">
<table bgcolor="#990000" align="center" height="523" width="700" border="1">
Regdetailhandler.jsp
String na=(String)session.getAttribute("x");
String nm=(String)session.getAttribute("y");
String elect=request.getParameter("textelect");
String me=request.getParameter("textMeterno");
String cot=request.getParameter("textContactno");
String ma=request.getParameter("textEmail");
String pas=request.getParameter("textPass");
String re=request.getParameter("textrepass");
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ebilling","ebilling");
Statement stmt= con.createStatement();
String query="select * from kesco where connectionno='"+na+"'";
ResultSet rs=stmt.executeQuery(query);
while(rs.next())
{
dt=rs.getString(3);
ld=rs.getString(4);
adr=rs.getString(5);
}
}
catch(Exception e)
{
out.println(e);
}
%>
Registrationsuccess.jsp
<%}%>
<tr>
<td width="384" height="46"><div align="center"><hr width="100"/>
<a href="index.jsp"><b>Continue</b></a><hr width="100"/></div></td>
</tr>
</table></td></tr>
<tr>
<td height="5"align="center" ><jsp:include page="footer.jsp"/></td> </tr>
</table>
</body>
</html>
Loginhandler.jsp
Insert.jsp
<body>
<form id="form1" name="form1" method="post" action="inserthandler.jsp">
<table width="461" border="1">
<%
if("blank".equals((String)request.getParameter("msg")))
{
out.println("fields are blank");
}
%>
<tr>
<td width="218"><b>Name</b></td>
<td width="227"><input type="text" name="textname" id="textname" /></td>
</tr>
<tr>
<td><b>Address</b></td>
<td><input type="text" name="textaddress" id="textaddress" /></td>
</tr>
<tr>
<td><b>Contact</b></td>
<td><input type="text" name="textcont" id="textcont" /></td>
</tr>
<tr>
<td><b>Email</b></td>
<td><input type="text" name="textmail" id="textmail" /></td>
</tr>
<tr>
<td><b>Age</b></td>
<td><input type="text" name="textage" id="textage" /></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="button" id="button" value="Submit" />
<input type="submit" name="button2" id="button2" value="Reset" />
</div></td>
</tr>
</table>
</form>
</body>
</html>
Inserthandler.jsp
<%@page contentType="text/html" pageEncoding="UTF-8" language="java"
import="java.sql.*"%>
<%
Detail.jsp
<body>
<form name="frmuserlogin" method="post" action="loginhandler1.jsp">
<table height="141" width="658" border="0">
<tr>
<td width="126" ><strong><h4>EXISTING USER</h4></strong></td>
<td width="200"></td>
<td width="318"><div align="left"><strong><b>Bill Junction saves your time &
money.</b></strong></div></td>
</tr>
<tr>
<td height="25"><b>Login Id</b></td>
<td><label>
Connectionhandler.jsp
Development
Installation/Hosting Process
Detection Techniques
Detection Techniques
Anomaly-based Signature-based
The fact that an attacker can strike remotely makes a Web server an appealing target.
Understanding threats to your Web server and being able to identify appropriate
countermeasures permits you to anticipate many attacks and thwart the ever-growing ints
of attackers. The main threats to a Web server are:
Profiling
Vulnerabilities
Common vulnerabilities that make your server susceptible to profiling include:
Unnecessary protocols
Open ports
Web servers providing configuration information in banners
Attacks
Port scans
Ping sweeps
NetBIOS and server message block (SMB) enumeration
Countermeasures include blocking all unnecessary ports, blocking Internet Control Message
Protocol (ICMP) traffic, and disabling unnecessary protocols such as NetBIOS and SMB.
Denial of Service
Denial of service attacks occur when your server is overwhelmed by service requests. The
threat is that your Web server will be too overwhelmed to respond to legitimate client
requests.
Vulnerabilities
Countermeasures include hardening the TCP/IP stack and consistently applying the latest
software patches and updates to system software.
Unauthorized Access
Unauthorized access occurs when a user without correct permissions gains access to
restricted information or performs a restricted operation.
Countermeasures include using secure Web permissions, NTFS permissions, and .NET
Framework access control mechanisms including URL authorization.
Code execution attacks occur when an attacker runs malicious code on your server either to
compromise server resources or to mount additional attacks against downstream systems.
Vulnerabilities
Path traversal
Buffer overflow leading to code injection
Countermeasures
Countermeasures include configuring IIS to reject URLs with "../" to prevent path traversal,
locking down system commands and utilities with restrictive access control lists (ACLs), and
installing new patches and updates.
Elevation of privilege attacks occur when an attacker runs code by using a privileged process
account.
Vulnerabilities
Common vulnerabilities that make your Web server susceptible to elevation of privilege
attacks include:
Countermeasures include running processes using least privileged accounts and using least
privileged service and user accounts. Viruses, Worms, and Trojan Horses Malicious code
comes in several varieties, including:
Viruses. Programs that are designed to perform malicious acts and cause disruption
to an operating system or applications.
Worms. Programs that are self-replicating and self-sustaining.
Trojan horses. Programs that appear to be useful but that actually do damage.
In many cases, malicious code is unnoticed until it consumes system resources and slows
down or halts the execution of other programs. For example, the Code Red worm was one
of the most notorious to afflict IIS, and it relied upon buffer overflow vulnerability in an
ISAPI filter.
Vulnerabilities
Common vulnerabilities that make you susceptible to viruses, worms, and Trojan horses
include:
Unpatched servers
Countermeasures include the prompt application of the latest software patches, disabling
unused functionality such as unused ISAPI filters and extensions, and running processes with
least privileged accounts to reduce the scope of damage in the event of a compromise.
Attacks
Countermeasures
Use secure authentication, such as Windows authentication, that does not send
passwords over the network.
Encrypt SQL Server authentication credentials. If you use SQL Server authentication,
you can encrypt credentials automatically by installing a server certificate on the
database server.
Secure communication channels. Options include using Secure Sockets Layer (SSL) or
Internet Protocol Security (IPSec).
Use remote procedure call (RPC) encryption with Enterprise Services applications.
Use a segmented network, which can isolate eavesdropping to compromised
segments.
Use the Http Channel.
Unauthorized Access
If you fail to block the ports used by applications that run on the application server at the
perimeter firewall, an external attacker can communicate directly with the application
server. If you allow computers other than the front-end Web servers to connect to the
application server, the attack profile for the application server increases.
Firewall policies that block all traffic except expected communication ports
TCP/IP filtering or IPSec policies to prevent unauthorized hosts from establishing
connections
Disabling unused services
Static DCOM endpoint mapping that allows access only to authorized hosts
These attacks are often not noticed until they begin to consume system resources, which
slow down or halts the execution of other applications. Application servers that host IIS are
susceptible to IIS attacks.
Countermeasures that help mitigate the risk posed by viruses, Trojan horses, and worms
include:
T e s ti n g
Software testing is a critical element of software quality assurance and represent the
ultimate review of specification design, coding, purpose of product testing is to verify and
validate various work products via unit integrated unit, final product to ensure that they
meet their requirements.
Planning
Execution
This involves executing these test plans, measuring. Collecting data and very fine if it meets
the quality criteria. Data collected is used to make appropriate changes in the plans related
to development and testing. The quality of a product or item can be achieved by ensuring
that the product meets the requirements by planning and conducting the following tests at
various stages.
6.2 TYPES OF TESTING SOFTWARE : The main types of software testing are:
Component Testing
Starting from the bottom the first test level is “Component Testing”, sometimes
called Unit Testing. It involves checking that each feature specified in the “Component
Design” has been implemented in the component. In theory an independent tester should
do this, but in practice the developer usually does it, as they are the only people who
understand how a component works. The problem with a component is that it performs
only a small part of the functionality of a system, and it relies on co-operating with other
parts of the system, which may not have been built yet. To overcome this, the developer
either builds, or uses special software to trick the component into believing it is working in a
fully functional system.
Interface Testing
As the components are constructed and tested they are then linked together to
check if they work with each other. It is fact that two components that have passed all their
tests, when connected to each other produce one new component full of faults. These tests
can be done by specialists, or by the developers.
Interface testing is not focused on what the components are doing but on how they
communicate with each other, as specified in the “System Design”. The “system Design”
defines relationship between components, and this involves stating:
1). what a component can expect from another component in terms of services.
System Testing
Once the entire system has been built then it has to be tested against the “System
Specification” to check if it delivers the features required. It is still developer focused,
although specialist developers known as system testers are normally employed to do it.In
essence System testing is not about checking the individual parts of the design, but about
checking the system as a whole. In effect it is one giant component. System testing can
involve of specialist types of test to see if all the functional and non-functional requirements
have been met. In addition to functional requirements these may include the following
types of testing for the non-functional requirements:
1). Performance- Are the performance criteria met?
Black box testing is designed to uncover errors. They are used to demonstrate that
software functions are operations; that input is properly accepted and output is
Software testing is arguably the least understood part of the development process.
Through a four-phase approach, the author shows why eliminating bugs is tricky and why
testing is a constant trade-off. Virtually all developers know the frustration of having
software bugs reported by users. When this happens, developers inevitably ask: How did
those bugs escape testing? Countless hours doubtless went into the careful testing of
hundreds or thousands of variables and code statements, so how could a bug have eluded
such vigilance?
Four phases:
Modeling the software’s environment
Selecting test scenarios
Running and evaluating test scenarios
Measuring testing progress
These phases offer testers a structure in which to group related problems that they must
solve before owing on to the next phase.
EMBED Word.Picture.8
Performance&Scalability:
The scalability in the testing lab features powerful workstations and top-of-the-line
networking equipment and is capable of testing the performance and scalability of an end-
to-end solution, not just individual components. The lab is capable of generating a realistic
load of thousands of virtual users consisting of a mix of user profiles while simultaneously
exercising different portions of a dynamic Web application, based on real-world Web usage
patterns. Testing tools can capture a variety of critical statistics, such as per-page user
response times, web interactions per second, transaction error rates and network traffic.
The testing lab also reports on empirical performance metrics of e-commerce products
subjected to massive user load, versus projecting results based on smaller load tests.
This approach ensures that the data reported provides an accurate depiction of the
actual performance of the tested products. Through arrangements with many of the leading
web testing tool vendors, testing lab is capable of generating complex scripts to be used in
testing.
UsabilityTesting
To conduct usability testing, testing labs assembles a focus group of testers with a
broad range of experience in personal computer and Internet usage. Working with its client,
all testing lab’s highly skilled Usability Testing Team will develop a questionnaire that
addresses the various aspects of the client’s website. The questionnaire, along with the
focus group debriefing, is designed to elicit the responses and opinions of the members of
the focus group regarding the usability of the website. A final report will include testing labs’
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 221
HOTEL MANAGEMENT SYSTEM
expert opinion as well as the individual responses and group consensus regarding the
comparative usability of the website.
Security Implementation
Computer security is an important topic. As e-commerce blossoms, and the Internet
works its way into every nook and cranny of our lives, security and privacy come to play an
essential role. Computer security is moving beyond the realm of the technical elite, and is
beginning to have a real impact on our everyday lives.
It is no big surprise, then, that security seems to be popping up everywhere, from
headline news to TV talk shows. Because the general public doesn't know very much about
security, a majority of the words devoted to computer security cover basic technology
issues such as what firewalls are, what cryptography is, or which antivirus product is best.
Much of the rest of computer security coverage centers around the "hot topic of the day,"
usually involving an out-of-control virus or a malicious attack. Historically, the popular press
pays much attention to viruses and denial-of-service attacks: Many people remember
hearing about the Anna Kournikova worm, the "Love Bug," or the Melissa virus ad nauseam.
These topics are important, to be sure. Nonetheless, the media generally manages not to
get to the heart of the matter when reporting these subjects. Behind every computer
security problem and malicious attack lies a common enemy—bad software.
Unfortunately, the very nature of extensible systems makes security harder. For one thing, it
is hard to prevent malicious code from slipping in as an unwanted extension. Meaning, the
features designed to add extensibility to a system (such as Java's class-loading mechanism)
must be designed with security in mind. Furthermore, analyzing the security of an extensible
system is much harder than analyzing a complete system that can't be changed. How can
you take a look at code that has yet to arrive? Better yet, how can you even begin to
anticipate every kind of mobile code that may arrive?
Together, the three trends of ubiquitous networking, growing system complexity, and built-
in extensibility make the software security problem more urgent than ever. There are other
Software maintenance
Software maintenance is the modification of a software product after delivery to
correct faults, to improve performance or other attributes, or to adapt the product to a
modified environment.
Categories of
maintenance
Conclusions:
The developed system has the following features which make the working in the intranet a very
easy task.
Features:
User Friendly:
The system is user friendly as it provides all the facilities of reservation to the user right at
home so it helps to save his time and effort ,and the working of the booking procedure is so
easy and understandable that anyone can book ticket by just understanding the procedure once
Attractive Layout:
Each screen is designed in such a way that the user will feel enthusiastic while working with the
system.
Easy to Learn:
Due to the easy layout and its user friendliness, it is very easy to learn how to work with the
system. The user will feel relaxed and enjoy working with it.
FUTURE ENHANCEMENT
Today all the action are performed online because it is fast, efficient & trouble
shooting in case of huge queue as time is so precious today that no one wants to waste it. It
is also a way of reliable and quick communication as some time it is needed to be inform
quickly, in such case online works only. E-Billing System is the best example of all above
services.The application can be further enhanced to include the following things-
>> Provide better customer service
>> Solve a complaint with in quick time.
>> Customer service provider.
Bibliography
Name:-SAURABH KUMAR,RISHU GUPTA , MANSI SINGH , AAKANSHA GUPTA .
Roll No :- 0901204, 0901157, 0901105, 0801407 Page 231
HOTEL MANAGEMENT SYSTEM
Websites
Books
Pro Java ME MMAPI Mobile media API for Java WILEY INDIA