Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CHAPTER-1
INTRODUCTION
In the present world all the government and non-government processes are getting automated by the use of software and web technologies. One of them is City administration which is a vital department for any City. Traditional approach faces various hindrances, slow working, more paper work, less interactivity among normal citizens and Local Municipal officers. Overcoming all these hurdles and providing better user friendly web application is a big challenge.
Active City Administration (ACA) is a web application which provides online services to citizen and Local Municipal officers at their doorstep. This is an online platform where people can share ideas, invoke discussions, issue complaints, create suggestion/petitions for improvement of city administration. This application is effective which provides quick services to citizens who can lodge a complaint online, check the complaint status online. The citizen can login and interact with any Local Municipal officer present in his city. Using Google Maps a special functionality has been provided to get information about the nearby Hospitals, Colleges, Banks & Hotels.
The Municipal officers are provided with the facility of maintaining each of their department in detail. He can access all the complaints, suggestions from users. Invoke proper activity in response to valid complaints, or redirect inappropriate complaints to the Citizens. He can also accept or reject the various given complaints. The admin can create Municipal officers, remove users, filter the content reported as inappropriate and handle threats. He is also responsible for maintaining the database of the system.
Page 1
Page 2
1.5 SCOPE
There are four basic users Citizen, Local Municipal Authority (LMA), Administrator and Non-Government Organizations (NGO).
To create different authority and assign corresponding privileges. To maintain a centralized database to provide security to the information this can be accessed only by the admin. To allow LMA (municipal officers) to log on to his account to view complaints, suggestions and feedbacks that are sent by citizens. To create Municipal officers to departments like Education, Health, Garbage
Collection, Water Supply, Roads and other departments as the first time setup. To provide transfer and promotion feature for employees. To track all the citizens and their contact details. To authenticate all users to utilize the service. To include FAQ section for users benefit.
Department of Computer Science/ BCA Page 3
CHAPTER-2
LITERATURE SURVEY
2.1 JAVA: Java is an object-oriented programming language developed by Sun
Microsystems a company best known for its high end UNIX workstations. Java language was designed to be small, simple and portable across platforms operating systems, both at the source and at the binary level, which means that java programs can run on any machine that has the Java virtual machine (JVM) installed.
2.2 J2EE: Java Platform Enterprise Edition or Java EE is a widely used platform
for server programming in the Java programming language. The Java platform(Enterprise Edition) 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 on modular components running on an application server.
2.3 AJAX: AJAX is an acronym for Asynchronous JavaScript and XML. AJAX
is a technique for creating fast and dynamic web pages. It allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page. Classic web pages, (which do not use AJAX) must reload the entire page if the content should change.
2.4 Web server- WASCE: WebSphere Application Server Community
edition is a free, certified java EE 5 server for building and managing Java applications. It is IBMs supported distribution of Apache Geronimo that uses Tomcat for servlet container and Axis 2 for web services. Over 15 WASCE developers are committers in the Apache Geronimo project.
Page 4
environment (IDE), made by IBMs Rational Software division, for visually designing, constructing, testing and deploying Web services, portals and Java (J2EE) applications.
2.6 Database platform DB2: Database is the database management system that delivers a flexible and cost effective database platform to build robust on demand business applications and supports the j2EE and web services standards. 2.7 Design tool- Rational Software Modeler: IBM Rational Software Modeler (RSM) made by IBMs Rational software division, is a Unified Modeling Language UML 2.0-based visual modeling and design tool. Rational Software Modeler is built on the Eclipse opensource software framework and includes capabilities focused on visual modeling and model-driven development (MDD) with the UML for creating resilient, through-out applications and web services. 2.8 Operating system-windows 7 -Windows 7 is the member of the Microsoft windows family of products and is successor of windows vista with some added functionality compared to windows vista. These features can be experienced while using Internet Explorer and some multimedia related things.
Page 5
CHAPTER-3
SYSTEM REQUIREMENT SPECIFICATION
System requirements set out the system services and constraints in detail. This requirement also provides information about the operational environment for the application. System requirements are further classified into two types: Software requirements Hardware requirements
CHAPTER-4
SYSTEM DESIGN 4.1 EXISTING SYSTEM
Slow working in conventional method. Various hindrances for the citizens Less interactivity among the citizens and Municipal Department. More paper work that consumes lot of time. Lack of involvement of people in exhibiting their responsibilities towards society.
4.2
PROPOSED SYSTEM
Users (Citizens)
Users should be able to create new account, log-in to their existing accounts which will give them the authority to use the services provided by the system. Authenticated users should be able to issue complaints, check complaint status, submit feedback and browse through other complaints and their feedback. Authenticated users should be able to create suggestions/petitions; other users can support or make suggestions for petitions; forward petitions to corresponding authority for possible implementation. Users can to create groups where users can share their experiences; discuss common problems, and the possible solution.
Page 7
Administrators
Create, and monitor accounts of authorities. Filter the content reported as inappropriate and handle threats. Handle complaints about improper response by municipal authorities.
NGO's:
NGO can form user groups similar to other users. NGO's can publicize their social causes on the site.
Page 8
CHAPTER-5
DETAILED DESIGN
5.1 Data Flow Diagram
The Data flow diagram provides a view of flows and what is going on inside a use case or among several classes. It can also be used to represent a classs method implementation. It contains activities representing in the performance of operations and their transitions that are triggered by the completion of operation.
Page 9
Page 10
Page 11
The citizen enters the complaint text and sends it to admin and the system generated Complaint_ID is returned to user.
Page 12
The admin views the complaint and then he may reply to the user or he may select the respective department and forwards the complaint to Department head.
Page 13
The system displays all the posts to the users. The user can select a thread from the recent posts and can reply for that post or he/she can create the new post. The user can directly create a new thread and in that he/she can create a new post. The user can also search for a particular topic and can select a thread from the results and can create a new post.
Page 14
Three-tier is a clientserver architecture in which the user interface, functional process logic ("business rules"), computer data storage and data access are developed and maintained as independent modules, most often on separate platforms. A model in which a server communicates with both a client and with a database.
Client Side: AJAX and HTML. Server Side: Java Server Pages Database: DB2
Page 15
Page 16
Page 17
USE CASE LoginIn View profile Update profile Issue complaint Suggestions Feedback View Complaint Check Complaint Status Groups Sign out
DESCRIPTION The citizen has to LogIn in order to. Every registered citizen has his/her own profile containing personal details. The citizen has the option to update his/her own profile. The citizen can file complaint to LMA. The citizen can view already posted suggestion and he can give suggestion. The citizen can view already given feedback and he can post feedback. The citizen can browse through other complaints and he can post complaints. The citizen can check the status of his complaints. The citizen can create group where he can post his views, search groups created by other users and he can those join groups. The citizen can sign out of his profile.
Page 18
USE CASE LogIn View complaint Feedbacks Suggestions Department Heads NGOs Delete Users Sign-out
DESCRIPTION Admin has to LogIn in order to start begin his work. Admin views the complaint sent by other users Admin can delete improper feedbacks posted by users. Admin can delete improper suggestions posted by users. Admin has authority to create new officers or LMAs. Admin can view list of NGOs who are registered. Admin has the authority to delete users. Admin can sign out of his profile.
Page 19
USE CASE LogIn View profile Update profile View complaint View suggestion View Feedback NGOs Sign out
DESCRIPTION LMA has to LogIn in order to: LMA has its own profile containing personal details. LMA has the option to update profile. LMA views the complaint and take necessary action. LMA can view suggestion posted by the users. LMA can view feedback posted by the users. LMA can view list of NGOs who are registered. LMA can sign out of his profile.
Page 20
USE CASE LogIn View profile Update profile Social Cause Groups Sign out
DESCRIPTION NGO has to LogIn in order to: NGO has its own profile containing personal details. NGO has the option to update profile. NGO can publish their social cause. NGOs can search groups and join them to post comments. NGO can sign out of his profile.
Page 21
Page 22
Page 23
Page 24
Page 25
Size 20 30 30 20 30 30
Primary Key
Foreign Key
Size 30 30 30 30 30
Primary Key
Foreign Key
Page 26
Size 10 10 25 10 8 30
Primary Key
Foreign Key
Size 8 10
Primary Key
Foreign Key
Page 27
Column Field Ngoid Password Vpassword Ngoname Email Contact Purpose Address City District State Pin
Data Type Char Char Char Char Char Char Char Char Char Char Char Bigint
Size 30 30 40 40 20 20 20 50 30 30 30 8
Primary Key
Foreign Key
Size 20
Primary Key
Foreign Key
Page 28
Size 20 20
Primary Key
Foreign Key
Size 8 30 10 4 30
Primary Key
Foreign Key
5.7.10 Table Name: GROUPCNT Column Field Groupid Nomembers Owner Data Type bigint bigint Char Size 8 8 30 Primary Key Foreign Key
Page 29
Size 8 200 4 30 10
Primary Key
Foreign Key
Size 8 30
Primary Key
Foreign Key
Page 30
CHAPTER-6
IMPLEMENTATION
6.1 Introduction
The goal of the implementation phase is to translate the design of the system produced during the design phase into a source code through a programming language which can be executed by the computer and which performs the computation specified by the design. For a given design, the aim is to implement the design in best possible manner.
JDBC Connectivity JDBC driver plays a vital role in the connection to the DB2. It opens the connection between the DB2 and J2EE component. The JDBC driver used in this project is com.ibm.db2.jcc.DB2driver.
1. Loading the JDBC driver:
Once driver is loaded, the J2EE component must connect to the DBMS using the DriverManager.getConnection() method. Connection con=DriverManager.getConnection(jdbc:db2:ACA);
3. Create and Execute a SQL statement:
String query1=SELECT * from CITIZEN; 4. Process data returned by the DBMS by the db2: Statement datarequest; Connection db; Datarequest=db.createStatement(); Resultset results=datarequest.executeQuery(SELECT * FROM CITIZEN);
Page 31
Page 32
To login, we have created two fields as username and password. The variables for username as usrname and password as pwd. After entering the details, the request() is activated and both the fields are checked for validation. If the details are true, then the control is redirected to page Citizen.frame.jsp else it returns false.
<form onsubmit="return checklogin()" method="post"> <table border="0" cellpadding="0" cellspacing="1"> <tbody> <tr><td width="104">User Name:</td> <td width="186"><input type="text" name="username" id="username" size="20"></td> </tr> <tr><td width="104"><br> </td><td width="186"><br> </td></tr>
Page 33
<% String comno=request.getParameter("complaintno"); String query1="update complaint set statusno=3 where complaintno="+comno; statement.executeUpdate(query1); String msg="Your Complaint has been Accepted"; %> <jsp:forward page="lmacomplaints.jsp"></jsp:forward>
To register the complaint, the complaintno parameter is taken. To update the complaint status number and the complaint,the above code is written. After the complaint registration,the message is displayed as, " Your Complaint has been Accepted" . As a result the page is redirected to "lmacomplaints.jsp".
Department of Computer Science/ BCA Page 34
CHAPTER-7
TESTING
7.1 TESTING SCOPE
Testing is a major part of any project development cycle. A project is incomplete without successful testing and implementation. A program or system design is perfect only when communication between the user and designer is complete and clear. A successful system design helps in efficient testing and implementation. Testing is vital to the success of the system. This chapter concentrates on testing conducted on the project. Testing has helped us in developing and improving the project especially the user interface.
Sl.no 1 2 3
Test case Correct User Login Incorrect User Login Citizen signup form
Expected output
Page 35
Page 36
Sl no 1 2 3 4 5 6
Test case Admin login View complaints Add LMA officer Suggestions Feedback Delete users
Expected output Success message and respective officer home page List of complaints from citizens List of LMA officers List of suggestions given by the citizens List of Feedbacks given by the citizens List of users admin want to delete
Page 37
1. state. 2.
Any defects are tested in progress through the sequence of states in the specified
All processing is carried out within time constraints laid down in Required Specification.
3.
System is tested against no fatal error. Correct navigation around forms and form to form is maintained.
Page 38
CITIZEN LOGIN
Page 39