You are on page 1of 51

1.

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.

2.2.1 Limitations of Existing System:

 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.

 It’s a limited system and fewer users friendly.

2.3 Proposed System:

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.

 User Friendliness is provided in the application with various controls provided by


system Rich User Interface.

 The system makes the overall project management much easier and flexible.

 It can be accessed over the Intranet.

 The city information files can be stored in centralized database which can be
maintained by the system.

3
3. Requirement Analysis

3.1 Purpose and Scope

SmartCity is website used to provide information regarding the particular


city that includes city-map, history-social, political, business news and other services for
registered users.

Scope:

 It can be accessed by unlimited number of users.


 Each user will be assigned a different set of permissions for each module of the
system.
 The user can have access to all the information in the site with limited services
and provide extra services to registered users.
 Track all the transaction details of the customer.
 Confirmation of end user identity and will verify which users are authorized to
receive Support. Maintain history of each customer and their related Maintain
history of each customer and their related information.
 Every user must have their ID& PASSWORD for security purpose and AC.NO
for transaction purpose.
 All the job seekers must have their Resume document to submit to administrator.
 Only registered members will be provided with communication between user,
experts and general public through poll/chat/mails.
 Administrator is created in the system already.
 The administrator has to generate daily/weekly/Monthly reports, of the business
and political news of the city.
 This site is best designed to be useful through internet to people of different
places.

3.2 Users of the System


 Tourists,students,Businessmen
 Industrialists, Entrepreneur, Organizations academicians etc
 Jobseekers

4
4. Specific Requirements

4.1 Functional and Non Functional 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.

 Complete history of the city-social, political.

 Complete overview of the Businesses in the city.

 Secure registration of all users including a personal profile-only at the time of a


transaction providence.

 Complete Search/site map of the entire city for easy access.

 Local news, government notices, current updates of the city.

 Local language support at user-interface and database-level.

 Facilitate communication between user, experts and general public through


polls/mail/discussion forum/chat.

 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.

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.

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:

Figure 6.1 E-R Diagram

6.2 Behavioural Diagrams

6.2.1 Use Case Diagrams: A 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.

7
<<include>> delete member
advertisements sms alerts
<<include>> <<include>> <<include>>
member
<<include>> modify member student
<<include>>

service

register member city history


give updates

admin <<include>>
colleges
<<include>>

<<include>>
citymap

city information <<include>>

<<include>>
reports tourist spot
business updates
<<include>>
<<include>>
<<include>>
<<include>>
current market

political news
hotels
tourists
jobsportal

business man(or)jo
b seekers

Fig.6.2.1 Use Case Diagram of the System

Description:

Name of the Use Case: City Information

Description:

Every user can directly access the website and visualize all the Information in the site.
Pre Condition: No pre condition exists

Post condition: Home Page will be displayed.

Flow of events:

 Invoke the home page.

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.

Pre Condition: Click on Reports in home page

Post condition: Reports Page will be displayed.

Flow of events:

 Invoke the home page.


 Views the reports generated by administrator
 Click on jobs to view jobs
 Click on business
Name of the Use Case: Services

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

Post condition: select the required service you will.

Flow of events:

 Invoke the home page.


 Login through UserId and password.
 Click on services in your home page.
 Click the required service you choose.

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.

Registration
Fname
Lname
mobile
mailid
userid
password
type of user

student Check() Bussinessman


valid() userid
userid
random() password
password
mobile address
address Email
Email Mobile
Tourists
viewEducation() viewIndustries()
userid viewCity()
viewColleges()
password viewHotels()
viewLibrary()
address
viewCity()
Email
Mobile

viewHotels()
Admin viewCitymap()
Adminid viewCityguide()
password

Updatecity()
Alerts()
UpdateIndustries()

Login
Loginid
Alerts Industries password
alertid companyname type
alertname operations
alertDescription pollutioncategory goUserHome()
currentstatus
viewAlerts() employees
updateAlerts()
updateIndustries()

Fig 6.2.2 Class Diagram of the System

6.2.3 Collaboration Diagram : 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.

10
1: Invalid()

:Login

