94
1. Introduction 1.1 About Project Developing an online comprehensive crime reporting system to improve the communication between police and public which helps to improve the time utilization for solving crimes and not much time is wasted to communicate with police. So, to reduce the time and increase problem solving efficiency in time period, this application will be more helpful. The Administrator is the key person for the entire application. He maintains all the users details, manages and view graphs, logs, alerts, help book, maintains backup, generates reports. He also has secure registration. He can communicate with the other users through chat; besides can send mails to the users. A police also have secure registration. He views the crime report sent by the public and starts investigation on the case. He verifies whether all the proofs attached to it are valid or not and take the next step in the investigation. After the investigation, he sends the report containing the proofs to the administrator and closes the case. During the investigation, he sets the status of the case to make aware of the public and the admin. After the submission, FIR form is filled. He can communicate with the other users through chat; besides can send mails to the admin and public. 1

cwc

Embed Size (px)

DESCRIPTION

crime investigation

Citation preview

Page 1: cwc

1. Introduction1.1 About Project

Developing an online comprehensive crime reporting system to improve

the communication between police and public which helps to improve the time

utilization for solving crimes and not much time is wasted to communicate with

police. So, to reduce the time and increase problem solving efficiency in time

period, this application will be more helpful.

The Administrator is the key person for the entire application. He

maintains all the users details, manages and view graphs, logs, alerts, help book,

maintains backup, generates reports. He also has secure registration. He can

communicate with the other users through chat; besides can send mails to the

users.

A police also have secure registration. He views the crime report sent by

the public and starts investigation on the case. He verifies whether all the proofs

attached to it are valid or not and take the next step in the investigation. After the

investigation, he sends the report containing the proofs to the administrator and

closes the case. During the investigation, he sets the status of the case to make

aware of the public and the admin. After the submission, FIR form is filled. He

can communicate with the other users through chat; besides can send mails to the

admin and public.

User can report through online by filling the report form. This form has

different fields to describe the crime details regarding the crime type, details of

victims, suspects, reporters. They can check the status of their case through

progress tracking. Proofs should also be submitted along with the report. They can

also assign the case to security agents, detectives also. Public may communicate

with all the other users through mails, chat. To make the people aware of the

crime and criminals, alerts are included in the application. Along with this, first-

aid information, help book are there to guide the people in emergency. Feedback

form is also included in the application to improve the efficiency of the system.

1

Page 2: cwc

2. Project Analysis2.1 Purpose of the Project

My Mission-City without Crime- an online comprehensive crime

reporting system to engage public, NGOs, police and government agencies to be

more quick, proactive and responsive to fight with crime and criminals.

Conventionally the citizen has to go to Police station in person to

report the crime and anonymous events like thefts, murder, missing citizens, dead

bodies and other miscellaneous events. Where we produce an online

comprehensive crime reporting system, police and other officials responds in right

time .So crimes are solve and conclude in an effective period .

2.2Existing System Existing system is not providing missing citizen information’s.

Existing system is not providing facilities for searching capabilities like

crime and criminal search – region, crime-type, gender, age group wise

etc.

Existing system is not providing facilities for secure registration and

profile management facilities for detectives and security agencies.

Existing system is not providing Facility for communication between all

stakeholders.

2.2.1. Problem in existing System

Existing system developed in intra network.

Public cannot interact through internet.

Authentication of reporters cannot be done.

2.3 Proposed System

2

Page 3: cwc

The development of this new system contains the following activities, which try to

automate the entire process keeping in the view of database integration approach.

Proposed system is providing facilities for secure registration and profile

management facilities for detectives and security agencies.

Proposed system is providing Facilitate communication between all

stakeholders.

Proposed system is providing facilities for searching capabilities like

crime and criminal search – region, crime-type, gender, age group wise

etc.

Proposed system provides the information about the Missing citizen or

valuables.

This provides the facility of Recognition of citizen and other users’

contribution in solving criminal issues.

3. Requirement Analysis

3

Page 4: cwc

3.1 Purpose and Scope

PurposeMy Mission-City without Crime- an online comprehensive

crime reporting system to engage public, NGOs, police and

government agencies to be more quick, proactive and responsive to

fight with crime and criminals.

Conventionally the citizen has to go to Police station in

person to report the crimes and anonymous events like thefts,

murder, missing citizens, dead bodies and other miscellaneous

events. Where we produce an online comprehensive crime

reporting system, police and other officials responds in right

time .So crimes are solve and conclude in an effective period .

Scope Reporting forms are available on web.

Proofs are enclosed online.

Verification of recognized citizens on web page.

Allot unique identity number to each complaint.

Track all the police and complainers contact details.

Complainer’s details are hidden by the user’s request.

