Online Event Management System Report-1
Online Event Management System Report-1
1. INTRODUCTION
1.1 Objective and Introduction:
Online Event Management is web application software being designed and developed to meet
the needs of customers’ who want to book for required services. Using this web application,
the customers will be able to avail services for their events after registering with us through
our web site. Our web application facilitates clients to choose services according to their
budget and also the online payments. This will improve the customers satisfaction and saves
time.
Major Modules:
Admin
Customer
Functionalities of Modules:
VI BCA 1
ONLINE EVENT MANAGEMENT SYSTEM
The administrator has the full privilege in this web application. The user
with admin login can add new service details as when introduced in the
market. The financial scenarios of clients are obtained and service
booking plans and services are given. Also, on regular basis admin keeps
checking the market trends and updates the service for the customers and
generate the report.
VI BCA 2
ONLINE EVENT MANAGEMENT SYSTEM
The existing system is functionally compatible with the process logic, but lacking in certain
operations such as booking summary and alteration that customers should be able to do in the
system for the changing needs. The booking and status tracking are not automated. Usually
the e-commerce websites does not provide with the status tracking. The customers will have
to register for the same with customer support team and make phone calls to know the status
of requested service. In this type of status tracking the customers face lots of hardships in
getting connected and to talk to the executive for knowing the status. Also, the savings,
expenses and various types of earnings related operations in finance maintenance require the
automation.
In the proposed system, the drawbacks of existing system are overcome. The customer
support for status tracking is done through one of the web module, so that customers can
track the booking status through the web pages. The numerous phone calls and endless
waiting is eliminated. All other operations are typical web commerce oriented, so system
functionality is well understood. The development and usage of this application is really
interesting one.
VI BCA 3
ONLINE EVENT MANAGEMENT SYSTEM
An SRS minimizes the time and effort required by developers to achieve desired goals and
also minimizes the development cost. A good SRS defines how an application will interact
with system hardware, other programs and human users in a wide variety of real-world
situations. Parameters such as operating speed, response time, availability, portability,
maintainability, footprint, security and speed of recovery from adverse events are evaluated.
The requirements of this web application (ems) developed by us is very well understood and
documented initially when the process started.Accordingly the hardware and software
requirements are chosen. The same can be referred in the next section of this report. This web
application runs in the Apache Tomcat Server, which can be accessed by web clients through
the Internet from anywhere in the world. The SRS parameters are adopted in this system,
with the detailed feasibility study. While developing, this system tested as the localhost,
through the Mozilla firefox browser. Also, few other popular web browsers are tested.
VI BCA 4
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 5
ONLINE EVENT MANAGEMENT SYSTEM
5. SOFTWARE PROFILE
Laboratory for Particle Physics (CERN) in late 1980’s. Developed by the World Wide
Web Consortium; HTML or the Hyper Text Markup Language, as its name suggests,
is a markup language for Web pages. Today, the most important component of any
web page is the text-based information that it contains. The markup tags of HTML
define the structure of the text-based information of a web page. HTML tags are used
to denote various text-based information of a webpage as paragraphs, headings, links,
bullet points etc. Various HTML tags can also be used to supplement the text with
images, forms and other objects. HTML tags are for browsing; they are meant for
interactions between humans and computers.
Hardware Interface:
Client side:
Processor: Intel Core i3.
RAM: 2GB.
VI BCA 6
ONLINE EVENT MANAGEMENT SYSTEM
Network Interface.
Server Side:
Processor: Intel Core i3.
RAM: 2GB.
Disk space: 2GB.
Software Interface
Client side:
Windows XP/ Vista/ Win 7.
Internet Explorer 6.0 or above
Network Interface.
Server Side:
Apache Tomcat Web Server 7.0.1.
Oracle 10g Database as Back End.
J2EE Framework.
VI BCA 7
ONLINE EVENT MANAGEMENT SYSTEM
October 1991
HTML Tags an informal CERN document listing eighteen HTML tags, was first
mentioned in public.
June 1992
First informal draft of the HTML DTD with seven subsequent revisions (July 15,
August 6, August 18, November 17, November 19, November 20, November 22)
November 1992
HTML DTD 1.1 (the first with a version number, based on RCS revisions, which start
with 1.1 rather than 1.0), an informal draft.
June 1993
Hypertext Markup Language was published by the IETF IIIR Working Group as an
Internet-Draft (a rough proposal for a standard). It was replaced by a second version
one month later, followed by six further drafts published by IETF itself that finally
led to HTML 2.0 in RFC1866
November 1993
HTML 3.0 was proposed as a standard to the IETF, but the proposal expired five
months later without further action. It included many of the capabilities that were in
Raggett's HTML+ proposal, such as support for tables, text flow around figures and
the display of
January 2008
VI BCA 8
ONLINE EVENT MANAGEMENT SYSTEM
Although its syntax closely resembles that of SGML, HTML5 has abandoned any
attempt to be an SGML application and has explicitly defined its own "html"
serialization, in addition to an alternative XML-based XHTML5 serialization.
Characteristics: -
XHTML Versions: -
XHTML 1.0, published January 26, 2000, as a W3C Recommendation, later revised
and republished August 1, 2002. It offers the same three variations as HTML 4.0 and
4.01, reformulated in XML, with minor restrictions.
XHTML 1.1 published May 31, 2001, as a W3C Recommendation. It is based on
XHTML 1.0 Strict, but includes minor changes, can be customized, is reformulated
using modules from Modularization of XHTML, which was published April 10, 2001,
as a W3C Recommendation.
XHTML 2.0 There is no XHTML 2.0 standard. XHTML 2.0 is only a draft document
and it is inappropriate to cite this document as other than work in progress. XHTML
VI BCA 9
ONLINE EVENT MANAGEMENT SYSTEM
2.0 is incompatible with XHTML 1.x and, therefore, would be more accurately
characterized as an XHTML-inspired new language than an update to XHTML 1.x.
XHTML5, which is an update to XHTML 1.x, is being defined alongside HTML5 in
the HTML5 draft.
VI BCA 10
ONLINE EVENT MANAGEMENT SYSTEM
JSP allows Java code and certain pre-defined actions to be interleaved with static web
markup content, with the resulting page being compiled and executed on the server to
deliver an HTML or XML document. The compiled pages and any dependent Java
libraries use Java bytecode rather than a native software format, and must therefore be
executed within a Java virtual machine (JVM) that integrates with the host operating
system to provide an abstract platform-neutral environment.
JSP syntax is a fluid mix of two basic content forms: scriptlet elements and markup.
Markup is typically standard HTML or XML, while scriptlet elements are delimited
blocks of Java code which may be intermixed with the markup. When the page is
requested the Java code is executed and its output is added, in situ, with the
surrounding markup to create the final page. JSPs must be compiled to Java bytecode
classes before they can be executed, but such compilation is needed only when a
change to the source JSP file has occurred.
VI BCA 11
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 12
ONLINE EVENT MANAGEMENT SYSTEM
5.3 SERVLET
A Servlet is a Java programming language class that is used to extend the capabilities
of servers that host applications access via a request-response programming model.
Although servlets can respond to any type of request, they are commonly used to
extend the applications hosted by web servers. For such applications, Java Servlet is a
Java class in Java EE that conforms to the Java Servlet API, a protocol by which a
Java class may respond to requests. They are not tied to a specific client-server
protocol, but are most often used with the HTTP protocol. Therefore, the word
"Servlet" is often used in the meaning of "HTTP Servlet".[2] Thus, a software
developer may use a servlet to add dynamic content to a Web server using the Java
platform. The generated content is commonly HTML, but may be other data such as
XML. Servlets are the Java counterpart to non-Java dynamic Web content
technologies such as CGI and ASP.NET. Servlets can maintain state in session
variables across many server transactions by using HTTP cookies, or URL rewriting.
VI BCA 13
ONLINE EVENT MANAGEMENT SYSTEM
Apache Tomcat is an open source software implementation of the Java Servlet and
JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications
are developed under the Java Community Process.
Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) is an open source
web server which means that it is free and is managed by a large team of volunteers, a
process that efficiently and effectively maintains the system and servlet container
developed by the Apache Software Foundation (ASF).
Tomcat implements the Java Servlet and the JavaServer Pages (JSP)
Specifications from Oracle Corporation, and provides a "pure Java"
HTTP web server environment for Java code to run.
VI BCA 14
ONLINE EVENT MANAGEMENT SYSTEM
5.5 ORACLE
Storage: -
The Oracle RDBMS stores data logically in the form of tablespaces and physically in
the form of data files. Tablespaces can contain various types of memory segments,
such as Data Segments, Index Segments, etc. Segments in turn comprise one or more
extents. Extents comprise groups of contiguous data blocks. These data blocks form
the basic units of data storage. There are also partitioning feature available on newer
versions of the database, which allows tables to be partitioned based on different set
of keys.
Oracle database management tracks its computer data storage with the help of
information stored in the SYSTEM tablespace. The SYSTEM tablespace contains the
data dictionary and often indexes and clusters. A data dictionary contains of a special
collection of tables that contains information about all user-objects in the database.
Since version 8i, the Oracle RDBMS also supports “locally managed” tablespaces
VI BCA 15
ONLINE EVENT MANAGEMENT SYSTEM
which can store space management information in bitmaps in their own headers rather
than in the SYSTEM tablespace. Version 10g and later introduced the SYSAUX
tablespace which contains some of the tables formerly in the SYSTEM tablespace.
Database Schema: -
VI BCA 16
ONLINE EVENT MANAGEMENT SYSTEM
Functions of DBMS:-
DBMS is a general purpose software system that performs the following functions:-
Defining a database.
Maintaining a database.
VI BCA 17
ONLINE EVENT MANAGEMENT SYSTEM
DBMS Architecture:-
1. The Internal level: - This contains of an internal schema, which describes the
physical storage structure of the database. It is the lowest level of abstraction. It does
not hide the storage details. It contains the definition of the stored record, the method
of representing the data fields and the access aids used. This internal schema uses a
physical data model and describes the complete details of data storage and access
paths for the database. It is also called the physical schema.
2. The Conceptual level: - This has a conceptual schema, which describes the structures
of a database for a group of users. This schema hides the storage details from the user
and it includes description of entities, data types, relationships, user operations and
constraints. The description of data at this level is in a format independent of its
physical representation.
3. The External level: - This has a number of external schemas or user views. Each
external schema describes the part of the database that a particular user group is
interested in and hides all the other details from this group. This is at a highest level of
database absorption.
VI BCA 18
ONLINE EVENT MANAGEMENT SYSTEM
Client-Server Architecture: -
Two-tier
Three-tier
N-tier
In two tier architecture, the software components are distributed over two systems: the
client and the server. This architecture has two forms as: logical two-tier and physical
two-tier.
VI BCA 19
ONLINE EVENT MANAGEMENT SYSTEM
The above figure shows the physical client/server architecture. Some machines like
diskless workstations, or workstations/PCs with disks that have only client software
installed would be only client sites. Other machines would be dedicated servers. Some
other machines would have both client and server functionality. In relational DBMS,
user interface and application programs can run at client side. The query and
transactions functionality are included on the server side. A client program can send
query and transaction requests using the ODBC API which are then processed at the
server site. The query results are sending back to the client program which can
process or display the results needed.
VI BCA 20
ONLINE EVENT MANAGEMENT SYSTEM
With the emergence of World Wide Web, many web applications use the three-tier
architecture. There is an intermediate layer between the client and the database server
called the application server or the web server. The web server plays the intermediary
role by storing business rules that are used to access data from the database server. It
checks the client’s credentials before forwarding a request to the database server. The
intermediate server accepts requests from the client, process the request and sends
database commands to the database server, and then acts as a conduit for passing
processed data from the database server to the clients, where it may be processed
further.
N-Tier Architecture: -
In N-Tier architecture, the middle tier is allowed to have multiple application objects
rather than a single application. Each of these application objects must have a well-
defined interface which allows them to contact and communication with one another.
An interface actually brings an idea of contract. That is, each object states through its
interface that it will accept certain parameters and return a specific set of results.
Application objects use their interfaces to do business processing. With and N-Tier
architecture, one can have multiple applications using a common set of business
objects across an organization. This promotes the standardization of business
practices by creating a single set of business functions for the entire organization to
VI BCA 21
ONLINE EVENT MANAGEMENT SYSTEM
access. If a particular business rule changes, then changes have to be made to only the
business object and if need, to its interface also.
Normalization: -
Normalization of data can be looked upon as a process of analyzing the given relation
schemas based on their functional dependencies and primary keys to achieve the
desirable properties of minimizing redundancy, insertion, deletion and update
anomalies.
First Normal Form: - It states that the domains of attributes must include only atomic
values and that the value of any attribute in a tuple must be single value from the
domain of that attribute. It disallows a set of values, a tuple of values, or a
combination of both as an attribute value for a single tuple.
Fourth Normal Form: - Under this, a record type should not contain two or more
independent multi-valued facts about an entity. In addition, the record must satisfy
third normal form.
Fifth Normal Form: - It also deals with multi-valued facts. Here, the record must
satisfy the fourth normal form.
VI BCA 22
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 23
ONLINE EVENT MANAGEMENT SYSTEM
Cascading Style Sheets (CSS) is a style sheet language used to describe the
presentation semantics (the look and formatting) of a document written in a markup
language. It’s most common application is to style web pages written in HTML and
XHTML, but the language can also be applied to any kind of XML document,
including plain XML, SVG and XUL.
CSS defines HOW HTML elements are to be displayed. Styles are normally saved in
external .css files. External style sheets enable you to change the appearance and
layout of all the pages in a Web site, just by editing one single file! The CSS files
referenced in the HTML page.
A CSS rule has two main parts: a selector, and one or more declarations:
VI BCA 24
ONLINE EVENT MANAGEMENT SYSTEM
The selector is normally the HTML element you want to style. Each declaration
consists of a property and a value. The property is the style attribute you want to
change. Each property has a value.
Following example formats a paragraph in an HTML document
p
{
color:red;
text-align:center;
}
VI BCA 25
ONLINE EVENT MANAGEMENT SYSTEM
5.8 JAVASCRIPT
JavaScript was originally developed by Brendan Eich of Netscape under the name
Mocha, which was later renamed to LiveScript, and finally to JavaScript.
The primary use of JavaScript is to write functions that are embedded in or included
from HTML pages and that interact with the Document Object Model (DOM) of the
page. Some simple examples of this usage are:
i) Opening or popping up a new window with programmatic control over the
size, position, and attributes of the new window (e.g. whether the menus,
toolbars, etc. are visible).
ii) Validating input values of a web form to make sure that they are acceptable
before being submitted to the server.
iii) Changing images as the mouse cursor moves over them: This effect is often
used to draw the user's attention to important links displayed as graphical
elements.
EXAMPLE:
a) A simple recursive function:
function factorial(n)
{
if (n === 0)
{
return 1;
}
return n * factorial(n - 1);
}
VI BCA 26
ONLINE EVENT MANAGEMENT SYSTEM
6. SYSTEM DESIGN
VI BCA 27
ONLINE EVENT MANAGEMENT SYSTEM
phone varchar2(11),
address varchar2(50),
companyname varchar2(20),
balanceamt number(10,2)
);
VI BCA 28
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 29
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 30
ONLINE EVENT MANAGEMENT SYSTEM
Sequences Used
-----------------------------------------------------------------------------------------------------------
VI BCA 31
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 32
ONLINE EVENT MANAGEMENT SYSTEM
6.4 ER DIAGRAM
VI BCA 33
ONLINE EVENT MANAGEMENT SYSTEM
7. TESTING
Compatibility of our web site is very important testing aspect. See which compatibility
test to be executed:
Browser compatibility
Operating system compatibility
Mobile browsing
Printing options
Browser compatibility:
Some applications are very dependent on browsers. Different browsers have different
configurations and settings that your web page should be compatible with. Your web site
coding should be cross browser platform compatible. If you are using java scripts or
AJAX calls for UI functionality, performing security checks or validations then give more
stress on browser compatibility testing of your web application. Test web application on
different browsers like Internet explorer, Firefox, Netscape navigator, AOL, Safari,
Opera, Chrome browsers with different versions.
OS compatibility:
Some functionality in your web application is may not be compatible with all operating
systems. All new technologies used in web development like graphics designs, interface
calls like different API’s may not be available in all Operating Systems.
Test your web application on different operating systems like Windows, Unix, MAC,
Linux, Solaris with different OS flavors.
VI BCA 34
ONLINE EVENT MANAGEMENT SYSTEM
Sl.No
Test Case Done Action taken
.
1 Invalid user credentials Redirected to error page.
entered Customer of Admin main
page not shown.
2 Incomplete form entry in the Users are prompted to
registration and few other complete the page to proceed
pages. next.
3 Illegal data entry. E.g., amount All such errors are captured
entered in negative values. and prompted accordingly so
Phone numbers out of range, that users will provide only
etc., the legal input to the system.
4 Invalid credit card number Captured and prompted the
entry. user to enter only the valid
credit card number.
5 Incorrect ClientID entry Error message notified to the
Client ID.
VI BCA 35
ONLINE EVENT MANAGEMENT SYSTEM
8. SCREENS
VI BCA 36
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 37
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 38
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 39
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 40
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 41
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 42
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 43
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 44
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 45
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 46
ONLINE EVENT MANAGEMENT SYSTEM
VI BCA 47
ONLINE EVENT MANAGEMENT SYSTEM
9. SAMPLE CODES
REGISTRATION.HTML
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function checkForEmpty(form)
{
cn = document.regform.mname.value;
caddr = document.regform.maddress.value;
phno = document.regform.mphone.value;
em = document.regform.memail.value;
VI BCA 48
ONLINE EVENT MANAGEMENT SYSTEM
x = charAt(i);
if(x >= 0 && x <= 9)
{
alert("please enter only alphabet");
document.regform.mname.value= "";
//return false;
}
}
// return true;
}
function checkPhno()
{
var retval = true;
var pno = document.regform.mphone.value;
var stripped = pno.replace(/[\(\)\.\-\ ]/g, '');
//strip out acceptable non-numeric characters
if (isNaN(parseInt(stripped))) {
alert("The phone number contains illegal characters.");
document.regform.mphone.value="";
retval = false;
}
if(pno.length != 10)
{
alert("Illegal length");
document.regform.mphone.value="";
retval = false;
}
return retval;
}
function emailValid()
{
var aemail = document.regform.memail.value;
VI BCA 49
ONLINE EVENT MANAGEMENT SYSTEM
}
if((aemail.charAt(len-2)=='@')||(aemail.charAt(len-2)=='.'))
{
alert ("Invalid email. Please enter email like [email protected]");
document.regform.memail.value="";
return false
}
//count number of @ occurrences and number of dot occurrences
count=0
dotcount=0
for (i=0; i< aemail.length; i++)
{
if(aemail.charAt(i)=='@')
count++
if(aemail.charAt(i)=='.')
dotcount++
VI BCA 50
ONLINE EVENT MANAGEMENT SYSTEM
}
//if @ or dot occurs not once display warning and return false
if((count !=1)||(dotcount !=1))
{
alert ("Invalid email. Please enter email like [email protected]");
document.regform.memail.value="";
return false
}
return true
}
function isAlpha(parm,num)
{
//var parm = document.f1.T1.value;
var lwr = 'abcdefghijklmnopqrstuvwxyz .';
var upr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
return isValid(parm,num,lwr+upr);
}
function isValid(parm,num,val) {
if (parm == "")
{
alert("Please enter text");
return false;
}
for (i=0; i<parm.length; i++) {
if (val.indexOf(parm.charAt(i),0) == -1)
{
alert("please enter only alphabet");
if(num==1)
document.regform.mname.value="";
return false;
}
VI BCA 51
ONLINE EVENT MANAGEMENT SYSTEM
}
return true;
}
function checkfill()
{
var ele;
var flag=true;
var ecount=document.regform.elements.length;
for(i=0;i<ecount;i++)
{
ele=document.regform.elements[i].value;
if(ele.length==0)
{
window.alert("Please fill all fields");
flag=false;
break;
}
}
return flag;
}
</script>
<style type="text/css">
td,a,h1
{
color: white;
}
a:hover
{
color: yellow;
}
</style>
</head>
<body background="rbg8.jpg">
VI BCA 52
ONLINE EVENT MANAGEMENT SYSTEM
<center><h1>REGISTRATION FORM</h1>
<hr/>
<form name="regform" action="regprocess.jsp" method="post" onsubmit="return
checkfill();">
<table width="60%" >
<tr>
<td >
<table>
<tr><td>
<img src="join.png" />
</td>
</tr>
</table></td>
<td>
<table>
<tr> <td>Name</td>
<td><input type="text" name="mname" value="" onblur="checkNum1()"/>
</td></tr>
<tr> <td>Address</td>
<td><input type="text" name="maddress" value=""/>
</td></tr>
<tr> <td>Email</td>
<td><input type="text" name="memail" value="" onblur="emailValid()"/>
</td></tr>
<tr> <td>Phone</td>
<td><input type="text" name="mphone" value="" onblur="checkPhno()" />
</td></tr>
<tr> <td>Company Details</td>
<td><input type="text" name="mcompanydetails" value=""/>
</td></tr>
<tr><td><input type="submit" name="s1" value="Register"/>
</td><td><input type="reset" name="r1" value="clear"/>
</td>
VI BCA 53
ONLINE EVENT MANAGEMENT SYSTEM
</tr>
</table>
</tr>
</table>
</form>
</center>
</body>
</html>
REGISTRATION.JSP
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean class="emspack.PasswordBean" id="pb" scope="request"></jsp:useBean>
<%@page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
String un = request.getParameter("mname");
String uadr = request.getParameter("maddress");
String uem = request.getParameter("memail");
String uph = request.getParameter("mphone");
String ucomdet = request.getParameter("mcompanydetails");
String pwd = pb.genPwd();
String uid = "emsuser";
Connection c = null;
Statement s = null;
ResultSet r = null;
VI BCA 54
ONLINE EVENT MANAGEMENT SYSTEM
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
c = DriverManager.getConnection("jdbc:odbc:sspemsdsn","scott","tiger");
s = c.createStatement();
r = s.executeQuery("select userseq.nextval from dual");
while(r.next())
{
uid += r.getInt(1);
}
s = c.createStatement();
s.executeUpdate("insert into emsclients values('" + uid + "','" + un + "','" + uem +
"','" + uph + "','" + uadr + "','" + ucomdet + "',0)");
s = c.createStatement();
s.executeUpdate("insert into emslogin values('" + uid + "','" + pwd + "','client')");
%>
<h1>Your registration is confirmed. Welcome to EMS</h1>
<hr />
<h2>Your user name is <%= uid %></h2>
<h2>Your password is <%= pwd %></h2>
<h3><a href="login.html">CLICK HERE TO LOGIN</a></h3>
<% }
catch(Exception e)
{
%>
<h1><%= e %> </h1>
<% }
%>
</body>
</html>
VI BCA 55
ONLINE EVENT MANAGEMENT SYSTEM
REGISTRATION SERVLET
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import emspack.UserCreation;
/**
*
* @author admin
*/
public class UserCreServ extends HttpServlet {
/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
/* TODO output your page here
VI BCA 56
ONLINE EVENT MANAGEMENT SYSTEM
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet UserCreServ</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet UserCreServ at " + request.getContextPath () + "</h1>");
out.println("</body>");
out.println("</html>");
*/
} finally {
out.close();
}
}
VI BCA 57
ONLINE EVENT MANAGEMENT SYSTEM
double s6=Double.parseDouble(request.getParameter("T6"));
String s7=request.getParameter("T7");
UserCreation ua=new UserCreation();
ua.userCreation(s1, s2, s3, s4, s5,s6,s7);
String eid=ua.getEmpId();
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet UserCreServ</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>EMPLOYEE ID: " + eid + "</h1><br>");
out.println("</body>");
out.println("</html>");
/**
* Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Returns a short description of the servlet.
* @return a String containing servlet description
*/
VI BCA 58
ONLINE EVENT MANAGEMENT SYSTEM
@Override
public String getServletInfo() {
return "Short description";
}// </editor-fold>
}
REGISTRATION BEAN
package emspack;
import java.sql.*;
/**
*
* @author admin
*/
public class UserCreation {
Connection con = null;
Statement st = null;
Statement st1 = null;
ResultSet rs = null;
int id=0;
String eid = "";
public void userCreation(String name, String gender, String email, String addr,String
phno , double sal, String jobcat)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:sspemsdsn","scott","tiger");
st = con.createStatement();
rs=st.executeQuery("select sspempidseq.nextval from dual");
while(rs.next())
{
id=Integer.parseInt(rs.getString(1));
}
VI BCA 59
ONLINE EVENT MANAGEMENT SYSTEM
st1 = con.createStatement();
st1.executeUpdate("insert into emsemployee values('" + eid + "','" + name + "','"
+ gender + "','" + email + "','" + addr + "','" + phno + "'," + sal + ",'" + jobcat +
"','AVAILABLE')");
}
catch(Exception e)
{
System.out.println(e);
}
}
public String getEmpId()
{
return(eid);
}
}
VI BCA 60
ONLINE EVENT MANAGEMENT SYSTEM
PASSWORD BEAN
package emspack;
import java.util.Random;
/**
*
* @author admin
*/
public class PasswordBean {
public String genPwd()
{
String
alphanumerals="ABCDEFGHIJKLMNOPQRSTRUVWXYZabcdefghijklmnopqrstuvwxyz0
123456789";
/**
VI BCA 61
ONLINE EVENT MANAGEMENT SYSTEM
*
* @author admin
*/
public class EventCart {
protected Hashtable decoration = new Hashtable();
protected Hashtable music = new Hashtable();
protected Hashtable photo = new Hashtable();
protected Hashtable makeup = new Hashtable();
protected Hashtable funiture = new Hashtable();
protected Hashtable catering = new Hashtable();
VI BCA 62
ONLINE EVENT MANAGEMENT SYSTEM
int price=0;
int units = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
if(itemname.equals(tmpItem[0]))
{
units = Integer.parseInt(tmpItem[2]);
if(qty >= units)
removeItemCatering(itemname);
else
{
//id = tmpItem[0];
name=tmpItem[0];
price=Integer.parseInt(tmpItem[1]);
units = units - qty;
removeItemCatering(itemname);
addItemCatering(name,price,units);
}
break;
}
}
}
public void updateQuantityCatering(String itemId, int quantity) {
if (catering.contains(itemId)) {
String[] tmpItem = (String[])catering.get(itemId);
tmpItem[3] = Integer.toString(quantity);
}
}
VI BCA 63
ONLINE EVENT MANAGEMENT SYSTEM
return catering.elements();
}
Enumeration e = catering.elements();
String[] tmpItem;
int totalCost = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
totalCost += Integer.parseInt(tmpItem[1]) * Integer.parseInt(tmpItem[2]);
}
return totalCost;
}
Enumeration e = catering.elements();
int num = 0;
while (e.hasMoreElements()) {
num++;
}
return num;
}
VI BCA 64
ONLINE EVENT MANAGEMENT SYSTEM
funiture.remove(itemId);
}
}
public void deductItemFurniture(String itemid, int qty)
{
Enumeration e = funiture.elements();
String[] tmpItem;
String id="";
String name="";
int price=0;
int units = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
if(itemid.equals(tmpItem[0]))
{
units = Integer.parseInt(tmpItem[3]);
if(qty >= units)
removeItemFurniture(itemid);
else
{
id = tmpItem[0];
name=tmpItem[1];
VI BCA 65
ONLINE EVENT MANAGEMENT SYSTEM
price=Integer.parseInt(tmpItem[2]);
units = units - qty;
removeItemFurniture(itemid);
addItemFurniture(id,name,price,units);
}
break;
}
}
}
public void updateQuantityFruniture(String itemId, int quantity) {
if (funiture.contains(itemId)) {
String[] tmpItem = (String[])funiture.get(itemId);
tmpItem[3] = Integer.toString(quantity);
}
}
Enumeration e = funiture.elements();
String[] tmpItem;
int totalCostf = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
totalCostf += Integer.parseInt(tmpItem[1]) * Integer.parseInt(tmpItem[2]);
}
return totalCostf;
VI BCA 66
ONLINE EVENT MANAGEMENT SYSTEM
Enumeration e = funiture.elements();
//String[] tmpItem;
int numf = 0;
while (e.hasMoreElements()) {
numf++;
}
return numf;
}
photo.remove(itemname);
}
}
public void deductItemPhoto(String itemname, int qty)
VI BCA 67
ONLINE EVENT MANAGEMENT SYSTEM
{
Enumeration e = photo.elements();
String[] tmpItem;
String id="";
String name="";
int price=0;
int units = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
if(itemname.equals(tmpItem[0]))
{
units = Integer.parseInt(tmpItem[2]);
if(qty >= units)
removeItemPhoto(itemname);
else
{
name=tmpItem[0];
price=Integer.parseInt(tmpItem[1]);
units = units - qty;
removeItemPhoto(itemname);
addItemPhoto(name,price,units);
}
break;
}
}
}
public void updateQuantityPhoto(String itemId, int quantity) {
if (photo.contains(itemId)) {
String[] tmpItem = (String[])photo.get(itemId);
tmpItem[3] = Integer.toString(quantity);
VI BCA 68
ONLINE EVENT MANAGEMENT SYSTEM
}
}
Enumeration e = photo.elements();
String[] tmpItem;
int totalCostp = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
totalCostp += Integer.parseInt(tmpItem[1]) * Integer.parseInt(tmpItem[2]);
}
return totalCostp;
}
Enumeration e = photo.elements();
int nump = 0;
while (e.hasMoreElements()) {
nump++;
}
return nump;
}
VI BCA 69
ONLINE EVENT MANAGEMENT SYSTEM
public void addItemDecoration(String itemtype, String itemname, int rate, int qty) {
}
/*public void deductItemDecoration(String itemname, int qty)
{
Enumeration e = decoration.elements();
String[] tmpItem;
String id="";
String name="";
int price=0;
int units = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
if(itemname.equals(tmpItem[0]))
{
units = Integer.parseInt(tmpItem[2]);
if(qty >= units)
removeItemDecoration(itemname);
VI BCA 70
ONLINE EVENT MANAGEMENT SYSTEM
else
{
name=tmpItem[0];
price=Integer.parseInt(tmpItem[1]);
units = units - qty;
removeItemDecoration(itemname);
addItemDecoration(name,price,units);
}
break;
}
}
}*/
/*public void updateQuantityDecoration(String itemId, int quantity) {
if (decoration.contains(itemId)) {
String[] tmpItem = (String[])decoration.get(itemId);
tmpItem[3] = Integer.toString(quantity);
}
}*/
Enumeration e = decoration.elements();
String[] tmpItem;
int totalCostd = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
VI BCA 71
ONLINE EVENT MANAGEMENT SYSTEM
Enumeration e = decoration.elements();
int numd = 0;
while (e.hasMoreElements()) {
numd++;
}
return numd;
}
VI BCA 72
ONLINE EVENT MANAGEMENT SYSTEM
{
music.remove(itemname);
break;
}
}
}
/*public void deductItemDecoration(String itemname, int qty)
{
Enumeration e = decoration.elements();
String[] tmpItem;
String id="";
String name="";
int price=0;
int units = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
if(itemname.equals(tmpItem[0]))
{
units = Integer.parseInt(tmpItem[2]);
if(qty >= units)
removeItemDecoration(itemname);
else
{
name=tmpItem[0];
price=Integer.parseInt(tmpItem[1]);
units = units - qty;
removeItemDecoration(itemname);
addItemDecoration(name,price,units);
}
break;
VI BCA 73
ONLINE EVENT MANAGEMENT SYSTEM
}
}
}*/
/*public void updateQuantityDecoration(String itemId, int quantity) {
if (decoration.contains(itemId)) {
String[] tmpItem = (String[])decoration.get(itemId);
tmpItem[3] = Integer.toString(quantity);
}
}*/
Enumeration e = music.elements();
String[] tmpItem;
int totalCostm = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
totalCostm += Integer.parseInt(tmpItem[1]);
}
return totalCostm;
}
Enumeration e = music.elements();
int numm = 0;
VI BCA 74
ONLINE EVENT MANAGEMENT SYSTEM
while (e.hasMoreElements()) {
numm++;
}
return numm;
}
if (makeup.containsKey(itemname))
{
makeup.remove(itemname);
}
public void deductItemMakeup(String itemname, int qty)
{
Enumeration e = makeup.elements();
String[] tmpItem;
String id="";
String name="";
int price=0;
VI BCA 75
ONLINE EVENT MANAGEMENT SYSTEM
int units = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
if(itemname.equals(tmpItem[0]))
{
units = Integer.parseInt(tmpItem[1]);
if(qty >= units)
removeItemMakeup(itemname);
else
{
name=tmpItem[0];
price=Integer.parseInt(tmpItem[2]);
units = units - qty;
removeItemMakeup(itemname);
addItemMakeup(name, units, price);
}
break;
}
}
}
/*public void updateQuantityDecoration(String itemId, int quantity) {
if (decoration.contains(itemId)) {
String[] tmpItem = (String[])decoration.get(itemId);
tmpItem[3] = Integer.toString(quantity);
}
}*/
VI BCA 76
ONLINE EVENT MANAGEMENT SYSTEM
Enumeration e = makeup.elements();
String[] tmpItem;
int totalCostma = 0;
while (e.hasMoreElements())
{
tmpItem = (String[])e.nextElement();
totalCostma += Integer.parseInt(tmpItem[1]) * Integer.parseInt(tmpItem[2]);
}
return totalCostma;
}
Enumeration e = makeup.elements();
int numma = 0;
while (e.hasMoreElements()) {
numma++;
}
return numma;
}
VI BCA 77
ONLINE EVENT MANAGEMENT SYSTEM
CONCLUSION:
This web application is easy to use and user-friendly software. End-users are
expected to have some experience in using windows applications and browsing
the Internet. Event booking can be done through web is a very useful module in
this application. Clients can get appropriate information with less efforts and
time.
FUTURE ENHANCEMENTS:
VI BCA 78
ONLINE EVENT MANAGEMENT SYSTEM
11. BIBLIOGRAPHY
1) Books Referred:
2) Websites referred:
www.w3schools.com/html
www.htmlcodetutorial.com/
http://en.wikipedia.org
VI BCA 79