2: View Social
3: View Political

4: View News ,tvChannels


8: View Em ergency
:His tory
:City
Particulars

5: view Places
Places
9: Hotels
7: View Hotels

12:
6: View Logout
Bus routes
:Hotels

10: View Bus

:Bus
:Logout Routes

11: Logout()

Fig 6.2.3(a) Collaboration Diagram of the User

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

Fig 6.2.3(b) Collaboration for Course Registration

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

Fig 6.2.3(c) Admin Update Collaboration Diagram

1: Login
2: Request for site details 3: forwards to Admin
Business Window Admin
person
4: Send Reply

Fig 6.2.3(c) Business Person Collaboration Diagram

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.

:Login :History :City Particulars Places :Hotels :Bus Routes :Logout

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

Fig 6.2.4(a) Sequence Diagram of the User

13
Businessperson Window Admin

Login

Request for site details


forwards to Admin

Send Reply

Fig 6.2.4(b) Business Person Sequence Diagram

DataBase Admin Hotel Companies Colleges &


Management Institutes

Send Updates()
Update()
Acknowledgement()

Send Updates()
Update()
Acknowledgement()

Send Updates()
Update()
Acknowledgement()

Fig 6.2.4(c) Admin Site Update Sequence Diagram

14
Student Window DataBase Institutes

Login

Search for course Request


Notify()

Display Courses
Select Course
Display Institutes

Select Institutes
Request Fee

Display fee and Duration

Pay fee

Acknowledgemant

Fig 6.2.4(d) Course Registration Sequence Diagram

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

Enter Username and password


Authentication

Invalid()

Home History Business Tourism Jobs Logout

Political Social AddBu EditBus DelBus ConventPl Entertain BusRoute AddJob DelJo Editjob

ACon EdCon DelCon AdEn EdiE DEn ABus EBus DlBus

Fig 6.2.5(a) Administrator activity diagram

16
Administrator

Enter Username and password


Authentication

Invalid()

Home History Business Tourism Jobs Logout

Political Social View ConventPl Entertain BusRoute View

View View View

Fig 6.2.5(b) User Activity Diagram

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.

4.Businessman Module: businessman module consists of information regarding various


business in the city,industries in the city, with social and political influence of the city. The
various software components in the businessman module are view cityhistory, view view
markets, view alerts, view industries, view hotels, view labour, view hotels, view labour,
view jobs.

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.

e)viewAlerts: It provides the alerts that are stored in database.

f)Registration: Provides registration facilities to different types of user.

g)viewIndustries: It provides information regarding their location and address with some
more description attributes.

h)viewHospitals: It provides the information regarding hospitals in the city.

i)Photogallery: It provides different photos sight seeing places in the city.

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.

m)Downloads: It provides various information downloads that is needed to be downloaded


by redirecting to best download site.

n)Logivalid: it validates the userid & password.

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.

r)viewHospitals: It provides the information regarding hospitals in the city.

s)Photogallery: It provides different photos sight seeing places in the city.

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.

w)Downloads: It provides various information downloads that is needed to be downloaded


by redirecting to best download site.

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

Table 6.3(a) City alerts table

BUSINESS_INFO

Table 6.3(b) Business information table

BUSROUTES

Table 6.3(c) Bus Routes table

CITIES_JOBS

Table 6.3(d) City Jobs table

21
CITY_INFO

Table 6.3(e) City Inforamtion table

CITY_TOURINFO

Table 6.3(e) City Tourist Information Table

EMERGENCY_INFO

Table 6.3(e) Emergency Information table

22
HISTORY_CITY

Table 6.3(f) City History table

HOTEL_INFO

Table 6.3(g) Hotel Information Table

LOGINDETAILS

Table 6.3(h) Login Table

LOGIN_AUDIT

Table 6.3(i) Login Audit Table

23
LOGIN_PROFILE

Table 6.3(j) Profile Table

MAILS

Table 6.3(k) Mails table

MINISTERS

Table 6.3(l) Ministers table

PLACES

Table 6.3(m) Places Table

24
6.4 Snapshots
Home Page:

Fig 6.4(a) Home page of the System

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 :