Maintain the centralized database to provide a security

to information of complainers.

Search tool is provided to recognize the criminals..

Progress tracking tool is made available.

Complainers are furnished with case details.

Police are only liable to access to investigation tool.

Every police station unique identity to access

investigation tool.

Complaints are maintained in general diary.

Secure registration and profile management for

detectives and security agencies.

Feedback is maintained for efficiency.

4

Page 5: cwc

Helpdesk is maintained for user queries.

3.2. Users of the System

Public

Police

Security Agencies

Administrator

Detectives

4. Specific Requirements4.1 Functional and Non- Functional Requirements

Functional Requirements

5

Page 6: cwc

i. Crime Reporting forms, progress tracking, proof attachments

ii. Facilitate crime and criminals search – region, crime-type,

gender, age group wise etc.

iii. Missing citizen or valuables reporting and search

iv. Recognition of citizen and other users’ contribution in solving

criminal issues.

v. Secure registration and profile management facilities for

detectives and security agencies.

vi. Facilitate communication between all stakeholders - Discussion

forum/chat/mail/polls.

vii. Help book & time-to-time instructions to users through mail.

viii. Strategic data and graphs for admin and police authority

Non-functional Requirements

i. Secure access of confidential data (user’s details). SSL can be

used.

ii. .24 X 7 availability

iii. Better component design to get better performance at peak time

iv. Flexible service based architecture will be highly desirable for

future extension

4.2 User Interface Requirements Professional look and feel

Use of AJAX at least with all registration forms

Browser testing and support for IE, NN, Mozilla, and Fire fox.

Reports exportable in .XLS, or any other desirable format.

4.3 System Architecture

6

Page 7: cwc

Fig1: System Architecture

4.4. Block diagram

7

Page 8: cwc

Fig2: Block Diagrams

5. System Requirements

8

Page 9: cwc

5.1. Technologies Used

1. UML

2. J2EE

3. AJAX

UML

The Unified Modeling Language (UML) is an open method

used to specify, visualize, construct and document the artifacts of an

object-oriented software-intensive system under development.[1]

UML offers a standard way to write a system's blueprints, including

conceptual components such as:

Actors,

Business processes and

System’s components and activities

J2EE

Java Platform, Enterprise Edition or Java EE is a widely used

platform for server programming in the Java programming language.

The Java EE Platform differs from the Java Standard Edition Platform

(Java SE) in that it adds libraries which provide functionality to

deploy fault-tolerant, distributed, multi-tier Java software, based

largely on modular components running on an application server.

AJAX:

9

Page 10: cwc

Asynchronous and JavaScript with XML or Ajax is a group of interrelated web

development techniques used on the client-side to create interactive web

applications. With Ajax, web applications can retrieve data from the server

asynchronously in the background without interfering with the display and

behavior of the existing page.

5.2. Tools Used

1. Eclipse 3.3

2. Oracle 10G

3. Rational Rose

6. System Design

10

Page 11: cwc

6.1.1 E- R Diagrams

Fig3: E-R diagram for City without Crime

6.2. Behavioral Diagrams

11

Page 12: cwc

maintain users details

generate reports

maintain backupmanage information

fill FIR forms send status to admin

registration

submit proofs view crime report

post report give feedback

check status

discussion forms

view all details

submit proofs

public

view case status

Police

Security Agencies

login

Admin

graphs

6.2.1. Use Case DiagramsA use case is a methodology used in system analysis in identify, clarify,

and organize system requirements. The use case is made up of a set of

possible sequences of interactions between systems and users in a

particular environment and related to a particular goal.

Fig4 :Use Case diagram for City without Crime

Description of Use Cases

12

Page 13: cwc

Name of the Use Case: Login

DescriptionAll the police, administrator, security agencies should login to access the

services provided by the application

Pre Condition: Each user must have a valid user id and password.

Post condition: Corresponding Pages for administrator, police, security

agencies will be displayed.

Flow of events Invoke the application Login page.

Enter the valid User ID and Password.

Click on Login button to access page.

Name of the Use Case: Registration

DescriptionEvery new user can register by clicking Registration Link

Pre Condition: The user must already have an account with application.

Post condition: Registration page is displayed.

Flow of events Invoke the Registration page.

Fill all the details of the page

Name of the Use Case: Post Report

DescriptionThis is used to report a case related to vehicles, valuables, missing citizen,

crime.

Pre Condition: Ration card number is must.

Flow of events

13

Page 14: cwc

Invoke the application Home page.

Select the Reporting form.

Enter the details in the Reporting form

Name of the Use Case: Give Feedback

Description: This is used to give feedback on the website.

Precondition: Need to open the feedback form

Post Condition: Enter the feedback

