Professional Documents
Culture Documents
SMARTCITY
SMARTCITY
Introduction
About Project:
City Guide is an essential when ever we are visiting a particular city.It gives us the
valuable information about the city and saves the time. Our project laid a web based platform
for the city guide and can search every place in the city with out taking the help of any
personal guide. You can search a city for its prominent places of the city user, and can get
social and political information of the city, city culture,security ,entertainment, Business
,Hotels,Jobs etc.,The main aim of this project services provided to the users who have
registered in the site. The services regarding to city political, historical, conventional places,
busroutes, business companies profile and jobs details.
Our project title is ‘SMART CITY’, a web-based product used to store the details of
particular city and helps all the users who just visits our website. This site also provides all
the services like Hotel booking for tourists, Ticket booking, Transport facility providing,
business related information , marketing details, citynews ,shopping detail. The website
contains the complete information about particular city like places to be visited,site maps
route maps, Business environment, Job portal, information about organization that
rovidetransport, Hospitality and total history of the city.This website can be used by any
person who is having general knowledge about internet. All the users will be first considered
as anonymous user later if he needs any service then he will be treated as registered user.
Overall description consists of background of the entire specific requirement. It also
gives explanation about actor and function which is used. It gives explanation about
architecture diagram and it also gives what we are assumed and dependencies. It also support
specific requirement and also it support functional requirement, supplementary requirement
other than actor which is used. It also gives index and appendices. It also gives explanation
about any doubt and queries.This system can be used as an application for the handicraft
employees and customers of the Handicraft company to manage the product information.
Customer logging should be able to upload the information of the any required product.
Customers/Company representatives logging in may also access/search any information of
product related.
1
2. Project Analysis
2.1 Purpose of the Project:
The main aim of this project services provided to the users who have registered in
the site. The services regarding to city political, historical, conventional places, busroutes,
business companies profile and jobs details. Smart city is a web-based product used to store
the details of particular city and helps all the users who just visits our website. This site also
provides all the services like Hotel booking for tourists, Ticket booking, Transport facility
providing, business related information , marketing details, citynews ,shopping detail. The
website contains the complete information about particular city like places to be visited,site
maps route maps, Business environment, Job portal, information about organization that
providetransport, Hospitality and total history of the city.This website can be used by any
person who is having general knowledge about internet. All the users will be first considered
as anonymous user later if he needs any service then he will be treated as registered user.
It facilitate communication between users,experts and general public through
chat/polls/mail. This will definitely help the users for the purpose of saving their valuable
time which can’t be got back which is also economically viable.This system provides a
registration form for all who wants to get the services. This can be categorized based on the
type of users. It provides different registration forms for different categories. In case of
students if they need to download any material or to get information about coaching centres
and college institutions/Incase of businessmen to get the information about any kind of
business/Incase of tourists to get the hospitality facilities/in case of jobseekers to get the
information about available job details they need to give their ID&PASSWORD for security
purpose and AC.NO only at the time of transactional providence.
2
2.2 Existing System:
In Existing system the person who are visiting a particular city need to gather
information from the person who is staying in the city or take the help of the guide in the city.
Gather of all these information you need to visit the city. This posses a lot of timeand pre-
planning. In order to get each piece of information we need to go for help desk.
The existing system is a manual system. Here the city information needs to save his
information in the form of excel sheets or Disk Drives.
There is no sharing is possible if the data is in the form of paper or Disk drives.
The manual system gives us very less security for saving data; some data may be lost
due to mismanagement.
The Proposed System provides an online information about the particular city going
to visit. It also provides additional services to the registered user. 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.
The system makes the overall project management much easier and flexible.
The city information files can be stored in centralized database which can be
maintained by the system.
3
3. Requirement Analysis
Scope:
4
4. Specific Requirements
Functional Requirements:
Complete-map of the city with key markets and places to see marked-preferably
usage of static map and live map option.
Start atleast 4 paid services like SMS alerts for city news, market daily rates.
Non-Functional Requirements:
24*7 availability
Better component design to get better performance at peak time
Flexible service based architecture will be highly desirable for future extension.
5
5. System Requirements
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
Eclipse
JDBC ODBC 2.0 drivers installed
Database-Oracle10G
J2EE,AJAX,XML
6
6. System Design
6.1 Data Flow Diagram
6.1.1 E-R Diagram:
7
<<include>> delete member
advertisements sms alerts
<<include>> <<include>> <<include>>
member
<<include>> modify member student
<<include>>
service
admin <<include>>
colleges
<<include>>
<<include>>
citymap
<<include>>
reports tourist spot
business updates
<<include>>
<<include>>
<<include>>
<<include>>
current market
political news
hotels
tourists
jobsportal
business man(or)jo
b seekers
Description:
Description:
Every user can directly access the website and visualize all the Information in the site.
Pre Condition: No pre condition exists
Flow of events:
8
Views the Required information pages.
Click on register to get registration.
Access required services through sign up into account.
Name of the Use Case: Reports
Description:
Every user can directly access the website and see all information in the reports.
Flow of events:
Description:
Every user can directly access the website and visualize all the services only after
registration.
Pre Condition: First register and Login with user_id and click services button
Flow of events:
9
6.2.2 Class Diagram: 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.
10
1: Invalid()
:Login
2: View Social
3: View Political
5: view Places
Places
9: Hotels
7: View Hotels
12:
6: View Logout
Bus routes
:Hotels
:Bus
:Logout Routes
11: Logout()
11
11: Pay fee
Student Institute
s
1: Login
2: Search for course
6: Select Course
8: Select Institutes
10: Display fee and Duration
12: Acknowledgemant
9: Request Fee
4: Notify()
5: Display Courses
7: Display Institutes
Data Window
Base
3: Request
3: Acknowledgement()
Data
Admin Hotel
Base
Management
2: Update() 1: Send Updates()
5: Update() 9: Acknowledgement()
8: Update()
4: Send Updates()
7: Send Updates()
6: Acknowledgement()
Colleges &
Institutes
Compani
es
1: Login
2: Request for site details 3: forwards to Admin
Business Window Admin
person
4: Send Reply
12
6.2.4 Sequence Diagram: 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.
1: Invalid()
2: View Social
3: View Political
4: View News,tvChannels
5: view Places
6: View Busroutes
7: View Hotels
8: View Emergency
9: Hotels
10: View Bus
11: Logout()
12: Logout
13
Businessperson Window Admin
Login
Send Reply
Send Updates()
Update()
Acknowledgement()
Send Updates()
Update()
Acknowledgement()
Send Updates()
Update()
Acknowledgement()
14
Student Window DataBase Institutes
Login
Display Courses
Select Course
Display Institutes
Select Institutes
Request Fee
Pay fee
Acknowledgemant
6.2.5 Activity Diagram: Activity diagram describes various activities that takes places given
in a particular process. The administrator activity diagram describes how the admin
performs various activities in order to provide various services to the different types of
users.The user activity diagram how the user will interact with the system and also various
services that are accessible by him.
15
Administrator
Invalid()
Political Social AddBu EditBus DelBus ConventPl Entertain BusRoute AddJob DelJo Editjob
16
Administrator
Invalid()
17
6.3 System Specific Module
There are five modules in our project .They are listed below with their description.
1. Administrator Module
2. Tourist Module
3. Student Module
4. Businessman Module
5. Jobseeker module
1.Administrator Module: The admin module is the major module as it is responsible for
carrying out the major operations regarding site updates,business updates ,job alerts etc., It
maintains information regarding other four modules.The various software components in
administrator module update alerts, update industries, update hotels, view resumes,update
,site information. The details regarding complete history such as political and social is
entered by admin and he want he can edit the details once entered.The details regarding
business details such as top companies in the city and its information are entered and he want
he can edit the details once entered.The details regarding job details such as job title,
vacancies and companies profile is entered by admin and he can edit the details once entered.
The details regarding regarding emergency such as phone numbers of with respect to
emergency is entered by admin and he can edit the details one he entered.The details
regarding regarding conventional places such as description an,location,address and image of
the place entered by him and he can edit the details once entered
The details regarding news papers, city channels such which papers are available in the city
entered by admin and he can edit the details once he entered.The details regarding political
leaders entered by admin and he can edit the details once he entered.
2. Tourist Module : Tourist module is maintaining the information regarding the city tourist
spot, hotels in the city entertainment in this city etc..,the user after registration as a tourist is
considered as authorized user. The various software components in the tourist module are
view theaters,vie hotels,view citymap,view ATM locations,view hospitals,view city
history,view travel agency,view bus routes.
3.Jobseeker Module : Jobseeker module is the commercial module as it need some paid
services. The Jobseeker views the jobs portal and find a job availability. He then post his
resume to administrator. The various software components available in the jobseeker module
18
are view jobs, view city information, view institutes, view cityupdates,post resume,view
alerts,view city location.
5. Student Module: The student module maintains the various information regarding various
institutes in the city. The various components in software are view library, view books, view
institutes, view engineering colleges, view coaching centers, view journals.
The list of the software components involved in our project are explained below.
a)ViewMap: It displays the city map of the particular city by redirecting to google map and
thus achieve to give the dynamic map.
b)InsertAlerts: Insert alerts into the database .This is used to give time to time alersts to the
user.
c)viewProfile: It display the information regarding different users who have registered.
d)busearch: It provides the information regarding bus and timings if you give the source
and destination.
g)viewIndustries: It provides information regarding their location and address with some
more description attributes.
j)viewCityguide:It provide the city historical information with the static city map locating
key places in the city.
19
k)add emergency: insert emergency reports into the data base. It provides emergency
services that is needed by the user.
l)Insert Industry: it adds the information of industries in the database which provides the
business person to see the number of industries in the city along with their description.
o)viewresume: The admin will view the resume posted by the user or jobseeker and forward
to an organization.
p)flight Search: it provides the information regarding flights the arrival and departure times.
q)viewIndustries:It provides information regarding their location and address with some
more description attributes.
t)viewCityguide:It provide the city historical information with the static city map locating
key places in the city.
u)add emergency: insert emergency reports into the data base. It provides emergency
services that is needed by the user.
v)Insert Industry: it adds the information of industries in the database which provides the
business person to see the number of industries in the city along with their description.
x)ViewMap: It displays the city map of the particular city by redirecting to google map and
thus achieve to give the dynamic map.
y)InsertAlerts: Insert alerts into the database .This is used to give time to time alersts to the
user.
20
Data Base Tables : The database tables available in our project implementation are
listed below.
CITY ALERTS
BUSINESS_INFO
BUSROUTES
CITIES_JOBS
21
CITY_INFO
CITY_TOURINFO
EMERGENCY_INFO
22
HISTORY_CITY
HOTEL_INFO
LOGINDETAILS
LOGIN_AUDIT
23
LOGIN_PROFILE
MAILS
MINISTERS
PLACES
24
6.4 Snapshots
Home Page:
Description: The home page provides the necessary information that is accessed by the user
and provides login form and registration for registration. The information in the home is open
to all the users of the system.
25
Registration page :
Description: The registration page helps the user to register in order to posses the various
services offered by the site .The various users of the system are tourist, businessman, student,
jobseeker and administrator.
26
Student Home Page :
Description: The User who is registered as a student and login with his id and password will
be provides with various downloaded services and can access other city inforantion . Every
user will be provided with various services and maintain communication with other users.
27
Industries :
Description: The page provides the information about the various industries available in the
city and their current operational status. The current updates of the industries in the city can
be viewed .The administrator will make updates of the various information about the
industries in the city. The current operational status of the industries will be available in the
site.
28
Display Industries Information:
Description: The page provides the information about the various industries available in the
city and their current operational status. The current updates of the industries in the city can
be viewed .The administrator will make updates of the various information about the
industries in the city. The current operational status of the industries will be available in the
site.
29
City History:
Description : The page displays the city history by locating the key palces in the city with in
static map .The historical prominence of the city can be viewed.The admin updates all the
current information about the city .
30
City Photogallery:
Description : The gallery in the city and photogenic view of the city is provided in page .
The page displays the city history by locating the key palces in the city with in static map
.The historical prominence of the city can be viewed.The admin updates all the current
information about the city .
31
CODING OF PROJECT
OPEN _HOME .JSP
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" import="java.sql.*;"%>
<html>
<head>
</head>
<body>
<%
String uid=request.getParameter("uid");
String pwd=request.getParameter("pwd");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Connection con=DriverManager.getConnection(url,"smartcity","smartcity");
Statement stmt=con.createStatement();
System.out.println("connected");
32
ResultSet rs=stmt.executeQuery("Select * from login12 where userid='"+uid+"' and
pwd='"+pwd+"'");
if(rs.next())
String user=rs.getString("userid");
String type=rs.getString("type");
HttpSession ss=request.getSession(true);
if(type.equals("student"))
ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Student_home.jsp");
rd.forward(request,response);
else if(type.equals("business"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("BP_home.jsp");
rd.forward(request,response);
else if(type.equals("job"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
33
request.getRequestDispatcher("JS_home.jsp");
rd.forward(request,response);
else if(type.equals("tourist"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Tourist_home.jsp");
rd.forward(request,response);
else if(type.equals("admin"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Admin_home.jsp");
rd.forward(request,response);
}else if(type.equals("moderator"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Moderator_home.jsp");
rd.forward(request,response);
else
{ %>
34
<jsp:forward page="home1.jsp?m1=Invalid Userid and
Password"></jsp:forward>
<%
catch(Exception e)
e.printStackTrace();
%>
</body>
</html>
35
VIEW_ALERTS
pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>View Messaging</title>
</head>
<body>
<%
try
String str="";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Connection con=DriverManager.getConnection(url,"smartcity","smartcity");
Statement stmt=con.createStatement();
while(rs.next()){str=rs.getString(2);
System.out.println(str);
36
%>
catch(Exception e)
e.printStackTrace();
%>
</marquee>
</body>
</html>
INSERT_ALERTS.JAVA
package pack;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
37
javax.servlet.Servlet {
response.setContentType("text/html");
PrintWriter out=response.getWriter();
try
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con= DriverManager.getConnection(“jdbc:odbc:”smartcity”,”smart”) ;
Statement st=con.createStatement();
String f=request.getParameter("id");
String fn=request.getParameter("nm");
String mn=request.getParameter("description");
Int i=st.executeUpdate("insertintoalerts
values('"+f+"','"+fn+"','"+mn+"')");
catch(Exception e)
e.printStackTrace();
38
VIEW_INDUSTRIES :
<%
String str=request.getParameter("id");
System.out.println(str);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Connection con=DriverManager.getConnection(url,"smartcity","smartcity");
Statement st=con.createStatement();
System.out.println("Database connected");
System.out.println("query running");
while(rs.next())
System.out.println("ok");
String des=rs.getString(8);
System.out.println(des);
if(des.equals(str))
39
%>
<tr>
<td> <%=rs.getString(1)%>
</td><td>
<%=rs.getString(2)%>
</td><td><%=rs.getString(3)%>
</td><td>
<%=rs.getString(4)%></td><td>
<%=rs.getString(5)%>
</td><td><%=rs.getString(6)%>
</td><td><%=rs.getString(7)%></td></tr>
<%
else
System.out.println("fail");
break;
catch(Exception e)
e.printStackTrace();
40
}
%>
</table>
INDUSTRIES.JSP
<td align="left">
<ul>
<li><a href="nag.jsp?id=3">AravindGraniteIndutry</a></li>
<li><a href="nag.jsp?id=4">ArunWoods</a></li>
<li><a href="nag.jsp?id=5">APForestDevelopmentLimited</a></li>
<li><a href="nag.jsp?id=6">APRefactoriesLimited</a></li>
<li><a href="nag.jsp?id=7">BEPumps</a></li>
<li><a href="nag.jsp?id=8">BOCIndia.Ltd</a></li>
<li><a href="nag.jsp?id=9">BinduResins</a></li>
<li><a href="nag.jsp?id=11">ChamundiIndustries</a></li>
<li><a href="nag.jsp?id=12">CosmicPlastics</a></li>
<li><a href="nag.jsp?id=13">CoastalCardBoard</a></li>
<li><a href="nag.jsp?id=14">ChowhanExportsLtd</a></li>
<li><a href="nag.jsp?id=15">DeccanVeneersLtd</a></li>
<li><a href="nag.jsp?id=16">EastIndiaPetrolemLtd</a></li>
41
<li><a href="nag.jsp?id=17">FerroScrapNigamLtd</a></li>
<li><a href="nag.jsp?id=18">GAILIndiaLtd</a></li>
<li><a href="nag.jsp?id=19">GayatriPlastics</a></li>
<li><a href="nag.jsp?id=20">GlobalOpticals</a></li>
<li><a href="nag.jsp?id=21">HindustanShipyard</a></li>
<li><a href="nag.jsp?id=22">HygradePelletsLtd</a></li>
<li><a href="nag.jsp?id=25">LGPolymersLtd</a></li>
</ul></td>
BUS_SEARCH
pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>BUS SEARCH</title>
</head>
<body>
42
<table
border='1'><tr><td>BusNo</td><td>Source</td><td>Destination</td><td>Time</td></tr>
<%
String str1=request.getParameter("src");
String str=request.getParameter("des");
System.out.println(str1);
System.out.println(str);
int i=0;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Statement st=con.createStatement();
while(rs.next())
String sour=rs.getString(2);
String des=rs.getString(3);
System.out.println("ds:--->"+sour+"<---");
System.out.println("ds:--->"+des+"<---");
if((sour.equals(str1))&&(des.equals(str)))
%>
43
<tr> <td>
<%=rs.getString(1)%>
</td><td>
<%=rs.getString(2)%> </td><td>
<%=rs.getString(3)%></td><td>
<%=rs.getString(4)%></td><td>
catch(Exception e)
e.printStackTrace();
%>
</table>
</body>
</html>
44
6.5 Test Cases
45
Test case no:3 Program:goDifferentpage.jsp
Testcase:4 Program:Registration.jsp
46
Testcase:5 Program:addAlert.jsp
47
6.6 Appendix A - Hardware and Software Configurations
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
Eclipse
JDK 1.5,web server running on any platform
JDBC ODBC 2.0 drivers installed
Database-Oracle10G
J2EE,AJAX,XML
48
6.7 Appendix B – Data Base Tables
1. Registration:
USERID PASSWORD FNAME LNAME EID SEC_QUES SEC_ANS TYPE EMAIL ADDRESS
2.Accounts:
3. Industries
4. Theaters
5. Hotels
49
6.8. Appendix C-Limitations and Enhancements
Limitations:
50
6.9 Appendix D-Bibliography
The following books and manuals provided a lot of help to us in making this project a
reality.
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
Website References :
1. www.wikipedia.com
2. www.vizagcity.com
3. www.hyderabadcityinfo.com
4. www.vizagcityonline.com
51