Fig 6.4(b) 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 :

Fig 6.4(c) 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 :

Fig 6.4(d) Industries list of the city

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:

Fig 6.4(e) Display 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.

29
City History:

Fig 6.4(f) 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:

Fig 6.4(g) Photo Gallery

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.*;"%>

<!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>

<%

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

<%@ page language="java" import="java.sql.*" contentType="text/html; charset=ISO-8859-

pageEncoding="ISO-8859-1"%>

<!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>View Messaging</title>

</head>

<body>

<marquee direction="left" scrolldelay="1250">

<%

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();

ResultSet rs=stmt.executeQuery("select * from alerts");

while(rs.next()){str=rs.getString(2);

System.out.println(str);

36
%>

<a href="alertslink.jsp?d=<%=str %>"><%=str%></a><%

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;

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

37
javax.servlet.Servlet {

protected void doGet(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

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 :

<table align="center" border='1'><tr><th>company


Name</th><th>operations</th><th>pollutioncategory</th><th>Sector</th><th>Employees<
/th><th>Address</th><th>CurrentStatus</th></tr>

<%

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");

ResultSet rs=st.executeQuery("select * from companydetails where id='"+str+"'");

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">

<h3>Some Industries In Vizag</h3>

<ul>

<li><a href="nag.jsp?id=1" onclick="check()">GrandBay Industries</a></li>

<li><a href="nag.jsp?id=2">Sri viska imports&exports</a></li>

<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=10">BMR Enterprises</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=23">INS Eksila</a></li>

<li><a href="nag.jsp?id=24">ITC Limited</a></li>

<li><a href="nag.jsp?id=25">LGPolymersLtd</a></li>

</ul></td>

BUS_SEARCH

<%@ page language="java" import="java.sql.*;"%>

<%@ 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>

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

<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();

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

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

Test case Number:1 Program: Registeration.jsp

Sl. Test Case Input Expected Output Actual Valid/Invalid


No Name Output

1 Email_id Sriram.mail.com Mail id should be in Id mail Invalid


value the format of entered
sriram@gmail.com is
invalid

sriram@gmail.com Mail id is in the form Valid valid


of mail id
sriram@gmail.com

Test case Number:2 Program: Different home page.jsp

Sl.No Test case Input Expected Actual Valid/output


Name Output Output

1 UserId and Sriram has Student If went Invalid


password registered as home page tourist home
student should be page invalid
opened

Sriram has Student If went to Valid


registered as Home page student
student must be home
didplayed pagess

45
Test case no:3 Program:goDifferentpage.jsp

Sl.No Test case Input Expected Actual Valid/output


Name Output Output

1 UserId and Sriram has Tourist If went Invalid


password registered as home page student
tourist should be home page
opened invalid

Sriram has Tourist must If went to Valid


registered as be displayed touristss
torist home pagess

Testcase:4 Program:Registration.jsp

Sl.No Test case Input Expected Actual Valid/output


Name Output Output

1 Random A random If wrong If it allows to Invalid


code value number is number is store
generated to entered
fill in form

A random If correct If it generate Valid


number is number is another one
generated to entered
fill in form

46
Testcase:5 Program:addAlert.jsp

Sl.No Test case Input Expected Actual Valid/output


Name Output Output

1 Should enter Alert id and Should not If submitted Invalid


three fields alertname is submit alerts with out
entered description

All the three Should If submitted Valid


alert fields submit the
given alerts

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:

User ID Password Type

3. Industries

Cname Operations Sector employees Pollution ct status id

4. Theaters

Moviename Hallname contact address time

5. Hotels

Hotelname Address Logo

49
6.8. Appendix C-Limitations and Enhancements

Limitations:

 Use of Smartcity may cause certain problems such as danger of hacking


personal information such as name, address, account number etc.
 Security is another limitation in case of smartcity
 Online banking can be difficult to learn for a beginner.
Enhancements:

 Live MAP option can be implemented.


 Implementations of J2ME to provide high security are enhancements required.
 Good maintainence of accounts.

50
6.9 Appendix D-Bibliography

Text Book References :

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

You might also like