Name of Use case : Check status

Description: It is used to check the status of the case

Precondition: Case Status need to be entered

Post Condition: displays the status of the case

Flow Events enter the case number

enter the type of the case

Displays the status of the case

Name of Use case: Submit Proofs

Description: Proofs are needed to be submitted along with the reporting forms

Precondition: Proofs are essential

Post Condition: Proofs will be attached and submitted as a part of the reporting form

Flow Events Open the Reporting form page

Fill the details

Attach Proofs along with the reporting forms

Submit the form

Name of Use case: Discussion Forms

14

Page 15: cwc

Description: This is used to discuss with the users of the application

Precondition: The users need to have the category related to the question

Post Condition: The reply or data gets posted in the form

Flow Events Enter into the discussion form page

Select the category

Post the question or reply

Name of Use case: View Crime Report

Description: This is used to view the crime report posted by the public.

Precondition: The user should be administrator or police or security agencies

or detectives.

Post Condition: All the cases related to a category of reporting forms are

displayed.

Flow Events Go to the corresponding category of the cases

Select the required case number

All the details regarding the case are displayed

Name of Use case: Check status

Description: This is used to check the status of the case whether it is pending or

confirmed

Precondition: Case number should be known along with the category

Post Condition: The data related to the entered case number and caterory will

be displayed

Flow Events Enter the case number

Select the category of the case

The details of the case is displayed

Name of Use case: Maintain user details

15

Page 16: cwc

Description: Maintains the details of the police, security agencies, and other

users

Precondition: User should be a registered user or a victim for a case

Post Condition: Details of the users are maintained in the database.

Name of Use case: Generate reports

Description: This is used to generate reports for some particular data when a

specification is given.

Precondition: Police station id need to be given.

Post Condition: Generates reports for the given specification such as police

station name

Flow Events Enter the police station name

Reports are generated in the form of tables.

Name of Use case: Maintain information

Description: The information related to the alerts, help book, road maps and

other static data will be maintained by the administrator.

Precondition: The users need to be an administrator

Post Condition: Updations will be made on the previous data

Flow Events View the old data

Enter the new data

Update the information

Name of Use case: Maintain backup

16

Page 17: cwc

Description: This is used to maintain the backup of the data weekly once.

Precondition: The user should be an administrator

Post Condition: Back up is maintained in the database

Flow Events Enter the from date and to date

Backup is generated

Name of Use case: graphs

Description: this is used to generate graphs for the cases related information

Precondition: The police station id need to be known

Post Condition: generates graphs for the corresponding police station.

Flow Events Enter the police station id

Graphs are generated

6.2.2 Class Diagrams

17

Page 18: cwc

A class diagram is an illustration of the relationships and source code

dependencies among classes in the unified modeling language. In this context, a

class defines the methods and variables in an object, which is a specific entity in a

program or the unit of code representing that entity.

Publicfullnameemailaddressmob_noh_norationcardnocasenoname : type = initval

reportcrime()reportlost()viewalerts()viewhelpbook()viewOtherDetails()

Administratoruseridpasswordaddressmob_noh_phonefax

sendAlerts()addPoliceStationDetails()addCriminal()casestatus()

Criminalcriminal_namecriminal_idno_of_complaintsyearsprisonedcase_numcrime_type

reports on

1..n

1..n

Security Agencysec_nameaddressemail_idpasswordmob_norationcardnotrainedatfaxnofathernamemothernamedutygendercitystateservicenobackground

viewcriminaldetails()viewreports()viewalerts()viewhelpbook()viewotherdetails()

deals case

0..1

1..n

Policepol_nameaddressemail_idpasswordmob_norationcardnotrainedatfaxnofathernamemothernamedutygendercitystateserviceno

viewcriminaldetails()viewreports()viewalerts()viewhelpbook()viewotherdetails()

0..11..* 0..11..*

complaints to

1..n

1..n

finds

1..n

1..n

manages details

0..1

1..n

manages details0..1

1..n

sends alerts

0..1

1..n

Fig 5: Class Diagram

6.2.3. Sequence Diagrams

18

Page 19: cwc

Sequence diagram is a diagram that shows object interactions arranged in

time sequence. In particular it shows objects participating in the interaction and

the sequence of messages exchanged.

Login

user gui database

enter username,password

checks for authentication

validate

display the validation(success.fail)

Fig 6: Login

Check Status

public gui database

enter the case numberfetch the information

display the status

Fig 7: Check Status

Feedback

19

Page 20: cwc

user gui database

enter the feedback information

post the information

Fig 8: Feedback

Registration

user gui database

enter the detailspost the registration form

registration successful

Fig 9: Registration

View Public Details

20

Page 21: cwc

user gui database

seek for public details

