Crime File MGMT Project
Crime File MGMT Project
Crime File MGMT Project
Management
Modules
Visitors
Registered Users
Administrator
View Hotnews: This module help the visitor to see the latest hotnews which can
updated by the admin.
Add Complaint: This module help the user to report online complaints.
Add Crime report: This module help the user to report online crimes.
Add Missing person: This module help the user to report online missing persons
details also we have to add photos of missing person using hetrogenious database.
View Missing persons: This module help the user to view all the missing person
details.
View Mostwanted persons: This module help the user to view all mostwanted
persons which can be given by the administrator.
Edit Complaint: This module help the user to edit his complaint details.
Edit Account: This module help the user to update his or her profile.
View complaint status: This module allows us to view the status of all complaint
that you have posted earlier.
View crime status: This module allows us to view the status of the all crimes that
you have posted earlier.
Add and View feedback: This module helps the user to add and view feedbacks
Chat: This module help the user to chat with the administrator or with other
registered users
Mail: This module helps the user to send mail to the administrator.
The administrator module includes,
View and reply user complaint: This module helps the admin to view and reply
user’s complaint details
View and reply user crimes: This module helps the admin to view and reply user’s
crimes details
New admin: This module used for add new admin
Add and delete latest hotnews: This module helps the admin to add and delete latest
hotnews.
View and delete user’s feedback: This module helps the amin to add and delete
user’s feedback
Add, delete and view mostwanted persons: This module helps the amin to add,
delete and view mostwanted person details
Add, delete and view missing persons: This module helps the amin to add, delete
and view missing person details
Add and view Criminal registeration: This module helps the amin to add and view
criminal registrations
Add and view FIR: This module helps the amin to add and view Fir reports
Add and view history sheet: This module helps the amin to add and view history
reports
View and delete all complaint reply: This module helps the amin to view and delete
complaint reply.
Add and view prisoner report: This module helps the amin to add and prisoner
reports
Change password: This module helps the amin to update his or her password
Chat: This module help the admin to chat with the administrator or with other
registered users
Mail: This module helps the user to send mail to the user.
2. Organization overview
Srishti Systems is a Software and Web Development Company which provides
technology solutions and professional software for clients worldwide. Srishti focus on
quality, innovations and leverage deep industry and functional expertise to help customers
to transform their highest-value business processes.
Our in-depth technical knowledge coupled with industry experience and the unique
methodology enables us to successfully deliver the services to the clients worldwide. We
are driven to attain our customer's highest satisfaction by providing business experts with
underlying delivery expertise in Enterprise Technology, Methodologies and
Implementations. Our core competencies are designed to effectively deliver results to our
customers.
Srishti Training Center provides premier instructor-led IT training through a
carefully balanced blend of hands-on lab exercises and lecture. Training is conducted in the
comfortable classrooms at our training facility and client locations. Experienced instructors
make training productive and enjoyable. Customizable courses and computer lab offer
additional options for your training needs. We also provide project guidance for all
academic students which help them to build a successful portfolio and start their IT journey
successfully.
3. Introduction
System analysis is a process of gathering and interpreting facts,
diagnosing problems and the information to recommend improvements on the system. It is
a problem solving activity that requires intensive communication between the system users
and system developers. System analysis or study is an important phase of any system
development process. The system is studied to the minutest detail and analyzed. The
system analyst plays the role of the interrogator and dwells deep into the working of the
present system. The system is viewed as a whole and the input to the system are identified.
The outputs from the organizations are traced to the various processes. System analysis is
concerned with becoming aware of the problem, identifying the relevant and decisional
variables, analyzing and synthesizing the various factors and determining an optimal or at
least a satisfactory solution or program of action.
A detailed study of the process must be made by various techniques like
interviews, questionnaires etc. The data collected by these sources must be scrutinized to
arrive to a conclusion. The conclusion is an understanding of how the system functions.
This system is called the existing system. Now the existing system is subjected to close
study and problem areas are identified. The designer now functions as a problem solver and
tries to sort out the difficulties that the enterprise faces. The solutions are given as
proposals. The proposal is then weighed with the existing system analytically and the best
one is selected. The proposal is presented to the user for an endorsement by the user. The
proposal is reviewed on user request and suitable changes are made. This is loop that ends
as soon as the user is satisfied with proposal.
Preliminary study is the process of gathering and interpreting facts, using the
information for further studies on the system. Preliminary study is problem solving activity
that requires intensive communication between the system users and system developers. It
does various feasibility studies. In these studies a rough figure of the system activities can
be obtained, from which the decision about the strategies to be followed for effective
system study and analysis can be taken.
Here in the Email to Fax server project, a detailed study of existing system is carried
along with all the steps in system analysis. An idea for creating a better project was carried
and the next steps were followed.
In the existing system only we can see the details of particular information about
the police stations in our state, the existing system has more workload for the authorized
person, but in the case of Proposed System, the user can registered in our site and send the
crimereport and complaint about a particular city or person.
The system is very simple in design and to implement. The system requires very
low system resources and the system will work in almost all configurations. It has got
following features
Ensure data accuracy’s.
Proper control of the higher officials.
Reduce the damages of the machines.
Minimize manual data entry.
Minimum time needed for the various processing.
Greater efficiency.
Better service.
User friendliness and interactive.
Minimum time required.
Feasibility study is made to see if the project on completion will serve the purpose
of the organization for the amount of work, effort and the time that spend on it. Feasibility
study lets the developer foresee the future of the project and the usefulness. A feasibility
study of a system proposal is according to its workability, which is the impact on the
organization, ability to meet their user needs and effective use of resources. Thus when a
new application is proposed it normally goes through a feasibility study before it is
approved for development.
The document provide the feasibility of the project that is being designed and lists
various areas that were considered very carefully during the feasibility study of this project
such as Technical, Economic and Operational feasibilities. The following are its features:
The system must be evaluated from the technical point of view first. The assessment
of this feasibility must be based on an outline design of the system requirement in the terms
of input, output, programs and procedures. Having identified an outline system, the
investigation must go on to suggest the type of equipment, required method developing the
system, of running the system once it has been designed.
Technical issues raised during the investigation are:
The project should be developed such that the necessary functions and
performance are achieved within the constraints. The project is developed within latest
technology. Through the technology may become obsolete after some period of time, due
to the fact that never version of same software supports older versions, the system may still
be used. So there are minimal constraints involved with this project. The system has been
developed using Java the project is technically feasible for development.
The developing system must be justified by cost and benefit. Criteria to ensure that
effort is concentrated on project, which will give best, return at the earliest. One of the
factors, which affect the development of a new system, is the cost it would require.
The following are some of the important financial questions asked during
preliminary investigation:
Since the system is developed as part of project work, there is no manual cost to spend
for the proposed system. Also all the resources are already available, it give an indication
of the system is economically possible for development.
The project would be beneficial because it satisfies the objectives when developed and
installed. All behavioral aspects are considered carefully and conclude that the project is
behaviorally feasible.
4. Introduction
Design is the first step into the development phase for any engineered product or
system. Design is a creative process. A good design is the key to effective system. The term
“design” is defined as “the process of applying various techniques and principles for the
purpose of defining a process or a system in sufficient detail to permit its physical
realization”. It may be defined as a process of applying various techniques and principles
for the purpose of defining a device, a process or a system in sufficient detail to permit its
physical realization. Software design sits at the technical kernel of the software engineering
process and is applied regardless of the development paradigm that is used. The system
design develops the architectural detail required to build a system or product. As in the case
of any systematic approach, this software too has undergone the best possible design phase
fine tuning all efficiency, performance and accuracy levels. The design phase is a transition
from a user oriented document to a document to the programmers or database personnel.
System design goes through two phases of development: Logical and Physical Design.
The logical flow of a system and define the boundaries of a system. It includes the
following steps:
Reviews the current physical system – its data flows, file content, volumes ,
Frequencies etc.
Prepares output specifications – that is, determines the format, content and
Frequency of reports.
Prepares input specifications – format, content and most of the input functions.
Prepares edit, security and control specifications.
Specifies the implementation plan.
Prepares a logical design walk through of the information flow, output, input,
Controls and implementation plan.
Reviews benefits, costs, target dates and system constraints.
Physical system produces the working systems by define the design specifications that
tell the programmers exactly what the candidate system must do. It includes the following
steps.
Design/Specification activities:
Concept formulation.
Problem understanding.
High level requirements proposals.
Feasibility study.
Requirements engineering.
Architectural design.
Visitors
Registered Users
Administrator
View Hotnews: This module help the visitor to see the latest hotnews which can
updated by the admin.
The registered user module includes,
Add Complaint: This module help the user to report online complaints.
Add Crime report: This module help the user to report online crimes.
Add Missing person: This module help the user to report online missing persons
details also we have to add photos of missing person using hetrogenious database.
View Missing persons: This module help the user to view all the missing person
details.
View Mostwanted persons: This module help the user to view all mostwanted
persons which can be given by the administrator.
Edit Complaint: This module help the user to edit his complaint details.
Edit Account: This module help the user to update his or her profile.
View complaint status: This module allows us to view the status of all complaint
that you have posted earlier.
View crime status: This module allows us to view the status of the all crimes that
you have posted earlier.
Add and View feedback: This module helps the user to add and view feedbacks
Chat: This module help the user to chat with the administrator or with other
registered users
Mail: This module helps the user to send mail to the administrator.
View and reply user complaint: This module helps the admin to view and reply
user’s complaint details
View and reply user crimes: This module helps the admin to view and reply user’s
crimes details
New admin: This module used for add new admin
Add and delete latest hotnews: This module helps the admin to add and delete latest
hotnews.
View and delete user’s feedback: This module helps the amin to add and delete
user’s feedback
Add, delete and view mostwanted persons: This module helps the amin to add,
delete and view mostwanted person details
Add, delete and view missing persons: This module helps the amin to add, delete
and view missing person details
Add and view Criminal registeration: This module helps the amin to add and view
criminal registrations
Add and view FIR: This module helps the amin to add and view Fir reports
Add and view history sheet: This module helps the amin to add and view history
reports
View and delete all complaint reply: This module helps the amin to view and delete
complaint reply.
Add and view prisoner report: This module helps the amin to add and prisoner
reports
Change password: This module helps the amin to update his or her password
Chat: This module help the admin to chat with the administrator or with other
registered users
Mail: This module helps the user to send mail to the user.
Methods for preparing input validations and steps to follow when error occur.
OBJECTIVES
The output form of an information system should accomplish one or more of the
following objectives.
o Convey information about past activities, current status or projections of the
Future.
o Signal important events, opportunities, problems, or warnings.
o Trigger an action.
o Confirm an action.
Administrator
User
Solutions, Feedback
Add Solutions
View Feedback
User
Feedback
Mortem Details
View complaints
Administrator Complaints
Complaint Details
Postmortem Management
Mortem details
Mortem Details
Reports
View Reports
User
Registration
Registration
User
Username/Password
Username/Password
Login
Login
Verify
Complaints
Complaint Registration
Complaints
Complaint Registration
Complaint
Login
Complaint Details
Complaint ID
Complaint Status
Complaint Status
Complaint Status
The database design is a two level process. In the first step, user requirements
are gathered together and a database is designed which will meet these requirements as
clearly as possible. This step is called Information Level Design and it is taken independent
of any individual DBMS.
In the second step, this Information level design is transferred into a design for the
specific DBMS that will be used to implement the system in question. This step is called
Physical Level Design, concerned with the characteristics of the specific DBMS that will
be used. A database design runs parallel with the system design. The organization of the
data in the database is aimed to achieve the following two major objectives.
o Data Integrity
o Data independence
Normalization is the process of decomposing the attributes in an application, which
results in a set of tables with very simple structure. The purpose of normalization is to
make tables as simple as possible. Normalization is carried out in this system for the
following reasons.
To structure the data so that there is no repetition of data , this helps in
saving.
To permit simple retrieval of data in response to query and report request.
To simplify the maintenance of the data through updates, insertions,
Deletions.
To reduce the need to restructure or reorganize data which new application
Requirements arise.
RELATIONSHIPS:
o Table relationships are established using Key. The two main keys of prime
importance are Primary Key & Foreign Key. Entity Integrity and Referential
Integrity Relationships can be established with these keys.
o Entity Integrity enforces that no Primary Key can have null values.
o Referential Integrity enforces that no Primary Key can have null values.
o Referential Integrity for each distinct Foreign Key value, there must exist a
matching Primary Key value in the same domain. Other key are Super Key and
Candidate Keys.
o Relationships have been set between every table in the database. This ensures both
Referential and Entity Relationship Integrity.
NORMALIZATION:
As the name implies, it denoted putting things in the normal form. The application
developer via normalization tries to achieve a sensible organization of data into proper
tables and columns and where names can be easily correlated to the data by the user.
Normalization eliminates repeating groups at data and thereby avoids data redundancy
which proves to be a great burden on the computer resources. These includes:
A relation is said to be in second normal form if and only if it satisfies all the first
normal form conditions for the primary key and every non-primary key attributes of the
relation is fully dependent on its primary key alone.
Third Normal Form:
According to Third Normal Form, Relation should not have a nonkey attribute
functionally determined by another nonkey attribute or by a set of nonkey attributes. That
is, there should be no transitive dependency on the primary key.
In this we decompose and set up relation that includes the nonkey attributes that
functionally determines other nonkey attributes. This step is taken to get rid of anything
that does not depend entirely on the Primary Key.
A relation is said to be in third normal form if only if it is in second normal form and
more over the non key attributes of the relation should not be depend on other non key
attribute.
Designation Varchar 20 -
Official Address Varchar 25 -
Phone Integer 11 -
Residential Address Varchar 25 -
Pincode Integer 10 -
Phone Integer 10 -
Email Varchar 30 -
Age Varchar 10 -
Occupation Varchar 15 -
Crimetype Varchar 15 -
Address Varchar 15 -
Mostyes Varchar 15 -
Mostno Varchar 15 -
5. Software Environments
JAVA
Java is a small, simple, safe, object oriented, interpreted or dynamically
optimized, byte coded, architectural, garbage collected, multithreaded programming
language with a strongly typed exception-handling for writing distributed and dynamicaly
extensible programs.
Special programs called applets that can be downloaded from the internet and played safely
within a web browser. Java a supports this application and the follow features make it one
of the best programming languages.
The original and reference implementation Java compilers, virtual machines, and class
libraries were developed by Sun from 1995. As of May 2007, in compliance with the
specifications of the Java Community Process, Sun made available most of their Java
technologies as free software under the GNU General Public License. Others have also
developed alternative implementations of these Sun technologies, such as the GNU
Compiler for Java and GNU Class path.
The Java language was created by James Gosling in June 1991 for use in a
set top box project. The language was initially called Oak, after an oak tree that stood
outside Gosling's office - and also went by the name Green - and ended up later being
renamed to Java, from a list of random words. Gosling's goals were to implement a virtual
machine and a language that had a familiar C/C++ style of notation.
Primary goals
There were five primary goals in the creation of the Java language:
The Java platform is the name for a bundle of related programs, or platform,
from Sun which allow for developing and running programs written in the Java
programming language. The platform is not specific to any one processor or operating
system, but rather an execution engine (called a virtual machine) and a compiler with a set
of standard libraries which are implemented for various hardware and operating systems so
that Java programs can run identically on all of them.
time (JIT) compiler, converts intermediate bytecode into native machine code on the fly.
Also supplied are extensive libraries (pre-compiled into Java bytecode) containing reusable
code, as well as numerous ways for Java applications to be deployed, including being
embedded in a web page as an applet.There are several other components, some available
only in certain editions.
The essential components in the platform are the Java language compiler,
the libraries, and the runtime environment in which Java intermediate bytecode "executes"
according to the rules laid out in the virtual machine specification.
The heart of the Java Platform is the concept of a "virtual machine" that executes
Java bytecode programs. This bytecode is the same no matter what hardware or operating
system the program is running under. There is a JIT compiler within the Java Virtual
Machine, or JVM. The JIT compiler translates the Java bytecode into native processor
instructions at run-time and caches the native code in memory during execution.
programs. Since JRE version 1.2, Sun's JVM implementation has included a just-in-time
compiler instead of an interpreter.
Class libraries
The Java class libraries serve three purposes within the Java Platform. Like
other standard code libraries, they provide the programmer a well-known set of functions to
perform common tasks, such as maintaining lists of items or performing complex string
parsing. In addition, the class libraries provide an abstract interface to tasks that would
normally depend heavily on the hardware and operating system. Tasks such as network
access and file access are often heavily dependent on the native capabilities of the platform.
The Java java.net and java.io libraries implement the required native code internally, then
provide a standard interface for the Java applications to perform those tasks. Finally, when
some underlying platform does not support all of the features a Java application expects,
the class libraries can either emulate those features using whatever is available, or at least
provide a consistent way to check for the presence of a specific feature.
Platform independence
One characteristic, platform independence, means that programs written in the Java
language must run similarly on any supported hardware/operating-system platform. One
should be able to write a program once, compile it once, and run it anywhere.
This is achieved by most Java compilers by compiling the Java language code halfway (to
Java bytecode) – simplified machine instructions specific to the Java platform. The code is
then run on a virtual machine (VM), a program written in native code on the host hardware
that interprets and executes generic Java bytecode. (In some JVM versions, bytecode can
also be compiled to native code, either before or during program execution, resulting in
faster execution.) Further, standardized libraries are provided to allow access to features of
the host machines (such as graphics, threading and networking) in unified ways. Note that,
although there is an explicit compiling stage, at some point, the Java bytecode is interpreted
or converted to native machine code by the JIT compiler.
The first implementations of the language used an interpreted virtual machine to achieve
portability. These implementations produced programs that ran more slowly than programs
compiled to native executables, for instance written in C or C++, so the language suffered a
reputation for poor performance. More recent JVM implementations produce programs that
run significantly faster than before, using multiple techniques.
can be useful to provide both a generic bytecode version, as well as an optimised native
code version of an application.
One of the ideas behind Java's automatic memory management model is that programmers
be spared the burden of having to perform manual memory management. In some
languages the programmer allocates memory for the creation of objects stored on the heap
and the responsibility of later deallocating that memory also resides with the programmer.
If the programmer forgets to deallocate memory or writes code that fails to do so, a
memory leak occurs and the program can consume an arbitrarily large amount of memory.
Additionally, if the program attempts to deallocate the region of memory more than once,
the result is undefined and the program may become unstable and may crash. Finally, in
non garbage collected environments, there is a certain degree of overhead and complexity
of user-code to track and finalize allocations. Often developers may box themselves into
certain designs to provide reasonable assurances that memory leaks will not occur.
The use of garbage collection in a language can also affect programming paradigms. If, for
example, the developer assumes that the cost of memory allocation/recollection is low, they
may choose to more freely construct objects instead of pre-initializing, holding and reusing
them. With the small cost of potential performance penalties (inner-loop construction of
large/complex objects), this facilitates thread-isolation (no need to synchronize as different
threads work on different object instances) and data-hiding. The use of transient immutable
value-objects minimizes side-effect programming.
Comparing Java and C++, it is possible in C++ to implement similar functionality (for
example, a memory management model for specific classes can be designed in C++ to
improve speed and lower memory fragmentation considerably), with the possible cost of
adding comparable runtime overhead to that of Java's garbage collector, and of added
development time and application complexity if one favors manual implementation over
using an existing third-party library. In Java, garbage collection is built-in and virtually
invisible to the developer. That is, developers may have no notion of when garbage
collection will take place as it may not necessarily correlate with any actions being
explicitly performed by the code they write. Depending on intended application, this can be
beneficial or disadvantageous: the programmer is freed from performing low-level tasks,
but at the same time loses the option of writing lower level code. Additionally, the garbage
collection capability demands some attention to tuning the JVM, as large heaps will cause
apparently random stalls in performance.
Java does not support pointer arithmetic as is supported in, for example, C++. This is
because the garbage collector may relocate referenced objects, invalidating such pointers.
Another reason that Java forbids this is that type safety and security can no longer be
guaranteed if arbitrary manipulation of pointers is allowed.
Performance
Java's performance has improved substantially since the early versions, and
performance of JIT compilers relative to native compilers has in some tests been shown to
be quite similar. The performance of the compilers does not necessarily indicate the
performance of the compiled code; only careful testing can reveal the true performance
issues in any system.
The Java Runtime Environment, or JRE, is the software required to run any
application deployed on the Java Platform. End-users commonly use a JRE in software
packages and Web browser plugins. Sun also distributes a superset of the JRE called the
Java 2 SDK (more commonly known as the JDK), which includes development tools such
as the Java compiler, Javadoc, Jar and debugger.
One of the unique advantages of the concept of a runtime engine is that errors
(exceptions) should not 'crash' the system. Moreover, in runtime engine environments such
as Java there exist tools that attach to the runtime engine and every time that an exception
of interest occurs they record debugging information that existed in memory at the time the
exception was thrown (stack and heap values). These Automated Exception Handling tools
provide 'root-cause' information for exceptions in Java programs that run in production,
testing or development environments.
RMI is the object equivalent of Remote Procedure Call (RPC). While RPC
allows you to all procedures over a network, RMI invokes an object’s methods over a
network. In the RMI model, the server defines object’s methods over a network. In the
RMI model, the server defines objects that the client can use remotely. The clients can
now invoke methods of this remote object as if it were a local objects running in the
same virtual machine as the client. RMI hides the underlying mechanism of transporting
method arguments and return values across the network. In Java-RMI, an argument or
return value can be of any primitive Java type or any other Serializable Java object.
RMI Server
RMI Client
RMI Registry
RMI Server
RMI Server contains the objects whose methods are to be invoked remotely.
The server creates several remote objects and makes a reference of these objects in the
RMI registry. (The remote object is an ordinary object in the address space of the server
process).
RMI Client
Te client is the process that is invoking a method on a remote object. The
client gets the reference of one or more remote objects from the RMI registry by looking
up the object name. The client then invokes the methods on the remote objects to access
the services of the remote objects.
Once the client gets the reference of the remote object, the methods in the
remote object are invoked just like the methods of a local object. The difference cannot
be identified in terms of whether the methods are invoked on the remote object or are
invoked on the local objects in the client.
RMI Registry
Since both the client and the server may reside on different
machine/processes, there needs to be a mechanism that can establish a relationship
between the two. Java RMI uses a network based registry program called RMI Registry
to keep track of the distributed objects.
RMI Registry is a service that runs on the RMI server. The remote objects
(server objects) created by the server are registered by the object’s unique name in this
registry. In other words, the server object makes methods available for remote invocation
by binding it to a name in the RMI Registry. The client object , can thus check for the
availability of a certain server object by looking up its name in the registry. The RMI
Registry will act as a central management point for Java RMI. RMI Registry is a simple
name repository. RMI Registry does not address the problem of actually invoking remote
methods. Only methods in the remote interface can be invoked. To start the RMI
Registry on the server, execute the start rmiregistry command prompt. By defaults the
registry runs on port 1099.
If the registry is running on a different port , ie other than 1099, you need
to specify the port number in the URL string specified in the rebind() method of the
Naming class. You must stop and restart the rmiregistry service whenever you modify
the remote interface.
RMI Architecture
The RMI architecture consists of three layers
Stub/Skeleton Layer
Remote Reference Layer
Transport Layer
J VM JVM
client server
Stub Skeleton
Layer
Reference Layer
Transport Transport
Layer Layer
Stub/Skeleton Layer
Stub
When the client calls a remote method, the stub is invoked and it does the
following:
Skeleton
Skeleton is a server side proxy that continues communication with the stub y reading
the parameters for the call, making the call to the remote service implementation object,
accepting the return value and writing the return value back to the stub.
The Skeleton in turn unmarshals and deserializes the data on the remote
machine and passes the data to the actual method implementation. After the method
completes, the return value is delivered back to the client in the reverse order.
Transport Layer
The transport layer is a link between the RRL on the server side and the RRL
on the client side. The Transport Layer is responsible for setting up new connections.
Its also responsible for handling remote objects that residing in its address space.
RMI Packages
java.rmi
java.rmi.registry
java.rmi.server
Although a J2EE application can consist of the three or four tiers shown in Figure 1-1,
J2EE multitiered applications are generally considered to be three-tiered applications
because they are distributed over three different locations: client machines, the J2EE server
machine, and the database or legacy machines at the back end. Three-tiered applications
that run in this way extend the standard two-tiered client and server model by placing a
multithreaded application server between the client application and back-end storage.
J2EE Clients
A J2EE client can be a Web client or an application client.
Web Clients
A Web client consists of two parts: dynamic Web pages containing various types of
markup language (HTML, XML, and so on), which are generated by Web components
running in the Web tier, and a Web browser, which renders the pages received from the
server.
A Web client is sometimes called a thin client. Thin clients usually do not do things like
query databases, execute complex business rules, or connect to legacy applications. When
you use a thin client, heavyweight operations like these are off-loaded to enterprise beans
executing on the J2EE server where they can leverage the security, speed, services, and
reliability of J2EE server-side technologies.
Applets
A Web page received from the Web tier can include an embedded applet. An applet is a
small client application written in the Java programming language that executes in the Java
virtual machine installed in the Web browser. However, client systems will likely need the
Java Plug-in and possibly a security policy file in order for the applet to successfully
execute in the Web browser.
Web components are the preferred API for creating a Web client program because no plug-
ins or security policy files are needed on the client systems. Also, Web components enable
cleaner and more modular application design because they provide a way to separate
applications programming from Web page design. Personnel involved in Web page design
thus do not need to understand Java programming language syntax to do their jobs.
Application Clients
A J2EE application client runs on a client machine and provides a way for users to handle
tasks that require a richer user interface than can be provided by a markup language. It
typically has a graphical user interface (GUI) created from Swing or Abstract Window
Toolkit (AWT) APIs, but a command-line interface is certainly possible.
Application clients directly access enterprise beans running in the business tier. However,
if application requirements warrant it, a J2EE application client can open an HTTP
connection to establish communication with a servlet running in the Web tier.
JSP architecture
JSPs are built on top of SUN’s servlet technology. JSPs are essential an HTML page with
special JSP tags embedded. These JSP tags can contain Java code. The JSP file extension is
.jsp rather than .htm or .html. The JSP engine parses the .jsp and creates a Java servlet
source file. It then compiles the source file into a class file; this is done the first time and
this why the JSP is probably slower the first time it is accessed. Any time after this the
special compiled servlet is executed and is therefore returns faster.
Java Script
JavaScript is a programming language that allows scripting of events, objects, and actions
to create Internet applications. A website development environment that will allow the
creation of Interactive Web Pages. The coding techniques capable of accepting a client's
requests and processing these requests.
The web site development environment should also provide the facility for 'validating' user
input. With JavaScript, forms are a consideration in nearly every page you design.
Capturing user requests is traditionally done via a 'form'. So the web site needs to have
facilities to create forms. Text fields and textareas can dynamically change in response to
user responses.
TOMCAT 5.0
Tomcat is a servlet container and Java Server Pages implementation it may be used
stand alone ,or in conjunction with several popular web servers .
FEATURES OF OS
This project work is done on the windows 2000 professional, which is the operating
system. An operating system is a set of software tools designed to make it easy for people
or programmers to make optimum use of the computer. People who use computers have
different levels of needs and interest. These peoples can be separated can be two groups,
users and programmers. The user wants a convenient set of commands to manage files of
data or programs, copy and run application package while a programmer used as a set of
tools that can be held together and debug programs.
No matter where you are working, your computer will be easier to use and manage,
because Microsoft Windows 2000 Professional is more compatible and more powerful than
any workstation you’ve used before. The main features of Windows 2000 Professional
operating system are
Easier to use.
Easier to manage
More compatible
More powerful
EASIER TO USE
With Windows 2000 Professional, you have faster access to information, and you arte
able to accomplish tasks more quickly and easily.
Windows 2000 Professional makes it easier to:
Work with files.
Find information.
Personalize your computing environment.
Work on the web.
Work remotely
EASIER TO MANAGE
You and your network administrators can work more efficiently now, because many of
the most common computer-management tasks are automated are streamlined with
Windows 2000 Professional.
With Windows 2000, your workstation will be easier to:
Set up.
Administrator
Support.
MORE COMPATIBLE
Windows 2000 Professional offers increased compatibility with different types of
network and with a wide array of legacy hardware and software.
Windows 2000 also provides:
Improved driver support.
Increased support for new-generation hardware multimedia technologies.
MORE POWERFUL
For all your computing needs, Windows 2000 Professional provides:
Industrial-strength reliability
The highest level of security
Powerful performance
Windows 2000 also contains the following features:
PORTABILITY
Windows file protection protects core system files from being overwritten by
application installs.
Driver certification provides safeguards to assure you that device drivers have not
been tampered with and reduces your risk of installing non-certified drivers.
Full 32 bit operating system minimizes the chance of application failures and
unplanned reboots.
MOBILITY
Hibernate turns off your computer and monitors after a predetermined time while
retaining your desktop on disk.
Offline viewing makes entire WebPages with graphics available for viewing
offline
Synchronization manager allows you to compare and update your offline files and
folders with those on the network.
Smart battery gives you a more accurate view of your battery’s life enabling you to
reduce power to specify functions to extend your battery power.
Hot docking tells you dock or undock your notebook computer without changing
hardware configuration or rebooting.
Universal Serial Bus (USB) lets you connect and disconnect a wide array of
peripherals such as joysticks, scanners and camcorders without configuring or
rebooting your computer.
J2EE 1394 provides a higher band width connection for devices that require faster
data transfer.
MAINTAINABILITY
32 bit architecture allows you to run more programs and perform more faster at the
same time than Windows 95 or 98.
Windows 2000 can support to 4GB of Ram and two symmetric multiprocessors.
Encrypting file system (EFS) encrypts each file with a randomly generated key.
IP Security (IP Sec) support protected data transmitted across a network.
Kerberos support provides industry standard high-strength authentication with a
fast, single login to windows 2000 enterprise resources.
INTERNET CAPABILITY
Internet Information Services (IIS) 5.0 includes web and FTP server support, as
well as support for Front-page transactions, Active Server Pages (ASP) and
database connections.
Windows 2000 has strong development platform support for dynamic HTML
behaviors and XML.
Intelliforms alleviates the tedious of filling out forms on the web by automatically
entering your name, address or other information that you have securely stored on
your computer.
Automated proxy automatically locates a proxy server configures Internet Explorer
5.0 to connect to the internet through the server.
ways. Code can also be design in a manner easily understood and applied by the user.
The standard used in the development of the system is Microsoft Programming standards. it
includes naming conversions of variables, constants and objects, standardized formats or
labelling and commenting code, spacing, formatting and indenting.
Classes’ names and interface names will start with capital letter. The function names will
start with small letters and the first letter of each word in the function name will be in
capital letter.
5.2.3 Labels and Comments
Sufficient labels and comments are included in the description of it for the benefits if the
developer and other programmers who might examine it later.
User Interface
For all the entry screen frames are used which will show the type of the user who is
currently logged in and the menus.
Standard actions are used for standard actions.
Same font is related properties are used for similar screens.
The method of implementation and the time scale to be adopted are found out initially.
Next the system is tested properly and the users are trained in the new procedures.
if(ni.value == "")
{
alert ("enter the name of informant");
ni.focus();
return false;
}
if(a.value == "")
{
alert ("enter the address");
a.focus();
return false;
}
if(d.value == "")
{
alert ("enter the details");
d.focus();
return false;
}
if(des.value == "")
{
alert ("enter the description");
des.focus();
return false;
}
if(da.value == "")
{
alert ("enter the date");
da.focus();
return false;
}
}
</script>
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style5 {color: #CC0033}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="Userhomepage.html">Home </a></li>
<li><a href="viewadminreply.jsp">Complaintstatus </a></li>
<li><a href="viewcrimereply.jsp">Crimestatus </a></li>
<li><a href="usercontact.jsp">Viewcontacts</a></li>
<li><a href="feedback.jsp">Message</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong> </div>
<div>
<div align="center">
<a href="login.jsp"><input type="button" id="b1" name="b1" value="Logout" /></a>
</div>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="complaint.jsp">Complaint</a></li>
<li><a href="crimereport.jsp">Crime Report</a></li>
<li><a href="usermissingperson.jsp">Missing Person </a></li>
<li><a href="viewmissingperson.jsp">View Missing Person </a></li>
<li><a href="viewmostwanted.jsp">View Mostwanted Person</a></li>
</ul>
</li>
<li>
<h2>Account Settings </h2>
<ul>
<li><a href="changepassword.jsp">Change Password</a></li>
<li><a href="editcomplaint.jsp">Edit Complaint</a></li>
<li><a href="editregister.jsp">Edit Account </a></li>
</ul>
</li>
<li>
<h2>More Facilities </h2>
<ul>
<li><a href="chat.jsp">Chat</a></li>
<li><a href="compose.jsp">Mail</a></li>
</ul>
</li>
</ul>
</div>
<div>
<form name="form1" method="get" action="complaintaction.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 = DriverManager.getConnection("Jdbc:mysql://localhost/crimefile",
"root", "");
Statement st2 = con1.createStatement();
st2.executeUpdate("insert into complaintreg
values('"+userid+"','"+detailssuspect+"','"+description+"','"+date+"','"+typecrime+"')");
out.println("Complaint submitted,take action soon,Thank You");
} catch (Exception e) {
out.println(e);
}
%>
</form>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span class="style1
></span></em></p>
</div>
</body>
</html>
User CrimeReport
<%@page import="java.io.*,java.sql.*;" session="true"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function doValue()
{
var ui=document.getElementById("userid");
var ni=document.getElementById("nameinformant");
var d=document.getElementById("det");
var a=document.getElementById("address");
var des=document.getElementById("description");
var da1=document.getElementById("da");
if(ui.value == "")
{
alert ("enter the userid");
ui.focus();
return false;
}
if(ni.value == "")
{
alert ("enter the name of informant");
ni.focus();
return false;
}
if(a.value == "")
{
alert ("enter the address");
a.focus();
return false;
}
if(d.value == "")
{
alert ("enter the details");
d.focus();
return false;
}
if(des.value == "")
{
alert ("enter the description");
des.focus();
return false;
}
if(da.value == "")
{
alert ("enter the date");
da.focus();
return false;
}
}
</script>
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style5 {color: #CC0033}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="Userhomepage.html">Home </a></li>
<li><a href="viewadminreply.jsp">Complaintstatus </a></li>
<li><a href="viewcrimereply.jsp">Crimestatus </a></li>
<li><a href="usercontact.jsp">Viewcontacts</a></li>
<li><a href="feedback.jsp">Message</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong> </div>
<div>
<div align="center">
<a href="login.jsp"><input type="button" id="b1" name="b1" value="Logout" /a>
</div>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="complaint.jsp">Complaint</a></li>
<li><a href="crimereport.jsp">Crime Report</a></li>
<li><a href="usermissingperson.jsp">Missing Person </a></li>
<li><a href="viewmissingperson.jsp">View Missing Person </a></li>
<li><a href="viewmostwanted.jsp">View Mostwanted Person</a></li>
</ul>
</li>
<li>
<h2>Account Settings </h2>
<ul>
<li><a href="changepassword.jsp">Change Password</a></li>
<li><a href="editcomplaint.jsp">Edit Complaint</a></li>
<li><a href="editregister.jsp">Edit Account </a></li>
</ul>
</li>
<li>
<h2>More Facilities </h2>
<ul>
<li><a href="chat.jsp">Chat</a></li>
<li><a href="compose.jsp">Mail</a></li>
</ul>
</li>
</ul>
</div>
<div>
<form name="form1" method="get" action="crimereportaction.jsp">
<%
try {
String userid = request.getParameter("userid");
String nameinformant1 = request.getParameter("nameinformant");
String address = request.getParameter("address");
String det = request.getParameter("det");
String description = request.getParameter("description");
String da = request.getParameter("da");
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 = DriverManager.getConnection("Jdbc:mysql://localhost/crimefile",
"root", "");
Statement st2 = con1.createStatement();
st2.executeUpdate("insert into crimereport values('"+userid
+"','"+nameinformant1+"','"+address+"','"+det+"','"+description+"','"+da+"')");
out.println("Crime report submitted,take action soon,Thank You");
} catch (Exception e) {
out.println(e);
}
%>
</form>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span class="style1
></span></em></p>
</div>
</body>
</html>
User Feedback
<%@ page language="java" contentType="text/html" import="java.sql.*" session="true"
%>
<%
try {
String na = request.getParameter("name1");
String em = request.getParameter("email1");
String me = request.getParameter("mess1");
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 = DriverManager.getConnection("Jdbc:mysql://localhost/crimefile",
"root", "");
Statement st = con1.createStatement();
st.executeUpdate("insert into feedback values('" + na + "','" + em+ "','" + me + "')");
out.println("Data completed successfully");
} catch (Exception e) {
out.println(e);
}
%>
var k=document.getElementById("email");
if(a.value == "")
{
alert ("enter the username");
a.focus();
return false;
}
if(b.value == "")
{
alert ("enter the password");
b.focus();
return false;
}
else if((b.value.length)<6)
{
alert("password should contain atleast 6 characters ");
b.focus();
return false;
}
if(c.value == "")
{
alert ("enter the confirm password");
c.focus();
return false;
}
if((c.value)!=(b.value))
{
alert("Re-enter the password");
c.focus();
return false;
}
if(d.value == "")
{
alert ("enter the name");
d.focus();
return false;
}
if(e.value == "")
{
alert ("enter the designation");
e.focus();
return false;
}
if(f.value == "")
{
alert ("enter the official address");
f.focus();
return false;
}
if(g.value == "")
{
alert ("enter the phone no:");
g.focus();
return false;
}
if(h.value == "")
{
alert ("enter the address");
h.focus();
return false;
}
if(i.value == "")
{
alert ("enter the pincode");
i.focus();
return false;
}
else if(!parseInt(i.value))
{
alert("Enter Integer");
return false;
}
else if(((i.value.length)>6))
{
alert("Pin no: should contain 6 integers ");
i.focus();
return false;
}
if(j.value == "")
{
alert ("enter the phone number");
j.focus();
return false;
}
else if(!parseInt(j.value))
{
alert("Enter valid Phone number ");
return false;
}
else if(((j.value.length)<6) || ((j.value.length)>11))
{
alert("Phone no should contain atleast 6 integers ");
j.focus();
return false;
}
if(k.value == "")
{
alert ("enter the email");
k.focus();
return false;
}
else if(k.value.indexOf('@')==-1)
{
alert("Use @ email correctly");
k.focus();
return false;
}
else if(k.value.indexOf('.')==-1)
{
alert("Use . email correctly");
k.focus();
return false;
}
}
</script>
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style8 {color: #660000; font-weight: bold; }
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="Userhomepage.html">Home </a></li>
<li><a href="viewadminreply.jsp">Complaintstatus </a></li>
<li><a href="viewcrimereply.jsp">Crimestatus </a></li>
<li><a href="usercontact.jsp">Viewcontacts</a></li>
<li><a href="feedback.jsp">Message</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<div>
<form id="form1" method="post" action="viewcomplaintreply.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 =
DriverManager.getConnection("Jdbc:mysql://localhost/crimefile", "root", "");
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery("select district,nameofpol,datem,namaddr from
missingperson");
String district = "", nameofpol = "", datem = "",namaddr="";
%>
<table width="485" height="28" border="0">
<tr>
<td width="86" height="22" ><span class="style8">District</span></td>
<td width="89"><span class="style8">Place</span></td>
<td width="222"><span class="style8">Missing Date</span></td>
<td width="222"><span class="style8">Name</span></td>
</tr>
<%
while (rs.next()) {
district = rs.getString("district");
nameofpol = rs.getString("nameofpol");
datem = rs.getString("datem");
namaddr = rs.getString("namaddr");
out.println("<tr>");
out.println("<td>" + district + "</td>");
out.println("<td>" + nameofpol + "</td>");
out.println("<td>" + datem + "</td>");
out.println("<td>" + namaddr + "</td>");
out.println("<td><a href='viewmoremissing.jsp?id=" +namaddr+"'>view more</a></td>");
out.println("<tr>");
}
%>
</table>
</form>
<%
} catch (Exception e) {
out.println(e);
}
%>
</div>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><a href="login.jsp"><input type="button" id="b1" name="b1"
value="Logout" /></a></div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="complaint.jsp">Complaint</a></li>
<li><a href="crimereport.jsp">Crime Report</a></li>
<li><a href="usermissingperson.jsp">Missing Person </a></li>
<li><a href="viewmissingperson.jsp">View Missing Person </a></li>
<li><a href="viewmostwanted.jsp">View Mostwanted Person</a></li>
</ul>
</li>
<li>
<h2>Account Settings </h2>
<ul>
<li><a href="changepassword.jsp">Change Password</a></li>
<li><a href="editcomplaint.jsp">Edit Complaint</a></li>
<li><a href="editregister.jsp">Edit Account</a></li>
</ul>
</li>
<li>
<h2>More Facilities </h2>
<ul>
<li><a href="chat.jsp">Chat</a></li>
<li><a href="compose.jsp">Mail</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span
class="style1</span></em></p>
</div>
</body>
</html>
var a=document.getElementById("username");
var b=document.getElementById("password");
var c=document.getElementById("conpass");
var d=document.getElementById("name");
var e=document.getElementById("desig");
var f=document.getElementById("offadd");
var g=document.getElementById("phno");
var h=document.getElementById("address");
var i=document.getElementById("pincode");
var j=document.getElementById("phoneno");
var k=document.getElementById("email");
if(a.value == "")
{
alert ("enter the username");
a.focus();
return false;
}
if(b.value == "")
{
alert ("enter the password");
b.focus();
return false;
}
else if((b.value.length)<6)
{
alert("password should contain atleast 6 characters ");
b.focus();
return false;
}
if(c.value == "")
{
alert ("enter the confirm password");
c.focus();
return false;
}
if((c.value)!=(b.value))
{
alert("Re-enter the password");
c.focus();
return false;
}
if(d.value == "")
{
alert ("enter the name");
d.focus();
return false;
}
if(e.value == "")
{
alert ("enter the designation");
e.focus();
return false;
}
if(f.value == "")
{
alert ("enter the official address");
f.focus();
return false;
}
if(g.value == "")
{
alert ("enter the phone no:");
g.focus();
return false;
}
if(h.value == "")
{
alert ("enter the address");
h.focus();
return false;
}
if(i.value == "")
{
alert ("enter the pincode");
i.focus();
return false;
}
else if(!parseInt(i.value))
{
alert("Enter Integer");
return false;
}
else if(((i.value.length)>6))
{
alert("Pin no: should contain 6 integers ");
i.focus();
return false;
}
if(j.value == "")
{
alert ("enter the phone number");
j.focus();
return false;
}
else if(!parseInt(j.value))
{
alert("Enter valid Phone number ");
return false;
}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="Userhomepage.html">Home </a></li>
<li><a href="viewadminreply.jsp">Complaintstatus </a></li>
<li><a href="viewcrimereply.jsp">Crimestatus </a></li>
<li><a href="usercontact.jsp">Viewcontacts</a></li>
<li><a href="feedback.jsp">Message</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<div>
<form id="form1" method="post" action="viewcomplaintreply.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 = DriverManager.getConnection("Jdbc:mysql://localhost/crimefile",
"root", "");
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery("select name,age,address,typeofcrime from mostwanted");
</form>
<%
} catch (Exception e) {
out.println(e);
}
%>
</div>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><a href="login.jsp"><input type="button" id="b1" name="b1"
value="Logout" /></a></div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="complaint.jsp">Complaint</a></li>
<li><a href="crimereport.jsp">Crime Report</a></li>
<li><a href="usermissingperson.jsp">Missing Person </a></li>
<li><a href="viewmissingperson.jsp">View Missing Person </a></li>
<li><ahref="viewmostwanted.jsp">View Mostwanted Person</a></li>
</ul>
</li>
<li>
<h2>Account Settings </h2>
<ul>
<li><a href="changepassword.jsp">Change Password</a></li>
<li><a href="editcomplaint.jsp">Edit Complaint</a></li>
<li><a href="editregister.jsp">Edit Account</a></li>
</ul>
</li>
<li>
<h2>More Facilities </h2>
<ul>
<li><a href="chat.jsp">Chat</a></li>
<li><a href="compose.jsp">Mail</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span
class="style1</span></em></p>
</div>
</body>
</html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style4 {
color: #C14744;
font-weight: bold;
}
.style5 {color: #990000}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="adminhome.html">Adminhome </a></li>
<li><a href="viewusercomplaint.jsp">Usercomplaint </a></li>
<li><a href="viewusercrime.jsp">Usercrime</a></li>
<li><a href="viewcontacts.jsp">Contacts</a></li>
<li><a href="login.jsp">Logout</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<span class="style4"> </span>
<form id="form1" method="post" action="viewcomplaintreply.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 = DriverManager.getConnection("Jdbc:mysql://localhost/crimefile",
"root", "");
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery("select * from takecomplaintaction");
String user1 = "", complaintid1 = "", takeaction1 = "";
%>
<table width="485" height="28" border="1">
<tr>
<td width="86" height="22" ><span class="style5">User</span></td>
<tdwidth="89"><span class="style5">Complaintid</span></td>
<tdwidth="222"><span class="style5">Takeaction</span></td>
</tr>
<%
while (rs.next()) {
user1 = rs.getString("user");
complaintid1 = rs.getString("complaintid");
takeaction1 = rs.getString("takeaction");
out.println("<tr>");
out.println("<td>" + user1 + "</td>");
out.println("<td>" + complaintid1 + "</td>");
out.println("<td>" + takeaction1 + "</td>");
out.println("<tr>");
}
%>
</table>
</form>
<%
} catch (Exception e) {
out.println(e);
}
%>
<span class="style4">
<p> </p>
</span></div></td>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="newadmin.jsp">New admin </a></li>
<li><a href="hotnews.jsp">Hot News </a></li>
<li><a href="viewhotnews.jsp">View Hot News </a></li>
<li><a href="viewfeedback.jsp">View Feedback </a></li>
<li><a href="mostwanted.jsp">Most Wanted </a></li>
<li><a href="viewadminwanted.jsp">View/Delete MostWanted </a></li>
<li><a href="missingperson.jsp">Missing Persons </a></li>
<li><a href="viewadminmissing.jsp">View/Delete Missing Persons </a></li>
<li><a href="criminalregister.jsp">Criminal Register </a></li>
<li><a href="viewcomplaintreply.jsp">View Allcomplaintreply </a></li>
View Hotnews
<%@page import="java.io.*,java.sql.*;" session="true"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style4 {
color: #C14744;
font-weight: bold;
}
.style5 {color: #990000}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="adminhome.html">Adminhome </a></li>
<li><a href="viewusercomplaint.jsp">Usercomplaint </a></li>
<li><a href="viewusercrime.jsp">Usercrime</a></li>
<li><a href="viewcontacts.jsp">Contacts</a></li>
<li><a href="login.jsp">Logout</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<span class="style4"> </span>
<form id="form1" method="post" action="takeaction.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 = DriverManager.getConnection("Jdbc:mysql://localhost/crimefile",
"root", "");
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery("select * from hotnews");
String matter1 = "", time1 = "", place1 = "";
%>
<table width="495" height="49" border="1">
<tr>
<td width="86" height="43" ><span class="style5">Matter</span></td>
<td width="89"><span class="style5">Time</span></td>
<td width="85"><span class="style5">Place</span></td>
</tr>
<%
while (rs.next()) {
matter1= rs.getString("matter");
time1 = rs.getString("time");
place1 = rs.getString("place");
out.println("<tr>");
out.println("<td>" + matter1 + "</td>");
out.println("<td>" + time1 + "</td>");
</form>
<%
} catch (Exception e) {
out.println(e);
}
%>
<span class="style4">
<p> </p>
</span></div></td>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="newadmin.jsp">New admin </a></li>
<li><a href="hotnews.jsp">Hot News </a></li>
<li><a href="viewhotnews.jsp">View Hot News </a></li>
<li><a href="viewfeedback.jsp">View Feedback </a></li>
<li><a href="mostwanted.jsp">Most Wanted </a></li>
</div>
</body>
</html>
Chat
<%@pagesession="true"import="sukhwinder.chat.ChatRoomList,
sukhwinder.chat.ChatRoom" %>
<%
String nickname = (String)session.getAttribute("nickname");
if (nickname != null && nickname.length() > 0)
{
ChatRoomList roomList = (ChatRoomList) application.getAttribute("chatroomlist");
ChatRoom room = roomList.getRoomOfChatter(nickname);
String roomname = room.getName();
%>
<HTML>
<HEAD>
<TITLE>Crimestation Chat - <%=nickname%> (<%=roomname%>) </TITLE>
</HEAD>
<FRAMESET rows="80%,20%">
<FRAME SRC="displayMessages.jsp#current" name="MessageWin"></FRAME>
<FRAME SRC="sendMessage.jsp" name="TypeWin"></FRAME>
</FRAMESET>
<NOFRAMES>
<H2>This chat rquires a browser with frames support</H2>
</NOFRAMES>
</HTML>
<%
}
else
{
response.sendRedirect("chatlogin.jsp");
}
%>
<div align="center">
<center>
<table width="100%" border="0">
<tr>
<td width="100%" class="title">Crime File Management Chat</td>
</tr>
</table>
</center>
</div>
<br>
<%@pagesession="true"
import="java.util.Set,java.util.Iterator,java.util.Map,sukhwinder.chat.*"%>
<HTML>
<HEAD>
<TITLE> Chat - Room List</TITLE>
<LINK rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/chat.css">
<SCRIPT language="JavaScript">
<!--
if(window.top != window.self)
{
window.top.location = window.location;
}
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFFF">
<%
String nickname = (String)session.getAttribute("nickname");
if (nickname == null || nickname == "")
{
response.sendRedirect("chatlogin.jsp");
//System.out.println("Redirecting");
}
else
{
String roomname = request.getParameter("rn");
String descr = request.getParameter("sd");
boolean see = false;
if (descr != null && descr.equals("y"))
{
see = true;
}
%>
<%@ include file="chatheader.jsp" %>
<TABLE width="80%" align="center">
<!--<tr>
<td class="normal">Welcome <span class="chattername"><%=nickname%></span></td>
</tr>
-->
<TR>
<TD width="100%">Select the room you want to enter or click view description to view
description
about the room.
</TD>
</TR>
</TABLE>
<BR>
<%
try
{
ChatRoomList roomlist = (ChatRoomList)application.getAttribute("chatroomlist");
ChatRoom[] chatrooms = roomlist.getRoomListArray();
if(roomname == null)
{
roomname = roomlist.getRoomOfChatter(nickname).getName();
}
roomname = roomname.trim();
%>
<DIV align="center">
<CENTER>
<FORM name="chatrooms" action="<%=request.getContextPath()%>/start.jsp"
method="post">
<TABLE width="80%" border="1" cellspacing="1" cellpadding="1" align="center">
<TR>
<TD colspan="2" class="pagetitle">Room List</TD>
</TR>
<%
for (int i = 0; i < chatrooms.length; i++)
{
if (chatrooms[i].getName().equalsIgnoreCase("StartUp"))
continue;
%>
<TR>
<TD width="50%">
<%
String [] rooms={"Room1","Room2","Room3","Room4","Room5"};
%>
<INPUT type=radio name="rn" value="<%=chatrooms[i].getName()%>"
<%if (chatrooms[i].getName().equals(roomname))
out.write("checked");%>><%=rooms[i]%></A>
</TD>
<%
if (see==true&& chatrooms[i].getName().equals(roomname))
{
%>
<TD width="50%"><%=chatrooms[i].getDescription()%></TD>
<%
}
else
{
%>
<TD width="50%"><A href="<%=request.getContextPath()%>/listrooms.jsp?rn=<
%=chatrooms[i].getName()%>&sd=y">View Description</A></TD>
<%
}
%>
</TR>
<%
}
}
catch (Exception e)
{
System.out.println("Unable to get handle to Servlet Context: " + e.getMessage());
e.printStackTrace();
}
%>
<TR>
<TD> <A href="<%=request.getContextPath()%>/addRoom.jsp" title="Add new
Room"></A></TD>
<TD><INPUT type="Submit" value="Start"></TD>
</TR>
</TABLE>
</FORM>
</CENTER>
</DIV>
<%
}
%>
<%@ include file="/footer.jsp"%>
</BODY>
</HTML>
Mail
<%@pagelanguage="java"
import="javazoom.sendmail.Keys,javazoom.sendmail.ComposeBean,java.util.*" %>
<%@ page errorPage="errorhandler.jsp" %>
<%-- ComposeBean Setup : Begin --%>
<jsp:useBean id="composebean" scope="session"
class="javazoom.sendmail.ComposeBean"/>
<jsp:setProperty name="composebean" property="smtpserver"
value="smtp.yourcompany.com"/>
<jsp:setProperty name="composebean" property="allowattachment" value="false"/>
<jsp:setPropertyname="composebean"property="to"
value="support@yourcompany.com"/>
<%-- ComposeBean Setup : End --%>
<%StringPREURI= request.getContextPath()
+request.getServletPath().substring(0,request.getServletPath().lastIndexOf("/")); %>
<html>
<head>
<LINK REL=STYLESHEET TYPE="text/css" HREF="styles.css">
<script language="JavaScript"><!--
function sendmail()
{
document.compose.submit();
}
<% if (composebean.getAllowattachment()) {%>
function attachform()
{
document.compose.action="<%=
response.encodeURL(PREURI+Keys.ATTACHFORM+"?
nocache="+System.currentTimeMillis()) %>";
document.compose.submit();
}
<% } %>
function checkForm()
{
var field = "<%= request.getAttribute(Keys.ERRORKEY)%>";
if (field != "<%= ComposeBean.NOERROR %>")
{
alert("<%= request.getAttribute(Keys.ERRORMSGKEY)%>");
document.compose.<%= request.getAttribute(Keys.ERRORKEY)%>.focus();
}
}
//-->
</script>
<title>Contact technical support</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {
color: #000000;
font-weight: bold;
}
.style2 {color: #CC6633}
-->
</style>
</head>
<body bgcolor="#CC6633" onLoad="checkForm()">
<span class="style2"></span>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#EEEEEE">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#CC6633">
<td><font face="Arial, Helvetica, sans-serif" size="-2"><a
href="../blank/index.html"></a></font></td>
<td align="center"><span class="style1"><font face="Verdana, Arial, Helvetica, sans-
serif" size="-1">Crimefile Management : Email to support
<font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><b>contact</b></font><font
face="Verdana, Arial, Helvetica, sans-serif" size="-
1"><b></b></font></font></span></td>
<td align="right"><font face="Arial, Helvetica, sans-serif" size="-2"><a
href="../resume/index.html"></a></font></td>
</tr>
</table>
</td>
</tr>
</table>
<hr noshade size="1">
<form name="form1" method="post" action="mailsent.jsp">
<table border="0" cellspacing="0" cellpadding="0" align="center" width="585">
<tr>
<td width="10"> </td>
<td width="525" align="center" class="Field"><p> </p>
</td>
<td width="7" align="center" bgcolor="#EEEEFF"> </td>
</tr>
<tr>
<td bgcolor="#EEEEEE"> </td>
<td align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CC6633">
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="15%" align="right" nowrap class="MandatoryField">To
: </td>
<td>
<input type="text" name="to" value ="crimestation@gmail.com"/> </td>
</tr>
<tr>
<td width="15%" align="right" nowrap class="MandatoryField">From
: </td>
<td>
<input type="text" name="from" > </td>
</tr>
<tr>
<td width="15%" align="right" nowrap class="Field">CC
: </td>
<td>
<input type="text" name="cc" > </td>
</tr>
<tr>
<td width="15%" align="right" class="MandatoryField">Bcc
: </td>
<td><input type="text" name="bcc"></td>
</tr>
<tr>
<td width="15%" align="right" class="MandatoryField">Subject
: </td>
<td>
<input type="text" name="subject" > </td>
</tr>
<tr align="center">
<td colspan="2" class="Field"> </td>
</tr>
</table> </td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><textarea name="msg" cols="54" rows="8" wrap="HARD" />
</textarea> </td>
</tr>
<tr>
<td align="center" bgcolor="#EEEEEE"><label>
<input type="submit" name="Submit" value="send">
<input type="reset" name="Submit2" value="clear">
</label></td>
</tr>
</table>
</td>
<td valign="top" bgcolor="#EEEEEE">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap> </td>
</tr>
<tr>
<td>
<hr noshade size="1">
</td>
</tr>
<tr>
<td class="homelink" align="center"> </td>
</tr>
<tr>
<td align="center" > </td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<hr noshade size="1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-
2">cfms</font><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">
© Copyright 2005-2009</font></td>
</tr>
</table>
</body>
</html>
Mail send
<html>
<%@page import="java.io.*,java.sql.*;" session="true"%>
<head>
<LINK REL=STYLESHEET TYPE="text/css" HREF="styles.css">
<title>Email support</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<p> </p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#EEEEEE">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td><font face="Arial, Helvetica, sans-serif" size="-2"><a
href="../blank/"></a></font></td>
+ state + "'," + postcode + ",'" + country + "'," + hphone + " ," + mphone + ",'" + fax + "','"
+ account + "','" + select4 + "','" + birthday + "','" + email + "')");
out.println("Thank You , mail" + from1 + " has been succesfully send to
crimefile@gmail.com ");
} catch (Exception e) {
out.println(e);
}
%>
<br>
<br>
<hr noshade size="1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-
2">crimefile</font><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">
© Copyright 2005-2009</font></td>
</tr>
</table>
<p> </p>
</body>
</html>
Upload Photos
<html>
<body bgcolor="#CC6633">
<%@ page language="java" import="javazoom.upload.*,java.util.*,java.io.*" %>
<%@ page errorPage="ExceptionHandler.jsp" %>
<% String directory = "c:/uploads"; %>
<% String tmpdirectory = "c:/uploads/tmp"; %>
<% boolean createsubfolders = true; %>
<% boolean allowresume = true; %>
<% boolean allowoverwrite = true; %>
<% String encoding = "ISO-8859-1"; %>
<% boolean keepalive = false; %>
<jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
<jsp:setProperty name="upBean" property="folderstore" value="<%= directory %>" />
<jsp:setProperty name="upBean" property="parser" value="<%=
MultipartFormDataRequest.CFUPARSER %>"/>
{
String md5 = upBean.hexDump(upBean.computeMD5(fhead,-1)).toLowerCase();
if ((md5 != null) && (!md5.equals(""))) response.setHeader("checksum", md5);
}
}
else response.sendError(HttpServletResponse.SC_NOT_FOUND);
return;
}
}
%>
<html>
<head>
<title>Samples : Large Upload + jClientUpload Applet support</title>
<style TYPE="text/css">
<!--
.style1 {
font-size: 12px;
font-family: Verdana;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=<%= encoding %>">
<script language="Javascript"><!--
function doClean()
{
document.upload.todo.value="cleanstore";
document.upload.submit();
}
//--></script>
</head>
<body>
<ul class="style1">
<%
if (MultipartFormDataRequest.isMultipartFormData(request))
{
// Parse multipart HTTP POST request.
MultipartFormDataRequest mrequest = null;
try
{
mrequest=newMultipartFormDataRequest(request,null,-
1,MultipartFormDataRequest.CFUPARSER,encoding,allowresume);
} catch (Exception e)
{
// Cancel current upload (e.g. Stop transfer)
// Only if allowresume = false
}
String todo = null;
if (mrequest != null) todo = mrequest.getParameter("todo");
if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
{
String account = mrequest.getParameter("account");
if (account == null) account="";
else if (!account.startsWith("/")) account = "/"+account;
upBean.setFolderstore(directory+account);
Hashtable files = mrequest.getFiles();
if ( (files != null) && (!files.isEmpty()) )
{
UploadFile file = (UploadFile) files.get("uploadfile");
if (file != null) out.println("<b> Successfully Uploaded the Missing Person's photo :
"+file.getFileName());
// Folders and subfolders creation support.
String relative = mrequest.getParameter("relativefilename");
if ((createsubfolders == true) && (relative != null))
{
int inda=relative.length();
int indb=file.getFileName().length();
if (inda > indb)
{
String subfolder = relative.substring(0,(inda-indb)-1);
subfolder = subfolder.replace('\\','/').replace('/',java.io.File.separatorChar);
upBean.setFolderstore(directory+account+java.io.File.separator+subfolder);
}
}
if (keepalive == false) response.setHeader("Connection","close");
// Chunks recomposion support.
String chunkidStr = mrequest.getParameter("chunkid");
String chunkamountStr = mrequest.getParameter("chunkamount");
String chunkbaseStr = mrequest.getParameter("chunkbase");
if ((chunkidStr != null) && (chunkamountStr != null) && (chunkbaseStr != null))
{
// Always overwrite chunks.
upBean.setOverwrite(true);
upBean.store(mrequest, "uploadfile");
upBean.setOverwrite(allowoverwrite);
int chunkid = Integer.parseInt(chunkidStr);
int chunkamount = Integer.parseInt(chunkamountStr);
if (chunkid == chunkamount)
{
// recompose file.
String fname = upBean.getFolderstore()+java.io.File.separator+chunkbaseStr;
File fread = new File(fname);
if (fread.canRead() && (upBean.getOverwrite()==false)) fname =
upBean.loadOverwriteFilter().process(fname);
FileOutputStream fout = new FileOutputStream(fname);
byte[] buffer = new byte[4096];
for (int c=1;c<=chunkamount;c++)
{
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style4 {
color: #C14744;
font-weight: bold;
}
.style5 {color: #990000}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="adminhome.html">Adminhome </a></li>
<li><a href="viewusercomplaint.jsp">Usercomplaint </a></li>
<li><a href="viewusercrime.jsp">Usercrime</a></li>
<li><a href="viewcontacts.jsp">Contacts</a></li>
<li><a href="login.jsp">Logout</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<span class="style4"> </span>
<form id="form1" method="post" action="takeaction.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 =
DriverManager.getConnection("Jdbc:mysql://localhost/crimefile", "root", "");
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery("select * from prisonerregister");
String prino = "", chargesheetno1 = "", Nickname = "", typeofcrime = "", family =
"", Iden = "", height = "", weight = "", color = "";
%>
<table width="501" height="49" border="1">
<tr>
<td width="38" height="43" ><span class="style5">pri.no</span></td>
<td width="42"><span class="style5">C.H no</span></td>
<td width="61"><span class="style5">Nickname</span></td>
<td width="71"><span class="style5">typeofcrime</span></td>
<td width="40"><span class="style5">family</span></td>
<td width="60"><span class="style5">Iden.mark</span></td>
<td width="41"><span class="style5">height</span></td>
<td width="45"><span class="style5">color</span></td>
</tr>
<%
while (rs.next()) {
prino = rs.getString("prisonerno");
chargesheetno1 = rs.getString("chargesheetno");
Nickname = rs.getString("nickname");
typeofcrime = rs.getString("nickname");
family = rs.getString("typeofcrime");
Iden = rs.getString("identificationmarks");
height = rs.getString("height");
//weight = rs.getString("weight");
color = rs.getString("colour");
out.println("<tr>");
out.println("<td>" + prino + "</td>");
out.println("<td>" + chargesheetno1 + "</td>");
out.println("<td>" + Nickname + "</td>");
out.println("<td>" + typeofcrime + "</td>");
out.println("<td>" + family + "</td>");
out.println("<td>" + Iden + "</td>");
out.println("<td>" + height + "</td>");
//out.println("<td>" + weight + "</td>");
out.println("<td>" + color + "</td>");
out.println("<tr>");
}
%>
</table>
</form>
<%
} catch (Exception e) {
out.println(e);
}
%>
<span class="style4">
<p> </p>
</span></div></td>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="newadmin.jsp">New admin </a></li>
<li><a href="hotnews.jsp">Hot News </a></li>
<li><a href="viewhotnews.jsp">View Hot News </a></li>
<li><a href="viewfeedback.jsp">View Feedback </a></li>
<li><a href="mostwanted.jsp">Most Wanted </a></li>
<li><a href="viewadminwanted.jsp">View/Delete MostWanted </a></li>
<li><a href="missingperson.jsp">Missing Persons </a></li>
<li><a href="viewadminmissing.jsp">View/Delete Missing Persons </a></li>
<li><a href="criminalregister.jsp">Criminal Register </a></li>
<li><a href="viewcomplaintreply.jsp">View Allcomplaintreply </a></li>
<li><a href="prisonerreg.jsp">Prisoners Register </a></li>
<li><a href="prisonerreport.jsp">ViewPrisonerReport </a></li>
<li><a href="history.jsp">History</a></li>
<li><a href="viewhistory.jsp">View History</a></li>
<li><a href="fir.jsp">FIR</a></li>
<li><a href="firreport.jsp">FIR Report</a></li>
</ul>
</li>
<li>
<h2>Account Settings </h2>
<ul>
<li><a href="adminchangepass.jsp">Change Password </a></li>
<li><a href="criminalreport.jsp">All CriminalReport </a></li>
</ul>
</li>
<li>
<h2>More Facilities </h2>
<ul>
<li><a href="chat.jsp">Chat</a></li>
<li><a href="compose.jsp">Mail</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span
class="style1</span></em></p>
</div>
</body>
</html>
Take complaint
<%@page import="java.io.*,java.sql.*;" session="true"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style4 {
color: #C14744;
font-weight: bold;
}
.style5 {color: #990000}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="adminhome.html">Adminhome </a></li>
<li><a href="viewusercomplaint.jsp">Usercomplaint </a></li>
<li><a href="viewusercrime.jsp">Usercrime</a></li>
<li><a href="viewcontacts.jsp">Contacts</a></li>
<li><a href="login.jsp">Logout</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<span class="style4"> </span>
<formid="form1"method="post" action="viewfeedback.jsp">
<%
try {
String cno = request.getParameter("complaint");
String user = request.getParameter("userid");
String action1 = request.getParameter("takeaction");
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connectioncon1= riverManager.getConnection("Jdbc:mysql://localhost/crimefile",
"root", "");
Statement st2 = con1.createStatement();
st2.executeUpdate("insert into takecomplaintaction values('" + user + "','" + cno +
"','" + action1+ "')");
out.println("Reply send....................");
} catch (Exception e) {
out.println(e);
}
%>
</form>
<span class="style4">
<p> </p>
</span></div></td>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="newadmin.jsp">New admin </a></li>
<li><a href="hotnews.jsp">Hot News </a></li>
<li><a href="viewhotnews.jsp">View Hot News </a></li>
<li><a href="addnewcontact.jsp">Add Contacts </a></li>
<li><a href="mostwanted.jsp">Most Wanted </a></li>
<li><a href="viewadminwanted.jsp">View/Delete MostWanted </a></li>
<li><a href="missingperson.jsp">Missing Persons </a></li>
<li><a href="viewadminmissing.jsp">View/Delete Missing Persons </a></li>
<li><a href="criminalregister.jsp">Criminal Register </a></li>
<li><a href="viewcomplaintreply.jsp">View Allcomplaintreply </a></li>
<li><a href="prisonerreg.jsp">Prisoners Register </a></li>
<li><a href="prisonerreport.jsp">ViewPrisonerReport </a></li>
<li><a href="history.jsp">History</a></li>
<li><a href="viewhistory.jsp">View History</a></li>
<li><a href="fir.jsp">FIR</a></li>
<li><a href="firreport.jsp">FIR Report</a></li>
</ul>
</li>
<li>
<h2>Account Settings </h2>
<ul>
<li><a href="adminchangepass.jsp">Change Password </a></li>
<li><a href="criminalreport.jsp">All CriminalReport </a></li>
</ul>
</li>
<li>
<h2>More Facilities </h2>
<ul>
<li><a href="chat.jsp">Chat</a></li>
<li><a href="compose.jsp">Mail</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span
class="style1</span></em></p>
</div>
</body>
</html>
History Register
<li><a href="viewcontacts.jsp">Contacts</a></li>
<li><a href="login.jsp">Logout</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<span class="style4"> </span>
<form id="form1" method="post" action="viewhistory.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 =
DriverManager.getConnection("Jdbc:mysql://localhost/crimefile", "root", "");
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery("select * from history");
String prisoner1 = "", typecrime1 = "", dateofoccu1 = "", place = "", briefdisofcase1
= "";
%>
<table width="501" height="49" border="1">
<tr>
<td width="41" height="43" ><span class="style5">pri.no</span></td>
<td width="71"><span class="style5">Crimetype</span></td>
<td width="37"><span class="style5">Date</span></td>
<td width="119"><span class="style5">Occurenceplace</span></td>
<td width="199"><span class="style5">Case Description </span><span
class="style5"></span></td>
</tr>
<%
while (rs.next()) {
prisoner1 = rs.getString("prisoner");
typecrime1 = rs.getString("typecrime");
dateofoccu1 = rs.getString("dateofoccu");
place = rs.getString("placeofocc");
briefdisofcase1 = rs.getString("briefdisofcase");
out.println("<td>" + prisoner1 + "</td>");
out.println("<td>" + typecrime1 + "</td>");
out.println("<td>" + dateofoccu1 + "</td>");
out.println("<td>" + place + "</td>");
out.println("<td>" + briefdisofcase1 + "</td>");
out.println("<tr>");
}
%>
</table>
</form>
<%
} catch (Exception e) {
out.println(e);
}
%>
<span class="style4">
<p> </p>
</span></div></td>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="newadmin.jsp">New admin </a></li>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span
class="style1</span></em></p></body></html>
View User Crime
<%@page import="java.io.*,java.sql.*;" session="true"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
color: #CC9999;
font-weight: bold;
}
.style3 {color: #CC3333}
.style4 {
color: #C14744;
font-weight: bold;
}
-->
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>CrimeStation</h1>
<h2>within the hands of safe </h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="adminhome.html">Adminhome </a></li>
<li><a href="viewusercomplaint.jsp">Usercomplaint </a></li>
<li><a href="viewusercrime.jsp">Usercrime</a></li>
<li><a href="viewcontacts.jsp">Contacts</a></li>
<li><a href="login.jsp">Logout</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>Welcome to crimeStation!</h2>
<div><table width="501" height="289" border="0" align="left">
<tr>
<td width="505" height="285" class="style3"><div align="justify"><span
class="style4"> <p> </p>
</span>
<span class="style4"> </span>
<form id="form1" method="post" action="takecrimeaction1.jsp">
<%
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con1 =
DriverManager.getConnection("Jdbc:mysql://localhost/crimefile", "root", "");
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery("select * from crimereport");
String userid = "", nameinformant1 = "", addressinfmant = "", details = "",
description = "",dat = "";
%>
<table width="495" height="49" border="1" align="left">
<tr>
<td width="86" height="43" >Userid</td>
<td width="90">Nameofinformant</td>
<td width="84">Addressinformant</td>
<td width="101">DetailSuspect</td>
<td width="101">Description</td>
<td width="101">Date</td>
</tr>
<%
while (rs.next()) {
userid = rs.getString("userid");
nameinformant1 = rs.getString("ninformant");
addressinfmant = rs.getString("addressinf");
details = rs.getString("detailssuspect");
description = rs.getString("description");
dat=rs.getString("datec");
out.println("<tr>");
out.println("<td>" + userid + "</td>");
out.println("<td>" + nameinformant1 + "</td>");
out.println("<td>" + addressinfmant + "</td>");
out.println("<td>" + details + "</td>");
out.println("<td>" + description+ "</td>");
out.println("<td>" + dat + "</td>");
out.println("<td><a href='takecrimeaction1.jsp?id=" +userid+"'>Action</a></td>");
out.println("<tr>");
}
%>
</table>
</form>
<%
} catch (Exception e) {
out.println(e);
}
%>
<span class="style4">
<p> </p>
<p> </p>
</span></div></td>
</tr>
</table>
</div>
</div>
<div id="colTwo">
<ul>
<li>
<div align="center"><strong>
</strong>
</div>
</li>
<li>
<h2>New Additions</h2>
<ul>
<li><a href="newadmin.jsp">New admin </a></li>
<li><a href="hotnews.jsp">Hot News </a></li>
<li><a href="viewhotnews.jsp">View Hot News </a></li>
<li><a href="addnewcontact.jsp">Add Contacts </a></li>
<li><a href="mostwanted.jsp">Most Wanted </a></li>
<li><a href="viewadminwanted.jsp">View/Delete MostWanted </a></li>
<li><a href="missingperson.jsp">Missing Persons </a></li>
<li><a href="viewadminmissing.jsp">View/Delete Missing Persons </a></li>
<li><a href="criminalregister.jsp">Criminal Register </a></li>
<li><a href="viewcomplaintreply.jsp">View Allcomplaintreply </a></li>
<li><a href="prisonerreg.jsp">Prisoners Register </a></li>
<li><a href="prisonerreport.jsp">ViewPrisonerReport </a></li>
<li><a href="history.jsp">History</a></li>
<li><a href="viewhistory.jsp">View History</a></li>
<li><a href="fir.jsp">FIR</a></li>
<li><a href="firreport.jsp">FIR Report</a></li>
</ul>
</li>
<li>
<h2>Account Settings </h2>
<ul>
<li><a href="adminchangepass.jsp">Change Password </a></li>
<li><a href="criminalreport.jsp">All CriminalReport </a></li>
</ul>
</li>
<li>
<h2>More Facilities </h2>
<ul>
<li><a href="chat.jsp">Chat</a></li>
<li><a href="compose.jsp">Mail</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="footer">
<p>Copyright © 2009 cfm. Designed by<em> <span
class="style1</span></em></p>
</div>
</body>
</html>
6. Testing Introduction
Software testing should not be confused with debugging. Debugging is the process of
analyzing and localizing bugs when software does not behave as expected. Although the
identification of some bugs will be obvious from playing with the software, a methodical
approach to software testing is a much more thorough means for identifying bugs.
Debugging is therefore an activity which supports testing, but cannot replace testing.
Other activities which are often associated with software testing are static analysis and
dynamic analysis. Static analysis investigates the source code of software, looking for
problems and gathering metrics without actually executing the code. Dynamic analysis
looks at the behavior of software while it is executing, to provide information such as
execution traces, timing profiles, and test coverage information.
Testing is a process of executing a program with the intend of findingan error.
A good test case is one that has high possibility of finding an undiscovered error.
A successful test is one that uncovers an undiscovered error.
If a testing is conducted successfully according to the objectives as stated above, it
would uncovered errors in the software also testing demonstrate that the software function
appear to be working according to the specification, that performance requirement appear
to have been met.
There are three ways to test program.
For correctness
For implementation efficiency
For computational complexity
Test for correctness are supposed to verify that a program does exactly what it was
designed to do. This is much more difficult than it may at first appear, especially for large
programs.
6.1 TEST PLAN
A test plan implies a series of desired course of action to be followed in accomplishing
various testing methods. The Test Plan acts as a blue print for the action that is to be
followed. The software engineers create a computer program, its documentation and related
data structures. The software developers is always responsible for testing the individual
units of the programs, ensuring that each performs the function for which it was designed.
There is an independent test group (ITG) which is to remove the inherent problems
associated with letting the builder to test the thing that has been built. The specific
objectives of testing should be stated in measurable terms. So that the mean time to failure,
the cost to find and fix the defects, remaining defect density or frequency of occurrence and
test work-hours per regression test all should be stated within the test plan.
The levels of testing include:
Unit testing
Integration Testing
Data validation Testing
Output Testing
Unit testing focuses verification effort on the smallest unit of software design – the
software component or module. Using the component level design description as a guide,
important control paths are tested to uncover errors within the boundary of the module. The
relative complexity of tests and uncovered scope established for unit testing. The unit
testing is white-box oriented, and step can be conducted in parallel for multiple
components. The modular interface is tested to ensure that information properly flows into
and out of the program unit under test. The local data structure is examined to ensure that
data stored temporarily maintains its integrity during all steps in an algorithm’s execution.
Boundary conditions are tested to ensure that all statements in a module have been
executed at least once. Finally, all error handling paths are tested.
Tests of data flow across a module interface are required before any other test is
initiated. If data do not enter and exit properly, all other tests are moot. Selective testing of
execution paths is an essential task during the unit test. Good design dictates that error
conditions be anticipated and error handling paths set up to reroute or cleanly terminate
processing when an error does occur. Boundary testing is the last task of unit testing step.
Software often fails at its boundaries.
Unit testing was done in Sell-Soft System by treating each module as separate entity and
testing each one of them with a wide spectrum of test inputs. Some flaws in the internal
logic of the modules were found and were rectified.
Integration testing is systematic technique for constructing the program structure while
at the same time conducting tests to uncover errors associated with interfacing. The
objective is to take unit tested components and build a program structure that has been
dictated by design. The entire program is tested as whole. Correction is difficult because
isolation of causes is complicated by vast expanse of entire program. Once these errors are
corrected, new ones appear and the process continues in a seemingly endless loop.
After unit testing in Sell-Soft System all the modules were integrated to test for any
inconsistencies in the interfaces. Moreover differences in program structures were removed
and a unique program structure was evolved.
This is the final step in testing. In this the entire system was tested as a whole with all
forms, code, modules and class modules. This form of testing is popularly known as Black
Box testing or System tests.
Black Box testing method focuses on the functional requirements of the software. That
is, Black Box testing enables the software engineer to derive sets of input conditions that
will fully exercise all functional requirements for a program.
Black Box testing attempts to find errors in the following categories; incorrect or
missing functions, interface errors, errors in data structures or external data access,
performance errors and initialization errors and termination errors.
The system considered is tested for user acceptance; here it should satisfy the firm’s
need. The software should keep in touch with perspective system; user at the time of
developing and making changes whenever required. This done with respect to the
following points
The above testing is done taking various kinds of test data. Preparation of test data plays a
vital role in the system testing. After preparing the test data, the system under study is
tested using that test data. While testing the system by which test data errors are again
uncovered and corrected by using above testing steps and corrections are also noted for
future use.
Validation Checking:
7. Introduction
Implementation is the stage of the project where the theoretical design is tuned into
a working system. At this stage the main work load, the greatest upheaval and the major
impact on the existing system shifts to the user department. If the implementation is not
carefully planned and controlled it can create chaos and confusion.
Implementation includes all those activities that take place to convert from the
existing system to the new system. The new system may be a totally new, replacing an
existing manual or automated system or it may be a modification to an existing system.
Proper implementation is essential to provide a reliable system to meet organization
requirements. The process of putting the developed system in actual use is called system
implementation. This includes all those activities that take place to convert from the old
system to the new system. The system can be implemented only after through testing is
done and if it is found to be working according to the specifications. The system personnel
check the feasibility of the system. The more complex the system being implemented, the
more involved will be the system analysis and design effort required to implement the three
main aspects: education and training, system testing and changeover. The implementation
state involves the following tasks:
Careful planning.
Investigation of system and constraints.
Design of methods to achieve the changeover.
Training of the staff in the changeover phase.
Implementation of software refers to the final installation of the package in its real
environment, to the satisfaction of the intended uses and the operation of the system. In
many organizations someone who will not be operating it, will commission the software
development project. In the initial stage people doubt about the software but we have to
ensure that the resistance does not build up, as one has to make sure that
The active user must be aware of the benefits of using the new system.
Their confidence in the software is built up.
Proper guidance is imparted to the user so that he is comfortable in using the
application.
Before going ahead and viewing the system, the user must know that for viewing
the result, the server program should be running in the server. If the server object is not up
running on the server, the actual process won’t take place.
User training is designed to prepare the user for testing and converting the system.
To achieve the objective and benefits expected from computer based system, it is essential
for the people who will be involved to be confident of their role in the new system. As
system becomes more complex, the need for training is more important. By user training
the user comes to know how to enter data, respond to error messages, interrogate the
database and call up routine that will produce reports and perform other necessary
functions.
After providing the necessary basic training on computer awareness the user will
have to be trained on the new application software. This will give the underlying
philosophy of the use of the new system such as the screen flow, screen design type of help
on the screen, type of errors while entering the data, the corresponding validation check at
each entry and the ways to correct the date entered. It should then cover information
needed by the specific user/ group to use the system or part of the system while imparting
the training of the program on the application. This training may be different across
different user groups and across different levels of hierarchy.
Once the implementation plan is decided, it is essential that the user of the system is
made familiar and comfortable with the environment. Education involves right atmosphere
and motivating the user. A documentation providing the whole operations of the system is
being developed in such a way that the user can work with it in well consistent way. The
system is developed user friendly so that the user can work the system from the tips given
in the application itself. Useful tip and guidance is given inside the application itself to help
the user. Users have to be made aware that what can be achieved with the new system and
how it increases the performance of the system. The user of the system should be given a
general idea of the system before he uses the system.
software cycle is the time in which a software product performs useful work. After a
The need for system maintenance is for it to make adaptable to the changes in the
Mistakes". Maintenance may be defined by describing four activities that are undertaken
after a program is released for use.
8. SCREEN SHOTS
Home Page
User Register
Login
User Homepage
Complaint Report
Crime Report
Missing Person
Chat
Chat Start
Admin Homepage
Criminal Report
Mostwanted person
Upload Photos
View Usercomplaint
9. Conclusion
The project titled as “Online Crimefile Management” is a web based application. This
software provides facility for reporting online crimes, complaints, missing persons, show
mostwanted person details mailing as well as chatting. SThis software is developed with
scalability in mind. Additional modules can be easily added when necessary. The software
is developed with modular approach. All modules in the system have been tested with valid
data and invalid data and everything work successfully. Thus the system has fulfilled all the
objectives identified and is able to replace the existing system.
The project has been completed successfully with the maximum satisfaction of the
organization. The constraints are met and overcome successfully. The system is designed
as like it was decided in the design phase. The project gives good idea on developing a full-
fledged application satisfying the user requirements.
The system is very flexible and versatile. This software has a user-friendly screen that
enables the user to use without any inconvenience. Validation checks induced have greatly
reduced errors. Provisions have been made to upgrade the software. The application has
been tested with live data and has provided a successful result. Hence the software has
proved to work efficiently.
10. Bibliography
BOOKS:
Charles Hampfed (2000) ‘Instant Java Server Pages’ University of Toronto
Herbert Schildt (2000) ‘Java Complete Reference’ Tata McGraw Hill
John Zukowski (2000) ‘Mastering Java2’ BPB Publications
Jamie Jaworsky ‘J2EE Bible’ Techmedia
Stefen Denninger ‘Enterprise Java Beans-2.1’ Author’s Press
Ian Somerville ‘Software engineering’
Rajeev mall ‘Software engineering’
Elmasri Navathe ‘Fundamentals of database systems’
ONLINE REFERENCE:
www.theserverside.com
www.java.sun.com