fetch the database

display details

Fig 10: View Public Status

Send Status to admin

user gui database

login

post the status

set status of the case

status send successfully

Fig 11: Send status to admin

Fill FIR forms

21

Page 22: cwc

polise gui database

seek FIR form

fetch the database

fill FIR forms

post the form

form filled successfully

Fig 12: Fill FIR forms

Submit Reports

user gui database

fill the report

submit reportpost

report submitted successfully

Fig 13: Submit Reports

6.2.4. Collaboration Diagrams

22

Page 23: cwc

A collaboration diagram also called a communication diagram or

interaction diagram is an illustration of the relationships and interactions

among software objects in the unified modeling language.

Login

user gui

database

1: enter username,password

2: checks for authentication

3: validate

4: display the validation(success.fail)

Fig 14: Login

Check Status

public gui

database

1: enter the case number

2: fetch the information3: display the status

Fig 15: Check Status

Feedback

23

Page 24: cwc

user gui

database

1: enter the feedback information

2: post the information

Fig 16: Feedback

Registration

user gui

database

1: enter the details

2: post the registration form3: registration successful

Fig 17: Registration

View Public Status

24

Page 25: cwc

user gui

database

1: seek for public details

2: fetch the database3: display details

Fig 18: View Public Status

Send status to admin

user gui

database

1: login2: set status of the case

3: post the status4: status send successfully

Fig 19: Send status to admin

Fill FIR forms

25

Page 26: cwc

polise gui

database

1: seek FIR form

2: fetch the database

3: fill FIR forms

4: post the form5: form filled successfully

Fig 20: Fill FIR forms

Submit Reports

user gui

database

3: post4: report submitted successfully

1: fill the report2: submit report

Fig 21: Submit Reports

6.2.5. Activity Diagrams

26

Page 27: cwc

View logs

seek information of all users

fetch the required data

display user details

view logsretry

login

Fig 22: View logs

Chats

27

Page 28: cwc

login

retry

select the user

send invite

communicate

Fig 23: Chats

Check status

28

Page 29: cwc

check the status of the case

fetch the status

display status

Fig 24: Check status

Feedback

fill feedback form

post the information

Fig 25:Feedback

Fill fire forms

29

Page 30: cwc

retry

login

seek FIR fom

display form

fill form

post form

Fig 26: Fill fire forms

Post report

fill the form details

post details

Fig 27: Post report

30

Page 31: cwc

Login

enter login,password

authentication success

check for valid

Yes

invalid username,password

No

Fig 28: Login

Maintain backup

login

maintain data in system

generated backup

retry

Fig 29: Maintain backup

31

Page 32: cwc

Manage information

retry

login

enter details of information

request old information

display information

update and post

Fig 30: Manage information

Registration

enter details of the form

post form

Fig 31: Registration

32

Page 33: cwc

Send status to admin

set status the case

post status

send status of the report

Fig 32: Send status to admin

View public details

user ask for details

display details of the public

Fig 33: View public details

33

Page 34: cwc

Submit report

seek the report form

fill the report

submit report

Fig 34: Submit report

34

Page 35: cwc

View crime report

retry

login

seek crime report

display crime report

Fig 35: View crime report

35

Page 36: cwc

View details

retry

login

seek the details to viewed

enter details

seek data bace

Fig 36: View details

36

Page 37: cwc

6.2.6 Component Diagram

Fig 37: Component Diagram

37

front panel core system component

data base component

administrator component

login registrationreporting formsfeedbackalertscheck status

login verificationstoring details

adinistrative servlets

vehiclesearchvaluablesearchmissingcitizenrepalertsfeedbackpolicestationdetailscrimereport

Page 38: cwc

6.2.7 Deployment Diagram

Deploy Database<<Dserver>>

Deploy frontpanel1<<client>>

System Administrative Servlets

<<Server>>

Deploy frontpaneln<<client>>

Deploy frontpanel2<<client>>

Fig 38: Deployment Diagram

38

Page 39: cwc

6.3 System Specific ModulesThe system after careful analysis has been identified to be presented with the

following modules:

1. Admin Module

2. Police Module

3. Detectives and Security agencies

4. Public Module

Admin Module Admin can register the police’s in a state.

Admin can accept the detective and security agencies requests.

Admin can assign some criminal cases to particular detective and security

agencies.

Admin can view all criminal’s information.

Admin can view all missing people information.

Admin can view all type of criminal cases information.

Police Module Police can enter all criminal’s information.

Police can enter all missing people’s information and he provides some

contact information’s.

Policies can view the all queries raised by the public and takes some action

depends up on the proof.

Police can upload some critical criminal cases to administrator.

Police can join discussion forums.

Police can send mails to others.

39

Page 40: cwc

Detectives and Security agencies Detectives and security agencies can take some cases from administrator

or normal public.

Detective can start the some discussion forums and post some information

to others.

Detectives and security agencies can enquiry of assigned cases and upload

the details to administrator.

Public Module Public can view all criminal’s information.

Public can view all Missing people’s information’s and intimate to

particular contact person or polices.

Public can also enter a relative’s people missing information and provide

some contact numbers.

40

Page 41: cwc

6.4. Screens

Home Page

Invoke the main page with browser using

url: http://localhost:8282/cwc/index.html

Login page

Login into personalized view Enter user id and password

41

Page 42: cwc

Admin Home pageThe Administrator is the key person for the entire application. He maintains all the

users details, manages and view graphs, logs, alerts, help book, maintains backup,

generates reports.

Crime Reporting formCrime Reporting form are useful to report about crimes. This form consists

information about suspect, victim and crime.

42

Page 43: cwc

Missing citizen reportingMissing citizen Reporting form is useful to report about Missing persons. This

form consists information about suspect, missing person and area.

Vehicle Reporting formVehicle Reporting form are useful to report about Vehicle related crimes. This

form consists information about suspect, Vehicle.

43

Page 44: cwc

Valuable reporting form Valuables reporting form are useful to report about lost and found valuables.

This form consists information about suspect, valuables.

Search PageSearch page consists search options such as crime, missing citizen, vehicle,

valuables.

44

Page 45: cwc

Criminal Search Criminal search consists options as name, crime type, gender and age.

Missing citizen Search Missing citizen search consists options as name, gender and age.

45

Page 46: cwc

Valuable Search Valuables search consists options as article name, lost on and reg no.

Case status Case status enables progress tracking of a particular case.

46

Page 47: cwc

Graphs Graphs gives areal crime statistics

Security AgenciesSecurity agencies pages give details of all security agencies.

47

Page 48: cwc

Traffic Improves the awarness in public.

About us Information gives about police department.

48

Page 49: cwc

Contact us Information about contact details and road maps.

Help Information about the application.

49

Page 50: cwc

FeedbackSuggestions, complaint of application taken from feedback.

50

Page 51: cwc

6.5. System Evolution Our system will provide services to the users who want to complaint

to the police. Also, they can interact with the police through

discussion forums.

System to be changed

Viewing the case status, searches for different types of

complaints like vehicle search, valuable search, missing citizen

search, criminal search.

Change Proposal

The change proposal to the existing system is to computerize

the existing system that exists today, that is to reduce work being

done manually and time consumption and to reduce paper work.

System understanding

Complete understanding of the system that is to be generated

i.e. a brief study of the requirements and Designing the system that is

to be developed

System Validation

Validation can be fined in many ways, but a simple definition is

that validation succeeds when software functions in a manner that

can be reasonably expected by the user, i.e. the user expected output

i.e. fulfilling all the user specified requirements.

51

Page 52: cwc

Modified System

Modified system provides online reporting facility which is not

available for existing system such that reporting forms, request for

search of complaints, checking case status, can be done through

online.

52

Page 53: cwc

7. Sample CodeLogin.jsp<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Untitled Document</title>

<script type="text/javascript" src="loginvalid.js"> </script>

</head>

<body>

<form name="loginform" method="get" action="./loginvalid" onSubmit="return

check()">

<table border="0" height="400" align="center"><tr>

<td width="294">

<table align="center" width="300">

<tr><td colspan="2" align="center"><h1>Login</h1></td></tr>

<tr>

<td>Userid:</td><td><input type="text" id="mail" name="mail"

onblur="mailid()"></td>

<td><p id="p1"></p></td>

</tr><tr></tr>

<tr>

<td>Password:</td><td><input type="password"

id="password" name="password" onblur="callme1()"></td>

<td><p id="xyz1"></p></td>

</tr><tr></tr>

<tr> <td align="center" colspan="2"> <input type="submit"

name="submit"></td> </tr>

</table>

53

Page 54: cwc

</td>

<td align="center" width="692"><br><br><br><img

src="images/policecommemorationday2008.jpg" width="400" height="320" />

<h3>Police Commemoration Day 2008</h3></td>

</tr></table>

</body>

</html>

Loginvalid.javaimport java.io.*;

import java.sql.*;

import javax.servlet.*;

import javax.servlet.http.*;

public class loginvalid extends javax.servlet.http.HttpServlet implements

javax.servlet.Servlet {

protected void doGet(HttpServletRequest request, HttpServletResponse

response) throws ServletException, IOException {

PrintWriter out=response.getWriter();

response.setContentType("text/html");

int i=0;

try

{

Class.forName("oracle.jdbc.driver.OracleDriver");

Connection

con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","city"

,"city");

Statement st=con.createStatement();

HttpSession sess=request.getSession();

String uid=request.getParameter("mail");

String psd=request.getParameter("password");

54

Page 55: cwc

sess.setAttribute("uid1",uid);

ResultSet rs=st.executeQuery("select * from registration");

while(rs.next())

{

String nm=rs.getString("email");

String ps=rs.getString("password");

if((uid.equalsIgnoreCase(nm))&&(psd.equalsIgnoreCase(ps)))

{

String des=rs.getString("designation");

if(des.equals("admin"))

{

i=1;

}

else if(des.equals("police"))

{i=2;

}else{

i=3;

}

}

}if(i==1){

RequestDispatcher

rd=request.getRequestDispatcher("adminhome.jsp");

rd.forward( request, response);

}

else if(i==2)

55

Page 56: cwc

{

RequestDispatcher

rd=request.getRequestDispatcher("policehome.jsp");

rd.forward( request, response);

}

else if(i==3)

{

RequestDispatcher

rd=request.getRequestDispatcher("agencyhome.jsp");

rd.forward( request, response);

}

else

{

RequestDispatcher

rd=request.getRequestDispatcher("fail.jsp");

rd.forward( request, response);

}

}

catch(Exception e)

{

out.println(e);

}

}

}

Adminhome.jsp<%@ page language="java" import="java.sql.*" contentType="text/html;

charset=ISO-8859-1"

pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

56

Page 57: cwc

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<style>

a {

text-decoration:none;

font-size:16px;

color:#88C552;

}

a:hover {

text-decoration:none;

font-size:20px;

color:orange;

}

BODY {

background: white;

}

</style>

</head>

<body>

<b>Hai</b>

<%

try{String r=(String)session.getAttribute("uid1");

Class.forName("oracle.jdbc.driver.OracleDriver");//loads the

oracle driver

Connection

con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","city"

,"city");//connection is created

Statement st=con.createStatement();//statement object is created

ResultSet rs=st.executeQuery("select fullname from registration

where email='"+r+"'");//selects tuples and stores in the database

while(rs.next()){ %>

<%=rs.getString(1)%><%}

57

Page 58: cwc

}

catch(Exception e)

{

e.printStackTrace();

}

%>...

<br><br><br><br><br>

<table align="center" width="250" height="150" vspace="1150">

<a href="password.html" target="rmenu">Change Password</a><br><br>

<a href="alerts.jsp" target="rmenu">Alerts</a><br><br>

<a href="Criminal.html" target="rmenu">Criminals</a> <br><br>

<a href="viewcases.html" target="rmenu">View Cases</a><br><br>

<a href="crimecases.html" target="rmenu">Post Case Status</a><br><br>

<a href="casestatusreport1.jsp" target="rmenu">Case Reports</a><br><br>

<a href="feedback.html" target="rmenu">Feedback</a><br><br>

<a href="polcaserep.jsp" target="rmenu">Graphs</a><br><br>

</table>

</body>

</html>

Crime Status.jsp<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Insert title here</title>

</head>

<body>

<h1 align="center">Case status</h1>

<form name="form" method="get"

action="./publiccasestatus"><br><br><br><br><br>

58

Page 59: cwc

<table align="center">

<tr>

<td>Enter Case.Reg Number:</td>

<td><input name="cno" maxlength="20" type="TextBox">Enter case.Reg No.

Like: 101cwc)</td>

</tr>

<tr>

<td>Enter Case Type</td>

<td><select name="ctype" size="1" tabindex="10" width="20px">

<option selected="selected" value="">---Select---</option>

<option value="veh">Vehicle Search</option>

<option value="val">Valuable Search</option>

<option value="mc">Missing Citizen Search</option>

<option value="cr">Crime Report</option>

</select></td>

</tr>

<tr>

<td colspan="2" align="center" height="40" valign="middle">

<input type="submit" value="Search" name="search"></input>

</td>

</tr>

</table>

</form>

</body>

</html>

Criminalsearch.jsp<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

59

Page 60: cwc

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Insert title here</title>

<script type="text/javascript" src="search1.js"></script>

</head>

<body bgcolor="eeeeee">

<form name="search" method="get" action="./criminalsearch1"

OnSubmit="return check()">

<p>&nbsp;</p>

<p align="center">CRIMINAL SEARCH</p>

<div align="center">

<table width="404" height="186" border="1">

<tr>

<td width="119">Name:</td>

<td colspan="2"><input type="text" name="criminalname"

onBlur="callme()"/></td>

<td><p id="xyz"></p></td>

</tr>

<tr>

<td>Crime type:</td>

<td colspan="2">

<select name="ctype" id="ctype">

<option>kidnap</option>

<option>robbery</option>

<option>murder</option>

</select>

</td>

</tr>

<tr>

<td>Gender:</td>

<td width="66">

<input type="radio" name="gender" id="gender" value="gender"

onBlur="checkForm()"/>

male

60

Page 61: cwc

</td>

<td width="205">

<input type="radio" name="gender" id="gender" value="gender"

onBlur="checkForm()"/>

female

</td>

</tr>

<tr>

<td>Age:</td>

<td colspan="2">

<select name="age" id="age">

<option>up to 20</option>

<option>21-40</option>

<option>40 above</option>

</select>

</td>

</tr>

<tr>

<td colspan="3"><div align="center">

<input type="submit" value="Submit"/>

</td>

</tr>

</table>

<p id="xyz">

<p>&nbsp;</p>

<p>&nbsp;</p>

<input type="file" name="pht"></form>

</body>

</html>

61

Page 62: cwc

8. Testing8.1. Functional Test cases:

S.NO DESCRIPTION TEST

STEPS

EXPECTED

RESULT

ACTUAL

RESULT

DEFE

CT ID

login_

001

Verify that user

should be able to

login to the system

Invoke

browser with

URL

Login page should be

displayed with the

following details

a)userid-text box

b)password –text box

c)login-button

d) Sign-up link

Login page

should be

displayed with

the following

details

a)userid-text box

b)password –text

box

c)login-button

d) Sign-up link

Enter

username

and password

in login page

and

click login

button

For the valid user the

home page of

corresponding user

should be displayed to

the user

For the valid

user the home

page of

corresponding

user should be

displayed to the

user

Enter

username

and null

password.

A message should be

displayed to user

entered password.

A message

should be

displayed to user

entered

password.

62

Page 63: cwc

Enter invalid

username

and

password.

Error page should be

displayed and prompts

user to re-login.

Error page

should be

displayed and

prompts user to

re-login.

Enter correct

username

and incorrect

password.

A message

‘invalid password’

should be displayed to

user.

A message

‘invalid

password’

should be

displayed to

user.

casesta

tus_00

2

Verify that user

Should be able to

details of case status Invoke

browser with

URL

Login page should be

displayed with the

following details

a)userid-text box

b)password –text box

c)login-button

d) Sign-up link

Login page

should be

displayed with

the following

details

a)userid-text box

b)password –text

box

c)login-button

d) Sign-up link

Enter

username

and password

in login page

and

click login

button

For the valid user the

home page of

corresponding user

should be displayed to

the user

For the valid

user the home

page of

corresponding

user should be

displayed to the

Enter the Displays the details of Displays the

63

Page 64: cwc

correct case

number in

the case

status page

and select the

type of the

case.

the case details of the

case

Enter the

incorrect

case number

A message shold be

appeared “invalid case

number”

A message shold

be appeared

“invalid case

number”

Valuab

lesearc

h_003

Displays all the

searches regarding

the information of

the valuables

Enter the

details of the

valuables

need to be

searched

Display the valuables

list related to the

entered details

Display the

valuables list

related to the

entered details

Vehicl

ereport

ingfor

m_004

To report a case

regarding the lost

vehicle

Enter the

details of the

vehilces need

Click the

submit

button

Inserts the vehicle

information in the

database

Inserts the

vehicle

information in

the database

polices

tationd

etails_

005

To add a police

station in the

database

Enter the

police station

id and police

station name

Click the

insert button

Adds a police station in

the database

Adds a police

station in the

database

Crimin

als_00

6

To add a criminal in

the database

Enter the

criminal

details in the

form

Adds a criminal in the

database

Adds a criminal

in the database

64

Page 65: cwc

8.2. Integration Test CasesTESTC

ASEID

DESCRIPTION TESTSTEPS EXPECTED

RESULTS

ACTUAL

RESULTSDEF

ECT

IDAlerts_

001

Inserts alert to the

database

Invoke browser

with URL

Login page should be

displayed with the

following details

a)userid-text box

b)password –text box

c)login-button

d) Sign-up link

Login page

should be

displayed with

the following

details

a)userid-text

box b)password

–text box

c)login-button

d) Sign-up link

Enter username

and password in

login page and

click login

button

For the valid user the

home page of

corresponding user

should be displayed to

the user

For the valid

user the home

page of

corresponding

user should be

displayed to the

user

Select the alerts

option

Enter the details of the

alert

Enter the details

of the alert

Click the submit

button

Inserts data to the

database

Inserts data to

the database

65

Page 66: cwc

postcas

estatus_

002

Posts the status of

the case whether

confirmed or

pending

Invoke browser

with URL

Login page should be

displayed with the

following details

a)userid-text box

b)password –text box

c)login-button

d) Sign-up link

Login page

should be

displayed with

the following

details

a)userid-text

box b)password

–text box

c)login-button

d) Sign-up link

Enter username

and password in

login page and

click login

button

For the valid user the

home page of

corresponding user

should be displayed to

the user

For the valid

user the home

page of

corresponding

user should be

displayed to the

user

Select the post

cases status

option

View the types of

cases

View the types

of cases

Select the status

of the case

Change the status of

the case

Change the

status of the

case

9. CONCLUSION

66

Page 67: cwc

Using this system general public, police or security agencies can report about

crimes .With this system reporters simply get into their case details and can

observe the case details according to their F.I.R. Both general public and police

communicate with each other through this system. Hence this system is used to

provide service.

10. Appendix A

Hardware and Software Configurations

67

Page 68: cwc

HARDWARE REQUIREMENTS: Pentium 233HZ 80 GB HD, 1024 MB RAM (Server).

Any P.C with Windows, 256 MB RAM (Client).

Internet connection with 33.6 KBPS Modem.

SOFTWARE REQUIREMENTS: Windows XP, Windows 07

Eclipse 3.3

JDK 1.5,web server running on any platform

JDBC ODBC 4.0 drivers installed

Database-Oracle10G

J2EE,AJAX

11. Appendix B

Data Base Tables

68

Page 69: cwc

Database Tables:1. Registration

2. crimereport

3. Vehiclesearch

4. Valsearch

5. Missingcitizenrep

6. Alerts

7. feedback

8. Polcaserep

9. Criminals

10. Policestationdetails

11. Btmv_categories

12. Btmv_topics

13. Btmv_posts

14. albums

Registration:

Fulln

ame

Fatherna

me

Mother

name

Gende

r

City Traini

ngat

State Zip_c

ode

Home_

ph

Mob_

ph

Fax Duty

_no

Servi

ce_no

Dob Age Address Service

bckgrnd

Email Password destinatio

n

Crimereport

Case_n

o

Email_i

d

Fullnam

e

addres

s

pi

n

mob_n

o

H_phon

e

rationcardn

o

69

Page 70: cwc

Suspect_

name

Suspect_

aliases

Suspect_

Ht

Suspect_

gender

Suspect_

features

Crime_

type

Police

station

name

status

Vehiclesearch

Case_n

o

Email_i

d

fullnam

e

addres

s

pi

n

mob_n

o

H_phon

e

rationcardn

o

Registration_

no

Model_n

o

Engine_n

o

Type_of_wheel

er

Policestationna

me

statu

s

Valsearch

Case_n

o

Email_i

d

fullnam

e

addres

s

pi

n

mob_n

o

H_phon

e

rationcardn

o

Article_name Loston description policestationname status

Missingcitizenrep

missedname aliases Relation_to_complainer Dob coston age missedat

heigh

t

policestationna

me

Hai

r

eye

s

Missed_gend

er

Missed_p

h

Missed_addre

ss

AlertsAlert_id Alert_name Alert_description

FeedbackSno Name Email feedback

70

Page 71: cwc

polcaserepServiceno Name Casesdealt Success Pending Policestationid Date1

CriminalsId Name Gender Age Caseno Crimetype region

PolicestationdetailsPolicesationid policestationname

btmv_categoriesSno Categoryname categorydesc

btmv_topicsSno B_csno Tname Tdesc Createdtime views

btmv_postsSno B_tsno B_csno Postdata posttime

albumsAid Aname Adesc Cdate udate

12. Appendix C

Limitations and Enhancements

71

Page 72: cwc

Limitations: Use of crime reporting system may cause certain problems such as

danger of hacking personal information such as name, address,

account number etc.

Online crime reporting can be difficult to learn for a beginner.

Enhancements: Reporter’s authentication verification through election

identification database.

Automatic mobile alerts are sending to all reporters, when the

database modifications had done.

Automatic system backup done, without any administrator

interaction.

Enhance to national wide web application.

Biometric technologies are used for reports authentication.

13. Appendix D

Bibliography

72

Page 73: cwc

The following books provided a lot of help to us in making this

project. The complete Reference Java2 By Patrick Naughton and Herbert Schildt,

TMH Publishing Company Ltd.

Java How To Program By H.M.Dietel and P.J.Dietel,Pearson

Education/PHI

Data Base Management Systems,Raghurama Krishnan, Johannes

Gerhrke,TATA McGraw-Hill

Software Engineering By Roger S.Pressman,McGraw Hill International

Edition Pressman

Websites:

o www.appolice.gov.in

o www.cyberabadpolice.gov.in

o www.met.police.uk

o www.ci.minneapolis.mn.us

73