College Connect
College Connect
PATNA UNIVERSITY
“College
College with Potential for Excellence”
Ex (CPE) status accordance by UGC..
DEPARTMENT OF MCA
Project Report
ON
COLLEGE CONNECT
“A social network
networking website”
Submitted By :-
NAME ROLL NO .
SIMA SINHA 22
SHRADHA SUMAN 26
PRIYANKA 16
SHAHIDA SIDDIQUEE 18
Page | 1
College Connect
“A Social Networking Website”
PATNA
ATNA WOMENS’COLLEGE
NAAC Re-Accredited
Accredited ‘A’ Grade with CGPA 3.58/4
Patna
Bailey Road, Patna-800001
CERTIFICATE OF APPROVAL
This is to certify that mini project entitled “ College Connect -A Social networking
webstie” has been submitted by “Sima Sinha (22),Shradha
Suman(26),
uman(26), Priyanka (16), Shahida Shiddhique(18), Tarannum
Praveen(24), Kumari Pratibha Ananad(33), Priya Sharma(35 Sharma(35) to
Patna Women’s College in ppartial fulfillment of the requirement award
ward of the degree
of Master
aster of Computer Applications (MCA), is an original Work carried out under
the guidance of Mr.Praveen Kumar.
Head of Department
(Department Of
O Computer Application)
Page | 2
College Connect
“A Social Networking Website”
Acknowledgement
We are thankful to our college Patna Women’s College for considering our project and
extending help at all stages needed during our work of collecting information regarding
the project. It gives us immense pleasure to express our deep and sincere gratitude to
Assistant Professor Praveen Kumar (Project Guide) for her kind help and valuable advice
during the development of project synopsis and for her guidance and suggestions. We are
deeply indebted to Head of the Computer Department Dr.(Mrs.)Bhawna Sinha Ma’am and
our Principal Dr. Sister Marie Jessie A.C, for giving us this valuable opportunity to do this
project. We express our hearty thanks to them for their assistance without which it would
have been difficult in finishing this project synopsis and project review successfully. We
convey our deep sense of gratitude to all teaching and non-teaching staff for their constant
encouragement, support and selfless help throughout the project work. It is great pleasure
to acknowledge the help and suggestion, which we received from the Department of
Computer Science. We wish to express our profound thanks to all those who helped us in
gathering information about the project. Our families too have provided moral support and
encouragement at several times.
Page | 3
College Connect
“A Social Networking Website”
PREFACE
Page | 4
College Connect
“A Social Networking Website”
CONTENTS
Page | 5
College Connect
“A Social Networking Website”
INTRODUCTION OF PROJECT
We know about the increasing use of social networking sites, people use various social
media platforms depending on their requirements and interest. Social media is a dynamic
platform that can be used in so many ways to share news, knowledge, entertainment etc. In
this project a social media platform for college campus has been created where everyone
associated with the college campus such as students, staff members, associated industry
professionals and passed out alumni can socialize with each other and share their
knowledge about academics, projects, placements and all other activities going on in the
campus. The functions of various categories of users are going to be segregated and each
category of user will have its own privileged tasks. A hierarchy of these categories of users
is created such as The Principal, General Staff, Passed out alumni, Current Students ( in
descending order ) where. It is very inconvenient for teachers to find students’ parent
contact information, our website will have an exclusive option for teachers to find
parent’s contact details with a click of button. All campus students when registering will
compulsorily need to fill their parent’s contact details so that it becomes easy for teachers
to contact them when needed. Also taking into account the fact that parent’s contact
information is something which is too personal for a student this social networking site will
not be allowing a particular student to view other student’s parent contact details as it
can be misused. Similarly, students would not be able to view all the personal details of
faculty or industry people. They’ll be only allowed to view the details which are relevant
to them from academic or professional point of view. They’ll be able to view the research
conducted by teachers, their department and subjects etc. It will promote teaching and
learning through a more dynamic platform without causing any threat to privacy.
Page | 6
College Connect
“A Social Networking Website”
ABOUT PROJECT
A college social networking project where students may create their account and make
their profile online. Students may create their online profile with their data as well as
upload their profile image. After making a profile students may login to the system. After
that students may chat with each other through social networking website. Student once
logged in appears online else appears offline. Students may also post their status online
and may check each other’s status message.
Features:
Students can register and login into the system once their registration is approved by the
admin.
Once the student logged in into the system, he/she can write and post an articles on
various topic of his/her choice.
Students can also upload images with their post.
All students can view News Feed posted by individual student.
All the student registration will be approved/rejected by the admin as well as, all the post
will be kept pending until admin approves/rejects each and every post.
Admin Login has full authority on system, he/she can add/delete Faculty.
Staff can view student profiles and also can post event who’s details will get by
students.
Page | 7
College Connect
“A Social Networking Website”
Literature Survey
Comparison of various social networking sites We have gone through the features of various social
networking sites and made a list of some basic functions which are or are not available in these
sites. This analysis helped us to understand which social media we can refer to in order to add our
desired features. The following table provides an overall summary for some of the most popular
sites.
Page | 8
College Connect
“A Social Networking Website”
OBJECTIVE OF PROJECT
There is a gap between students and faculties which leads to lack of interaction
while learning.
Many of the students hesitate in asking queries to the faculties.
Students can’t interact with each other among different departments.
Sharing of information is difficult in such environment.
For any notice from the department of college students have to ask many
individuals.
Some notices aren’t delivered to each student on time.
Loss of time and man power.
Hard to operate and maintain.
Searching of individual result is quite difficult task and time consuming.
Page | 9
College Connect
“A Social Networking Website”
The main goal of the system is to automate the process carried out in the organization with improved
performance. The aim of the proposed system is to address the limitations of the current
system. The requirements for the system have been gathered from the defects recorded in
the past and also based on the feedback from users of previous metrics tools. Some of the
goals of the system are listed below:
Works 24 x 7
No Geographical Boundary :
o Remote Work – Students need not worry about the extra classes to solve their
problems or any queries. They can discuss it via college connect website
Less Paper Work :
o College no longer require printing & storing results and examination schedule.
Centralized data handling.
o Transfer the data smoothly to all the departments involved and handle the data
centralized way.
Only College Students and Faculty Can Register:
o Minimizes Data Redundancy - Checks can be provided so that only college students
and faculty can register. Besides, the members data is to be entered only once.
Dynamic and User Friendly :
o The entire process is very dynamic - any changes can be reflected in real time & will
be immediately reached the members.
o The process is simple & user friendly – provides user friendly interface and needs
less human interactions.
Greater Flexibility:
o Various types of reports can be generated in quick time with minor changes in the
design.
Page | 10
College Connect
“A Social Networking Website”
PROJECT METHODOLOGY
In the Iterative model, iterative process starts with a simple implementation of a small
set of the software requirements and iteratively enhances the evolving versions until
the complete system is implemented and ready to be deployed.
An iterative life cycle model does not attempt to start with a full specification of
requirements. Instead, development begins by specifying and implementing just part
of the software, which is then reviewed to identify further requirements. This process
is then repeated, producing a new version of the software at the end of each iteration
of the model.
Page | 11
College Connect
“A Social Networking Website”
through successive cycles, tests must be repeated and extended to verify each version
of the software.
A new technology is being used and is being learnt by the development team
while working on the project.
Resources with needed skill sets are not available and are planned to be used on
contract basis for specific iterations.
There are some high-risk features and goals which may change in the future.
The disadvantage with this SDLC model is that it is applicable only to large and bulky
software development projects. This is because it is hard to break a small software
system into further small serviceable increments/modules.
The advantages of the Iterative and Incremental SDLC Model are as follows −
Some working functionality can be developed quickly and early in the life cycle.
Page | 12
College Connect
“A Social Networking Website”
Risks are identified and resolved during iteration; and each iteration is an easily
managed milestone.
During the life cycle, software is produced early which facilitates customer
evaluation and feedback.
The disadvantages of the Iterative and Incremental SDLC Model are as follows −
Although cost of change is lesser, but it is not very suitable for changing
requirements.
System architecture or design issues may arise because not all requirements are
gathered in the beginning of the entire life cycle.
Page | 13
College Connect
“A Social Networking Website”
SPECIFIC REQUIREMENT
The interface should be simple and easy to understand and use. It should also be an
interactive interface.
User Interfaces:
The software provides good GUI for the front end which is self -explanatory.
The system contains convenient web pages, dropdown menus and options.
The developer will have to study the designing of the product.
Client gets the warnings with necessary assistance from the application.
Software Requirements:
Hardware Requirements:
Page | 14
College Connect
“A Social Networking Website”
Functional Requirements:
This section provides the overview of the product. The project will require the NetBeans as
front end and at the back end the DERBY will be running.
Various functional modules that can be implemented by the product will be:
Login Form
In this module, member register themselves and login to the site to gain the authorities to
view many more things which are not authorized for all public users.
Registration Form
In this module, registration form filling work is done and after it the user is brought back to
the home page for login.
My Profile Form
In this module, the members after login can view this. They can update their information,
make post and comments, view examination schedule and results, see online friends and
logout.
Page | 15
College Connect
“A Social Networking Website”
Admin Module
This module is only for admins. In this module, various tasks such as Managing Student’s
Records, Uploading General Instructions, Uploading Notices, managing pots etc. are done.
PERFORMANCE:
Performance requirements define acceptable response times for system functionality.
RELIABILITY:
Good validations for user inputs will be done.
Avoid incorrect storage of records.
SECURITY:
Encrypted password.
Administrator has more rights than the sub user.
PORTABILITY:
This website opens in any personal computer supporting windows, Linux, Unix operating
system.
FLEXIBILITY:
The system keeps on updating the data according to the transactions that takes place.
MAINTABILITY:
During maintenance stage, the SRS can be referred for the validation.
Page | 16
College Connect
“A Social Networking Website”
Page | 17
College Connect
“A Social Networking Website”
Page | 18
College Connect
“A Social Networking Website”
LEVEL
EL 2 DFD FOR MEMBER
Page | 19
College Connect
“A Social Networking Website”
Page | 20
College Connect
“A Social Networking Website”
Page | 21
College Connect
“A Social Networking Website”
Page | 22
College Connect
“A Social Networking Website”
DATABASE DESGN
Result Database
S. No. Fields Data Size Description
type
1. Roll No. varchar 10
2. Semester varchar 10
3. Paper1 integer 10
4. Paper2 integer 10
5. Paper3 integer 10
6. Paper4 Integer 10
7. Paper5 Integer 10
8. Paper6 Integer 10
9. Paper7 integer 10
Page | 23
College Connect
“A Social Networking Website”
Notification Database
S. No. Fields Data Size Description
type
1. Notification number 10 Primary Key &
Id Auto generated
2. Notice varchar 100
Post Database
S.No. Fields Data Size Description
type
1. Post Id number 10 Primary Key &
Auto generated
2. Account Id varchar 10 Foreign Key
3. Post varchar 50
Comment Database
S. No. Fields Data Size Description
type
1. Comment number 10 Primary Key & Auto
Id generated
2. Account Id varchar 10 Foreign Key
3. Post Id number 10 Foreign Key
4. Post varchar 100
Admin Database
S. No. Fields Data Size Description
type
1. Email Id number 30 Primary Key
2. Password varchar 30
3. Name varchar 30
Page | 24
College Connect
“A Social Networking Website”
CLASS
LASS DIAGRAM
Page | 25
College Connect
“A Social Networking Website”
ACTIVITY DIAGRAM
Page | 26
College Connect
“A Social Networking Website”
EXPECTED OUTPUT
The system will help the administrator to manage recordings, monitoring and
tracking the activities of the students. The administrator can maintain a notice
board to show the status of the student.
The student/faculty can sign in and sign out for the different types of
activities. The student can make queries through posts and comments.
The most important thing of having this system is to reduce the difference
between the students and faculty ad connect them to a social platform for
exchange to knowledge and provide a new track toward learning.
College Connect social network website offers a private place for students to
interact and communicate with other students from their college. Students
can engage in a variety of services, including selling and buying in their own
marketplace, uploading videos and photos, and posting campus events,
discounts and special offers.
Page | 27
College Connect
“A Social Networking Website”
Page | 28
College Connect
“A Social Networking Website”
member_type integer,
account_id integer not null GENERATED ALWAYS AS IDENTITY (START WITH 1,INCREMENT
BY 1),
name varchar(20),
date_of_birth date,
department varchar(20),
address varchar(100),
contact_no varchar(10),
regid varchar(12),
password varchar(16),
confirm_password varchar(16),
profile_pic varchar(1000),
status varchar(10),
);
Page | 29
College Connect
“A Social Networking Website”
start_date date,
time time,
center varchar(50)
);
name varchar(20),
password varchar(16),
confirm_password varchar(16)
);
marks_obtained integer(4)
percentage(2,2)
division varchar(2)
);
Page | 30
College Connect
“A Social Networking Website”
post_id integer not null GENERATED ALWAYS AS IDENTITY (START WITH 101,INCREMENT BY
1)PRIMARY KEY,
account_id integer,
post varchar(1000),
image varchar(1000),
);
account_id integer,
post_id integer,
comment varchar(1000),
);
Page | 31
College Connect
“A Social Networking Website”
Page | 32
College Connect
“A Social Networking Website”
Home.html
<!DOCTYPE html>
<!--
-->
<html>
<head>
<title>Home</title>
<meta charset="UTF-8">
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
Page | 33
College Connect
“A Social Networking Website”
li {
float: left;
li a {
display: block;
color: black;
text-align: center;
text-decoration: none;
</style>
<style>
body {
font-family: Arial;
margin: 0;
Page | 34
College Connect
“A Social Networking Website”
*{
box-sizing: border-box;
img {
vertical-align: middle;
/* Position the image container (needed to position the left and right arrows) */
.container {
position: relative;
.mySlides {
display: none;
.cursor {
cursor: pointer;
Page | 35
College Connect
“A Social Networking Website”
.prev,
.next {
cursor: pointer;
position: absolute;
top: 40%;
width: auto;
padding: 16px;
margin-top: -50px;
color: white;
font-weight: bold;
font-size: 20px;
user-select: none;
-webkit-user-select: none;
.next {
right: 0;
Page | 36
College Connect
“A Social Networking Website”
.prev:hover,
.next:hover {
.numbertext {
color: #f2f2f2;
font-size: 12px;
position: absolute;
top: 0;
.caption-container {
text-align: center;
background-color: #222;
color: white;
Page | 37
College Connect
“A Social Networking Website”
.row:after {
content: "";
display: table;
clear: both;
.column {
float: left;
width: 16.66%;
.demo {
opacity: 0.6;
.active,
.demo:hover {
opacity: 1;
</style>
Page | 38
College Connect
“A Social Networking Website”
</head>
<body>
<div align="center">
<ul>
<li><a href="adminlogin.html">Admin</a></li>
<li><a href="registration.html">Register</a></li>
<li><a href="notice">Notice</a></li>
<li><a href="http://www.patnawomenscollege.in/index.php/notices/281-admission-notice-
2018.html">Admission Notice</a><li>
</ul>
</td></tr>
Page | 39
College Connect
“A Social Networking Website”
<h3>A college social networking project where students may create their
account and make their profile online. Students may create their online profile with their data as
well as upload their profile image. After making a profile students may login to the system. After
that students may chat with each other through social networking website. Student once logged in
appears online else appears offline. Students may also post their status online and may check each
other’s status message.
</h3>
</td>
<div class="container">
<div class="mySlides">
</div>
<div class="mySlides">
Page | 40
College Connect
“A Social Networking Website”
</div>
<div class="mySlides">
</div>
<div class="mySlides">
</div>
<div class="mySlides">
</div>
<div class="mySlides">
</div>
Page | 41
College Connect
“A Social Networking Website”
<div class="caption-container">
<p id="caption"></p>
</div>
<div class="row">
<div class="column">
</div>
<div class="column">
</div>
<div class="column">
</div>
<div class="column">
</div>
<div class="column">
</div>
<div class="column">
Page | 42
College Connect
“A Social Networking Website”
</div>
</div>
</div>
<script>
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
function currentSlide(n) {
showSlides(slideIndex = n);
function showSlides(n) {
var i;
Page | 43
College Connect
“A Social Networking Website”
slides[i].style.display = "none";
slides[slideIndex-1].style.display = "block";
captionText.innerHTML = dots[slideIndex-1].alt;
</script>
</td>
</tr>
</table>
</table>
Page | 44
College Connect
“A Social Networking Website”
<div class="module-body">
</div>
</div></td>
<td>
<div class="module-body">
Page | 45
College Connect
“A Social Networking Website”
</div>
</div></td>
<td>
<div class="module-body">
<ul>
<li><a href="/index.php/component/content/article/14-annnual-result/84-annual-
result.html">Annual Result</a></li>
<li><a href="/index.php/component/content/article/15-media-response/85-media-
response.html">Media Response</a></li>
</ul></div>
</div>
</div>
Page | 46
College Connect
“A Social Networking Website”
</td>
</table>
</form>
</body>
</html>
Registration.html
<!DOCTYPE html>
<!--
-->
<html>
<head>
<title>Member Registration</title>
<meta charset="UTF-8">
<style>
ul {
list-style-type: none;
margin: 0;
Page | 47
College Connect
“A Social Networking Website”
padding: 0;
overflow: hidden;
li {
float: left;
li a {
display: block;
color: black;
text-align: center;
text-decoration: none;
</style>
</head>
<body>
Page | 48
College Connect
“A Social Networking Website”
<div align="center">
</tr>
<ul>
<li><a href="adminlogin.html">Admin</a></li>
</ul></td></tr>
<table>
Page | 49
College Connect
“A Social Networking Website”
<option value="1">Student</option>
<option value="2">Faculty</option>
</select><br><br>
Page | 50
College Connect
“A Social Networking Website”
<table>
</td>
</tr>
</table>
</table>
<div class="module-body">
</div>
</div></td>
<td>
<div class="module-body">
Page | 51
College Connect
“A Social Networking Website”
</div>
</div></td>
<td>
<div class="module-body">
<ul>
Page | 52
College Connect
“A Social Networking Website”
<li><a href="/index.php/component/content/article/14-annnual-result/84-annual-
result.html">Annual Result</a></li>
<li><a href="/index.php/component/content/article/15-media-response/85-media-
response.html">Media Response</a></li>
</ul></div>
</div>
</div>
</td>
</table>
</form>
</body>
</html>
registration.java
/*
*/
import java.io.File;
Page | 53
College Connect
“A Social Networking Website”
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Part;
/**
* @author PWC
*/
@MultipartConfig
Page | 54
College Connect
“A Social Networking Website”
@WebServlet(urlPatterns = {"/registration"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
String memtype=request.getParameter("memtype");
String txtname=request.getParameter("txtname");
Page | 55
College Connect
“A Social Networking Website”
String dob=request.getParameter("dob");
String dept=request.getParameter("dept");
String txtadd=request.getParameter("txtadd");
String cont=request.getParameter("cont");
String regid=request.getParameter("regid");
String email=request.getParameter("email");
String pwd=request.getParameter("pwd");
String cpwd=request.getParameter("cpwd");
Part filePart=request.getPart("f");
String profilepic=getFileName(filePart);
String
basePath="C:\\Users\\hp\\Documents\\NetBeansProjects\\college_connect\\web\\propic\\";
InputStream inputStream=null;
OutputStream outputStream=null;
try
inputStream=filePart.getInputStream();
outputStream=new FileOutputStream(outputFilePath);
int read=0;
while((read=inputStream.read(bytes))!=-1){
Page | 56
College Connect
“A Social Networking Website”
outputStream.write(bytes,0,read);
catch(Exception ex)
out.println(ex.toString());
finally
if(outputStream!=null){
outputStream.close();
if(inputStream!=null){
inputStream.close();
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeConnect
","CollegeConnect");
Page | 57
College Connect
“A Social Networking Website”
ps.setString(1, memtype);
ps.setString(2, txtname);
ps.setString(3, dob);
ps.setString(4, dept);
ps.setString(5, txtadd);
ps.setString(6, cont);
ps.setString(7, regid);
ps.setString(8, email);
ps.setString(9, pwd);
ps.setString(10, cpwd);
ps.setString(11, profilepic);
ps.executeUpdate();
out.println("Successfully Registered");
response.sendRedirect("login.html");
catch(Exception ex)
out.println(ex.toString());
Page | 58
College Connect
“A Social Networking Website”
System.out.println("*****partHeader:"+partHeader);
for(String content:part.getHeader("content-disposition").split(";")){
if(content.trim().startsWith("filename")){
return null;
/**
*/
Page | 59
College Connect
“A Social Networking Website”
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
/**
Page | 60
College Connect
“A Social Networking Website”
*/
@Override
}// </editor-fold>
forgotpassword.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Page | 61
College Connect
“A Social Networking Website”
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/forgetpassword"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
out.println("<!DOCTYPE html>");
out.println("<html>");
Page | 62
College Connect
“A Social Networking Website”
out.println("<head>");
out.println("<title>Servlet forgetpassword</title>");
out.println("</head>");
out.println("<body>");
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" \n" +
" <body>\n" +
" </tr>\n" +
Page | 63
College Connect
“A Social Networking Website”
" </select><br><br>\n" +
" </td>\n" +
" </tr>\n" +
Page | 64
College Connect
“A Social Networking Website”
" </table>\n" +
" \n" +
" \n" +
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
Page | 65
College Connect
“A Social Networking Website”
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
" \n" +
"\n" +
" <ul>\n" +
Page | 66
College Connect
“A Social Networking Website”
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" </table>\n" +
" \n" +
" \n" +
" </form>\n" +
" </body>\n" +
" \n" +
"</html>\n" +
"" );
Page | 67
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
Page | 68
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
hintpassword.java
/*
Page | 69
College Connect
“A Social Networking Website”
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/hintpassword"})
Page | 70
College Connect
“A Social Networking Website”
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
String memtype=request.getParameter("memtype");
String txtname=request.getParameter("txtname");
String dob=request.getParameter("dob");
String dept=request.getParameter("dept");
Page | 71
College Connect
“A Social Networking Website”
String txtadd=request.getParameter("txtadd");
String cont=request.getParameter("cont");
String email=request.getParameter("email");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeConnect
","CollegeConnect");
ps.setString(1, memtype);
ps.setString(2, txtname);
ps.setString(3, dob);
ps.setString(4, dept);
ps.setString(5, txtadd);
ps.setString(6, cont);
ps.setString(7, email);
Page | 72
College Connect
“A Social Networking Website”
ResultSet rs=ps.executeQuery();
if(rs.next())
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" \n" +
" <body>\n" +
" </tr>\n" +
Page | 73
College Connect
“A Social Networking Website”
" \n" +
" Password:"+rs.getString(1)+"\n" +
" </td>\n" +
" </tr>\n" +
" \n" +
" \n" +
Page | 74
College Connect
“A Social Networking Website”
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
Page | 75
College Connect
“A Social Networking Website”
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
Page | 76
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" \n" +
" </table>\n" +
" \n" +
" \n" +
" </form>\n" +
" </body>\n" +
" \n" +
"</html>\n" +
"");
catch(Exception ex)
out.println(ex.toString());
Page | 77
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
*/
@Override
Page | 78
College Connect
“A Social Networking Website”
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
Member Login.html
<!DOCTYPE html>
<!--
-->
Page | 79
College Connect
“A Social Networking Website”
<html>
<head>
<title>Member Login</title>
<meta charset="UTF-8">
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
li {
float: left;
li a {
display: block;
color: black;
text-align: center;
Page | 80
College Connect
“A Social Networking Website”
text-decoration: none;
</style>
</head>
<body >
<div align="center">
<ul>
<li><a href="registration.html">Register</a></li>
<li><a href="adminlogin.html">Admin</a></li>
<li><a href="notice">Notice</a></li>
Page | 81
College Connect
“A Social Networking Website”
<li><a href="http://www.patnawomenscollege.in/index.php/notices/281-admission-notice-
2018.html">Admission Notice</a><li>
</ul></td></tr>
<br>
<br>
<br>
<table >
<option value="1">Student</option>
<option value="2">Faculty</option>
</select><br><br></tr></td>
Page | 82
College Connect
“A Social Networking Website”
</table>
</td>
</tr>
<tr><td background="bottom_background.jpg">
<div class="module-body">
Page | 83
College Connect
“A Social Networking Website”
</div>
</div></td>
<td>
<h3 class="module-title">Location</h3>
<div class="module-body">
</div>
</div></td>
<td>
<div class="module-body">
Page | 84
College Connect
“A Social Networking Website”
<ul>
<li><a href="/index.php/component/content/article/14-annnual-result/84-annual-
result.html">Annual Result</a></li>
<li><a href="/index.php/component/content/article/15-media-response/85-media-
response.html">Media Response</a></li>
</ul></div>
</div>
</div>
</td>
</tr></tr>
</table>
</td></tr>
</table>
</form>
</body>
</html>
Page | 85
College Connect
“A Social Networking Website”
memberLogin.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@WebServlet(urlPatterns = {"/login"})
/**
Page | 86
College Connect
“A Social Networking Website”
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeConnect
","CollegeConnect");
ps.setString(1,request.getParameter("email"));
ps.setString(2,request.getParameter("pwd"));
ps.setString(3,request.getParameter("memtype"));
ResultSet rs=ps.executeQuery();
Page | 87
College Connect
“A Social Networking Website”
if(rs.next())
HttpSession ses=request.getSession();
ses.setAttribute("uid", rs.getString(2));
if(request.getParameter("memtype").equals("1"))
response.sendRedirect("template.html");
else if(request.getParameter("memtype").equals("2"))
response.sendRedirect("Faculty.html");
//out.println("Successfully Login");
else
out.println("<script type=\"text/javascript\">");
out.println("location='login.html';");
out.println("</script>");
catch(Exception ex)
out.println(ex.toString());
Page | 88
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
Page | 89
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
Student.html
<!DOCTYPE html>
Page | 90
College Connect
“A Social Networking Website”
<!--
-->
<html>
<head>
<title>Student</title>
<meta charset="UTF-8">
</head>
<body>
<div align="center">
Page | 91
College Connect
“A Social Networking Website”
</td>
</tr>
</table>
</table>
<div class="module-body">
Page | 92
College Connect
“A Social Networking Website”
</div>
</div></td>
<td>
<div class="module-body">
</div>
</div></td>
<td>
Page | 93
College Connect
“A Social Networking Website”
<div class="module-body">
<ul>
<li><a href="/index.php/component/content/article/14-annnual-result/84-annual-
result.html">Annual Result</a></li>
<li><a href="/index.php/component/content/article/15-media-response/85-media-
response.html">Media Response</a></li>
</ul></div>
</div>
</div>
</td>
</table>
</form>
</body>
</html>
Page | 94
College Connect
“A Social Networking Website”
studentProfile.java
/*
*/
import java.io.IOException;
import java.io.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
WebServlet(urlPatterns = {"/myprofile"})
Page | 95
College Connect
“A Social Networking Website”
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,uid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
if(rs.next())
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
Page | 96
College Connect
“A Social Networking Website”
"\n" +
Page | 97
College Connect
“A Social Networking Website”
" </table>\n" +
" </td>\n" +
" </tr>\n" +
" \n" +
" \n" +
" \n" +
Page | 98
College Connect
“A Social Networking Website”
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
Page | 99
College Connect
“A Social Networking Website”
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
Page | 100
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" \n" +
" \n" +
" </table>\n" +
" </div>\n" +
" </form>\n" +
" \n" +
" \n" +
" </body>\n" +
"</html>\n" +
"");
catch(Exception ex)
System.out.println(ex.toString());
Page | 101
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
Page | 102
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
editProfile.jsp
<%--
Document : editprofile
Author : VL-8p
Page | 103
College Connect
“A Social Networking Website”
--%>
<!DOCTYPE html>
<html>
<head>
<title>Edit Profile</title>
</head>
<body>
<div align="center">
Page | 104
College Connect
“A Social Networking Website”
</td></tr>
</table>
</div>
</form>
</body>
</html>
viewNotification.java
/*
Page | 105
College Connect
“A Social Networking Website”
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/view_notification"})
Page | 106
College Connect
“A Social Networking Website”
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
//HttpSession ses=request.getSession();
//String uid=(String)ses.getAttribute("uid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
//ps.setString(1,uid);
// out.println(uid);
Page | 107
College Connect
“A Social Networking Website”
ResultSet rs=ps.executeQuery();
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
" \n" +
Page | 108
College Connect
“A Social Networking Website”
);
while(rs.next())
out.println("<li> "+rs.getString(1)+"</li>\n");
out.println(
" \n" +
" </td></tr>\n" +
" \n" +
Page | 109
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
Page | 110
College Connect
“A Social Networking Website”
amp;hnear=&ll=25.611628,85.124868&spn=0.006295,0.006295&t=m&iwl
oc=A&source=embed\" style=\"color:#0000FF;text-align:left\">View Larger
Map</a></small></div>\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
Page | 111
College Connect
“A Social Networking Website”
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" </table>\n"+
" </div>\n" +
" </body>\n" +
"</html>\n" +
"");
catch(Exception ex)
System.out.println(ex.toString());
Page | 112
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
Page | 113
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
viewResult.jsp
<%--
Page | 114
College Connect
“A Social Networking Website”
Document : view_result
Author : PWC
--%>
<!DOCTYPE html>
<html>
<head>
<title>View Result</title>
</head>
<body>
<div align="center">
<%@include file="header.jsp"%>
Page | 115
College Connect
“A Social Networking Website”
</td>
</tr>
<%-- <table>
<tr><td></td>Registration Id<td></td></tr>
<tr><td>Marks</td><td></td></tr>
<tr><td>Percentage</td><td></td></tr>
<tr><td>Division</td><td></td></tr>
</table>--%>
</table>
</table>
</div>
</form>
Page | 116
College Connect
“A Social Networking Website”
</body>
</html>
viewResult.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
Page | 117
College Connect
“A Social Networking Website”
* @author PWC
*/
@WebServlet(urlPatterns = {"/viewResult"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
//HttpSession ses=request.getSession();
// String uid=(String)ses.getAttribute("uid");
String regid=request.getParameter("regid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Page | 118
College Connect
“A Social Networking Website”
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,regid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
if(rs.next())
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
Page | 119
College Connect
“A Social Networking Website”
" <table>\n" +
" <tr><td>Division</td><td>"+rs.getString(4)+"</td></tr>\n" +
"</table>\n" +
"</table>\n" +
Page | 120
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
Page | 121
College Connect
“A Social Networking Website”
c=A&output=embed\"></iframe><br /><small><a
href=\"https://maps.google.co.in/maps?q=patna+womens+college&ie=UTF8&hq=&
amp;hnear=&ll=25.611628,85.124868&spn=0.006295,0.006295&t=m&iwl
oc=A&source=embed\" style=\"color:#0000FF;text-align:left\">View Larger
Map</a></small></div>\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
Page | 122
College Connect
“A Social Networking Website”
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" </table>\n"+
" </div>\n" +
" </form>\n" +
" </body>\n" +
"</html>\n" +
"");
catch(Exception e)
System.out.println(e.toString());
Page | 123
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
Page | 124
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
viewExamDetails.jsp
<%--
Document : exam_details
Page | 125
College Connect
“A Social Networking Website”
Author : PWC
--%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div align="center">
Page | 126
College Connect
“A Social Networking Website”
<option value="Sem1">Sem1</option>
<option value="Sem2">Sem2</option>
<option value="Sem3">Sem3</option>
<option value="Sem4">Sem4</option>
<option value="Sem5">Sem5</option>
<option value="Sem6">Sem6</option>
</select><br><br>
<%-- <table>
<tr><td>Semester</td><td></td></tr>
<tr><td>Start Date</td><td></td></tr>
<tr><td>Time</td><td></td></tr>
<tr><td>Center</td><td></td></tr>
<table>--%>
Page | 127
College Connect
“A Social Networking Website”
</table>
</table>
</div>
</form>
</body>
</html>
viewExamDetails.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
Page | 128
College Connect
“A Social Networking Website”
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/exam_details"})
/**
* methods.
*/
Page | 129
College Connect
“A Social Networking Website”
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
String sem=request.getParameter("sem");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,sem);
// out.println(uid);
ResultSet rs=ps.executeQuery();
if(rs.next())
out.println("<html>\n" +
" <head>\n" +
Page | 130
College Connect
“A Social Networking Website”
" </head>\n" +
" <body>\n" +
+ "</td>\n" +
Page | 131
College Connect
“A Social Networking Website”
"<table>\n"+
" </table>\n" +
" \n" +
"</td>\n"+
"</tr>\n"+
"\n" +
" \n" +
" \n" +
Page | 132
College Connect
“A Social Networking Website”
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
Page | 133
College Connect
“A Social Networking Website”
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
Page | 134
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" \n" +
" </table>\n" +
" \n" +
" </form>\n" +
" </body>\n" +
"</html>");
catch(Exception e)
System.out.println(e.toString());
/**
Page | 135
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
Page | 136
College Connect
“A Social Networking Website”
/**
*/
@Override
}// </editor-fold>
postComment.jsp
<%--
Document : s_post_comments
Author : PWC
--%>
<!DOCTYPE html>
<html>
<head>
Page | 137
College Connect
“A Social Networking Website”
<title>Posts</title>
</head>
<body>
<div align="center">
<%@include file="header.jsp"%>
Page | 138
College Connect
“A Social Networking Website”
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
post.java
/*
*/
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
Page | 139
College Connect
“A Social Networking Website”
import java.io.OutputStream;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Part;
/**
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/post"})
/**
Page | 140
College Connect
“A Social Networking Website”
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
String post=request.getParameter("post");
Part filePart=request.getPart("f");
String profilepic=getFileName(filePart);
String
basePath="C:\\Users\\hp\\Documents\\NetBeansProjects\\college_connect\\web\\propic\\";
InputStream inputStream=null;
Page | 141
College Connect
“A Social Networking Website”
OutputStream outputStream=null;
try
inputStream=filePart.getInputStream();
outputStream=new FileOutputStream(outputFilePath);
int read=0;
while((read=inputStream.read(bytes))!=-1){
outputStream.write(bytes,0,read);
catch(Exception ex)
out.println(ex.toString());
finally
if(outputStream!=null){
outputStream.close();
if(inputStream!=null){
Page | 142
College Connect
“A Social Networking Website”
inputStream.close();
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,uid);
ps.setString(2,post);
ps.setString(3,profilepic);
ps.executeUpdate();
// out.println("posted");
response.sendRedirect("postview");
catch(Exception ex)
out.println(ex.toString());
Page | 143
College Connect
“A Social Networking Website”
System.out.println("*****partHeader:"+partHeader);
for(String content:part.getHeader("content-disposition").split(";")){
if(content.trim().startsWith("filename")){
return null;
/**
Page | 144
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
/**
Page | 145
College Connect
“A Social Networking Website”
*/
@Override
}// </editor-fold>
postView.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
Page | 146
College Connect
“A Social Networking Website”
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/postview"})
/**
* methods.
Page | 147
College Connect
“A Social Networking Website”
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
//ps.setString(1,uid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
if(rs.next())
Page | 148
College Connect
“A Social Networking Website”
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
"\n" +
Page | 149
College Connect
“A Social Networking Website”
" \n" +
" <table>\n"
);
String p;
while(rs.next()){
p= rs.getString(1);
//request.setAttribute("postid",p);
// RequestDispatcher rd = request.getRequestDispatcher(p);
//rd.forward(request,response);
out.println(
"<tr><td>Posts</td><td>"+rs.getString(2)+"</td></tr> \n" +
Page | 150
College Connect
“A Social Networking Website”
out.println(
" \n" +
"</div>\n" +
" \n" +
" \n" +
" </td>\n" +
" \n" +
" </tr>\n" +
Page | 151
College Connect
“A Social Networking Website”
" </table>\n" +
"\n" +
" \n" +
" \n" +
" \n" +
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
Page | 152
College Connect
“A Social Networking Website”
"\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
" \n" +
"\n" +
" <ul>\n" +
Page | 153
College Connect
“A Social Networking Website”
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" </table>"+
" </div>\n" +
" </form>\n" +
" </body>\n" +
"</html>");
Page | 154
College Connect
“A Social Networking Website”
catch(Exception ex)
System.out.println(ex.toString());
/**
*/
@Override
processRequest(request, response);
Page | 155
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
*/
@Override
Page | 156
College Connect
“A Social Networking Website”
}// </editor-fold>
comment.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Page | 157
College Connect
“A Social Networking Website”
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/comment"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
Page | 158
College Connect
“A Social Networking Website”
/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
String p=(String)ses.getAttribute("post");
String comment=request.getParameter("comment");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps1.setString(1,comment);
ps1.setString(2,p);
// ps1.setString(3,uid);
// out.println(uid);
ResultSet rs=ps1.executeQuery();
Page | 159
College Connect
“A Social Networking Website”
out.println("commented");
catch(Exception ex)
System.out.println(ex.toString());
/**
*/
@Override
Page | 160
College Connect
“A Social Networking Website”
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
/**
*/
Page | 161
College Connect
“A Social Networking Website”
@Override
}// </editor-fold>
Page | 162
College Connect
“A Social Networking Website”
commentType.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
Page | 163
College Connect
“A Social Networking Website”
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/comment_type"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
Page | 164
College Connect
“A Social Networking Website”
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,uid);
ps.setString(2,request.getParameter("comment"));
// out.println(uid);
ps.executeUpdate();
ps1.setString(1,uid);
// out.println(uid);
ResultSet rs=ps1.executeQuery();
out.println("<html>\n" +
" <head>\n" +
Page | 165
College Connect
“A Social Networking Website”
" \n" +
" </head>\n" +
" <body>\n" +
" \n" +
Page | 166
College Connect
“A Social Networking Website”
"<div style='width:400px;height:750px'></div>\n" +
" <table><tr><td>\n" +
" <ul>\n" );
while(rs.next())
out.println("<li>"+rs.getString(1)+"</li>\n" );
out.println(" </ul>\n" +
" \n" +
" </div>\n" +
" \n" +
" \n" +
" </td>\n" +
" \n" +
" </tr>\n" +
" </table>\n" +
" </div>\n" +
" </form>\n" +
" </body>\n" +
Page | 167
College Connect
“A Social Networking Website”
"</html>");
catch(Exception ex)
System.out.println(ex.toString());
/**
*/
@Override
Page | 168
College Connect
“A Social Networking Website”
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
/**
*/
Page | 169
College Connect
“A Social Networking Website”
@Override
}// </editor-fold>
Faculty.html
<!DOCTYPE html>
<!--
-->
<html>
<head>
<title>Faculty</title>
<meta charset="UTF-8">
</head>
<body>
<div align="center">
Page | 170
College Connect
“A Social Networking Website”
</tr>
</table>
Page | 171
College Connect
“A Social Networking Website”
<div class="module-body">
</div>
</div></td>
<td>
<div class="module-body">
Page | 172
College Connect
“A Social Networking Website”
</div>
</div></td>
<td>
<div class="module-body">
<ul>
<li><a href="/index.php/component/content/article/14-annnual-result/84-annual-
result.html">Annual Result</a></li>
<li><a href="/index.php/component/content/article/15-media-response/85-media-
response.html">Media Response</a></li>
</ul></div>
</div>
Page | 173
College Connect
“A Social Networking Website”
</div>
</td>
</table>
</body>
</html>
facultyProfile.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
Page | 174
College Connect
“A Social Networking Website”
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/f_myprofile"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
Page | 175
College Connect
“A Social Networking Website”
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,uid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
if(rs.next())
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
"\n" +
Page | 176
College Connect
“A Social Networking Website”
Page | 177
College Connect
“A Social Networking Website”
" </table>\n" +
" </td>\n" +
" </tr>\n" +
" \n" +
" \n" +
" \n" +
Page | 178
College Connect
“A Social Networking Website”
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
Page | 179
College Connect
“A Social Networking Website”
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
Page | 180
College Connect
“A Social Networking Website”
" \n" +
" </table>\n" +
" </div>\n" +
" </form>\n" +
" \n" +
" \n" +
" </body>\n" +
"</html>\n" +
"");
catch(Exception ex)
System.out.println(ex.toString());
/**
Page | 181
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
Page | 182
College Connect
“A Social Networking Website”
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
facultyEditProfile.jsp
<%--
Document : faculty_edit_profile
Author : PWC
--%>
<!DOCTYPE html>
Page | 183
College Connect
“A Social Networking Website”
<html>
<head>
<title>Edit Profile</title>
</head>
<body>
<div align="center">
Page | 184
College Connect
“A Social Networking Website”
</table>
</table>
</div>
</form>
</body>
</html>
facultyNotification.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
Page | 185
College Connect
“A Social Networking Website”
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/f_view_notification"})
/**
* methods.
Page | 186
College Connect
“A Social Networking Website”
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
//ps.setString(1,uid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
Page | 187
College Connect
“A Social Networking Website”
" <body>\n" +
" \n" +
" \n" +
Page | 188
College Connect
“A Social Networking Website”
" <table><tr><td>\n" );
while(rs.next())
out.println("<li> "+rs.getString(1)+"</li>\n");
out.println(
" \n" +
" </td></tr>\n" +
" \n" +
" </table>\n" +
" </td></tr>\n" +
" \n" +
" \n" +
" \n" +
Page | 189
College Connect
“A Social Networking Website”
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
Page | 190
College Connect
“A Social Networking Website”
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
Page | 191
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" \n" +
" \n" +
" </table>\n"+
" </div>\n" +
" </body>\n" +
"</html>\n" +
"");
catch(Exception ex)
System.out.println(ex.toString());
/**
Page | 192
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
Page | 193
College Connect
“A Social Networking Website”
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
updateResult.jsp
<%--
Document : update_result
Author : PWC
--%>
<!DOCTYPE html>
Page | 194
College Connect
“A Social Networking Website”
<html>
<head>
<title>Update Result</title>
</head>
<body>
<div align="center">
Page | 195
College Connect
“A Social Networking Website”
</tr>
</table>
</table>
</div>
</form>
</body>
</html>
updateResult.java
/*
Page | 196
College Connect
“A Social Networking Website”
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/updateResult"})
/**
Page | 197
College Connect
“A Social Networking Website”
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
String regid=request.getParameter("regid");
String marks=request.getParameter("marks");
String percent=request.getParameter("percent");
String div=request.getParameter("div");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
Page | 198
College Connect
“A Social Networking Website”
ps.setString(1,regid);
ps.setString(2,marks);
ps.setString(3,percent);
ps.setString(4,div);
ps.executeUpdate();
out.println("<script type=\"text/javascript\">");
out.println("alert('Sucessfully Updated');");
out.println("location='update_result.jsp';");
out.println("</script>");
// response.sendRedirect("viewResult");
System.out.println(ex.toString());
/**
Page | 199
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
Page | 200
College Connect
“A Social Networking Website”
/**
*/
@Override
}// </editor-fold>
updateExamDetails.jsp
<%--
Document : update_exam_details
Author : PWC
--%>
<!DOCTYPE html>
<html>
Page | 201
College Connect
“A Social Networking Website”
<head>
</head>
<body>
<div align="center">
Page | 202
College Connect
“A Social Networking Website”
<option value="sem1">Sem1</option>
<option value="sem2">Sem2</option>
<option value="sem3">Sem3</option>
<option value="sem4">Sem4</option>
<option value="sem5">Sem5</option>
<option value="sem6">Sem6</option>
</select><br><br>
</td></tr>
</table>
</table>
</div>
</form>
</body>
</html>
Page | 203
College Connect
“A Social Networking Website”
updateExamDetails.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.swing.JOptionPane;
/**
* @author PWC
*/
Page | 204
College Connect
“A Social Networking Website”
@WebServlet(urlPatterns = {"/updateExamDetails"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
//HttpSession ses=request.getSession();
//String uid=(String)ses.getAttribute("uid");
String sem=request.getParameter("sem");
String date=request.getParameter("date");
Page | 205
College Connect
“A Social Networking Website”
String time=request.getParameter("time");
String center=request.getParameter("center");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,sem);
ps.setString(2,date);
ps.setString(3,time);
ps.setString(4,center);
ps.executeUpdate();
// out.println("Successfully Updated");
// JOptionPane.showMessageDialog(null,"Successfully Updated");
out.println("<script type=\"text/javascript\">");
out.println("alert('Sucessfully Updated');");
out.println("location='update_exam_details.jsp';");
out.println("</script>");
// response.sendRedirect("update_exam_details.jsp");
Page | 206
College Connect
“A Social Networking Website”
catch(Exception ex)
out.println(ex.toString());
/**
*/
@Override
processRequest(request, response);
Page | 207
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
Page | 208
College Connect
“A Social Networking Website”
facultyPostComments.jsp
<%--
Document : post_comment
Author : PWC
--%>
<!DOCTYPE html>
<html>
<head>
<title>Post&Comments</title>
</head>
<body>
<div align="center">
Page | 209
College Connect
“A Social Networking Website”
</td>
</tr>
</table>
Page | 210
College Connect
“A Social Networking Website”
</table>
</div>
</form>
</body>
</html>
facultyPost.java
/*
*/
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
Page | 211
College Connect
“A Social Networking Website”
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Part;
/**
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/fpost"})
/**
* methods.
Page | 212
College Connect
“A Social Networking Website”
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Part filePart=request.getPart("f");
String profilepic=getFileName(filePart);
String
basePath="C:\\Users\\hp\\Documents\\NetBeansProjects\\college_connect\\web\\propic\\";
InputStream inputStream=null;
OutputStream outputStream=null;
try
inputStream=filePart.getInputStream();
outputStream=new FileOutputStream(outputFilePath);
Page | 213
College Connect
“A Social Networking Website”
int read=0;
while((read=inputStream.read(bytes))!=-1){
outputStream.write(bytes,0,read);
catch(Exception ex)
out.println(ex.toString());
finally
if(outputStream!=null){
outputStream.close();
if(inputStream!=null){
inputStream.close();
Class.forName("org.apache.derby.jdbc.ClientDriver");
Page | 214
College Connect
“A Social Networking Website”
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,profilepic);
ps.setString(2,uid);
ps.executeUpdate();
response.sendRedirect("fpostview");
catch(Exception ex)
out.println(ex.toString());
System.out.println("*****partHeader:"+partHeader);
for(String content:part.getHeader("content-disposition").split(";")){
if(content.trim().startsWith("filename")){
Page | 215
College Connect
“A Social Networking Website”
return null;
/**
*/
@Override
processRequest(request, response);
Page | 216
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
Page | 217
College Connect
“A Social Networking Website”
facultyPostView.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Page | 218
College Connect
“A Social Networking Website”
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/fpostview"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
Page | 219
College Connect
“A Social Networking Website”
/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
//ps.setString(1,uid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
if(rs.next())
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
Page | 220
College Connect
“A Social Networking Website”
"\n" +
" \n" +
Page | 221
College Connect
“A Social Networking Website”
" \n" +
" <table><tr><td>\n" );
String p;
while(rs.next()){
p=rs.getString(1);
// p= rs.getString(1);
//request.setAttribute("postid",p);
// RequestDispatcher rd = request.getRequestDispatcher(p);
//rd.forward(request,response);
out.println(
"<tr><td>Posts</td><td>"+rs.getString(2)+"</td></tr> \n" +
Page | 222
College Connect
“A Social Networking Website”
out.println(
" \n" +
" \n" +
" \n" +
" </td>\n" +
" \n" +
" </tr>\n" +
" </table>\n" +
"\n" +
" \n" +
Page | 223
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
Page | 224
College Connect
“A Social Networking Website”
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
" \n" +
"\n" +
" <ul>\n" +
Page | 225
College Connect
“A Social Networking Website”
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" </table>"+
" </div>\n" +
" </form>\n" +
" </body>\n" +
"</html>");
Page | 226
College Connect
“A Social Networking Website”
catch(Exception ex)
System.out.println(ex.toString());
/**
*/
@Override
processRequest(request, response);
Page | 227
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
Page | 228
College Connect
“A Social Networking Website”
facultyComment.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
Page | 229
College Connect
“A Social Networking Website”
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/fcomment"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Page | 230
College Connect
“A Social Networking Website”
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
// ps.setString(1,hid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
Page | 231
College Connect
“A Social Networking Website”
" \n" +
" \n" +
"<div style='width:400px;height:750px'></div>\n" +
" <table><tr><td>\n" +
" <ul>\n" );
while(rs.next())
out.println("<li><img src='propic/"+rs.getString(1)+"'height='100px'
width='100px'/></li>\n" +
Page | 232
College Connect
“A Social Networking Website”
out.println(" </ul>\n" +
" \n" +
" </div>\n" +
" \n" +
" </td>\n" +
" \n" +
" </tr>\n" +
" </table>\n" +
" </div>\n" +
" </form>\n" +
" </body>\n" +
"</html>");
out.println("</body>");
out.println("</html>");
Page | 233
College Connect
“A Social Networking Website”
catch(Exception ex)
System.out.println(ex.toString());
/**
*/
@Override
Page | 234
College Connect
“A Social Networking Website”
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
/**
*/
@Override
Page | 235
College Connect
“A Social Networking Website”
}// </editor-fold>
facultyComment_type.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Page | 236
College Connect
“A Social Networking Website”
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/fcomment_type"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
Page | 237
College Connect
“A Social Networking Website”
/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
String uid=(String)ses.getAttribute("uid");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,uid);
ps.setString(2,request.getParameter("comment"));
// out.println(uid);
ps.executeUpdate();
ps1.setString(1,uid);
// out.println(uid);
ResultSet rs=ps1.executeQuery();
Page | 238
College Connect
“A Social Networking Website”
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
" \n" +
Page | 239
College Connect
“A Social Networking Website”
" \n" +
"<div style='width:400px;height:750px'></div>\n" +
" <table><tr><td>\n" +
" <ul>\n" );
while(rs.next())
out.println("<li>"+rs.getString(1)+"</li>\n" );
out.println(" </ul>\n" +
" \n" +
" </div>\n" +
" \n" +
" </td>\n" +
" \n" +
" </tr>\n" +
" </table>\n" +
Page | 240
College Connect
“A Social Networking Website”
" </div>\n" +
" </form>\n" +
" </body>\n" +
"</html>");
out.println("</body>");
out.println("</html>");
catch(Exception ex)
System.out.println(ex.toString());
/**
Page | 241
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
/**
Page | 242
College Connect
“A Social Networking Website”
*/
@Override
}// </editor-fold>
adminlogin.html
<!DOCTYPE html>
<!--
-->
<html>
<head>
<title>Admin Login</title>
<meta charset="UTF-8">
Page | 243
College Connect
“A Social Networking Website”
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
li {
float: left;
li a {
display: block;
color: black;
text-align: center;
text-decoration: none;
Page | 244
College Connect
“A Social Networking Website”
</style>
</head>
<body >
<div align="center">
<ul>
<li><a href="registration.html">Register</a></li>
<li><a href="notice">Notice</a></li>
<li><a href="http://www.patnawomenscollege.in/index.php/notices/281-admission-
notice-2018.html">Admission Notice</a><li>
</ul>
</td></tr>
Page | 245
College Connect
“A Social Networking Website”
<br>
<br>
<br>
<table >
</table>
</td>
</tr>
<div class="module-body">
Page | 246
College Connect
“A Social Networking Website”
</div>
</div></td>
<td>
<div class="module-body">
</div>
</div></td>
<td>
Page | 247
College Connect
“A Social Networking Website”
<div class="module-body">
<ul>
<li><a href="/index.php/component/content/article/14-annnual-result/84-annual-
result.html">Annual Result</a></li>
<li><a href="/index.php/component/content/article/15-media-response/85-media-
response.html">Media Response</a></li>
</ul></div>
</div>
</div>
</td>
</table>
</form>
</body>
</html>
Page | 248
College Connect
“A Social Networking Website”
adminlogin.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
Page | 249
College Connect
“A Social Networking Website”
*/
@WebServlet(urlPatterns = {"/adminlogin"})
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Page | 250
College Connect
“A Social Networking Website”
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
ps.setString(1,request.getParameter("email"));
ps.setString(2,request.getParameter("pwd"));
ResultSet rs=ps.executeQuery();
if(rs.next())
response.sendRedirect("adminNotification");
//out.println("Successfully Login");
else
catch(Exception ex)
out.println(ex.toString());
Page | 251
College Connect
“A Social Networking Website”
/**
*/
@Override
processRequest(request, response);
/**
Page | 252
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
adminNotification.java
/*
Page | 253
College Connect
“A Social Networking Website”
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/adminNotification"})
/**
Page | 254
College Connect
“A Social Networking Website”
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
//ps.setString(1,uid);
// out.println(uid);
ResultSet rs=ps.executeQuery();
out.println("<html>\n" +
" <head>\n" +
Page | 255
College Connect
“A Social Networking Website”
" </head>\n" +
" <body>\n" +
" \n" +
" \n" +
Page | 256
College Connect
“A Social Networking Website”
" <table><tr><td>\n" );
while(rs.next())
out.println("<li> "+rs.getString(1)+"</li>\n");
out.println(" </ul>\n" +
" \n" +
"</td>\n" +
" </tr>\n" +
" \n" +
" </table>\n" +
" \n" +
" \n" +
" </table>\n" +
" \n" +
" \n" +
" \n" +
Page | 257
College Connect
“A Social Networking Website”
" \n" +
" \n" +
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
" \n" +
"\n" +
Page | 258
College Connect
“A Social Networking Website”
c=A&output=embed\"></iframe><br /><small><a
href=\"https://maps.google.co.in/maps?q=patna+womens+college&ie=UTF8&hq=&
amp;hnear=&ll=25.611628,85.124868&spn=0.006295,0.006295&t=m&iwl
oc=A&source=embed\" style=\"color:#0000FF;text-align:left\">View Larger
Map</a></small></div>\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
" \n" +
"\n" +
" <ul>\n" +
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
Page | 259
College Connect
“A Social Networking Website”
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" </table>\n" +
" \n" +
" \n" +
" </body>\n" +
"</html>\n" +
"");
catch(Exception ex)
Page | 260
College Connect
“A Social Networking Website”
System.out.println(ex.toString());
/**
*/
@Override
processRequest(request, response);
/**
Page | 261
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
}// </editor-fold>
Page | 262
College Connect
“A Social Networking Website”
updateNotification.jsp
<%--
Document : update_notification
Author : PWC
--%>
<!DOCTYPE html>
<html>
<head>
<title>Update Notification</title>
<title>JSP Page</title>
</head>
<body>
<div align="center">
<%@include file="header.jsp"%>
Page | 263
College Connect
“A Social Networking Website”
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Page | 264
College Connect
“A Social Networking Website”
updateNotification.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/updatenotification"})
Page | 265
College Connect
“A Social Networking Website”
/**
* methods.
*/
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
String notification=request.getParameter("notification");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
Page | 266
College Connect
“A Social Networking Website”
ps.setString(1, notification);
ps.executeUpdate();
//out.println("successful");
response.sendRedirect("view_notification");
catch(Exception ex)
out.println(ex.toString());
/**
Page | 267
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
Page | 268
College Connect
“A Social Networking Website”
/**
*/
@Override
}// </editor-fold>
approveMembers.jsp
<%--
Document : approve_members
Author : PWC
--%>
<!DOCTYPE html>
<html>
<head>
<title>Approve Members</title>
Page | 269
College Connect
“A Social Networking Website”
<title>JSP Page</title>
</head>
<body>
<div align="center">
<%@include file="header.jsp"%>
<table colspan="4"padding="1">
<tr>
<td>Image</td><td></td>
Page | 270
College Connect
“A Social Networking Website”
<td>Name</td><td></td>
<td>Member Type</td><td></td>
<td>Registration Id</td><td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
approveMembers.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
Page | 271
College Connect
“A Social Networking Website”
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author PWC
*/
@MultipartConfig
@WebServlet(urlPatterns = {"/approvemembers"})
/**
* methods.
Page | 272
College Connect
“A Social Networking Website”
*/
response.setContentType("text/html;charset=UTF-8");
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
con=DriverManager.getConnection("jdbc:derby://localhost:1527/CollegeConnect","CollegeCo
nnect","CollegeConnect");
PreparedStatement ps=con.prepareStatement("select
account_id,profile_pic,name,member_type,regid from member_details");
Page | 273
College Connect
“A Social Networking Website”
ResultSet rs = ps.executeQuery();
//String act=rs.getString(1);
out.println("<html>\n" +
" <head>\n" +
" </head>\n" +
" <body>\n" +
" \n" +
" </tr>\n"+
Page | 274
College Connect
“A Social Networking Website”
" \n" +
" \n" +
while(rs.next())
" <td>"+rs.getString(3)+"</td>\n" +
out.println(
" </tr>\n" +
Page | 275
College Connect
“A Social Networking Website”
" </table>\n" +
"</div>\n"+
" </td>\n" +
" </tr>\n" +
" </table>\n" +
"\n" +
" \n" +
" \n" +
" </div>\n" +
" </div></td>\n" +
" <td>\n" +
Page | 276
College Connect
“A Social Networking Website”
" \n" +
"\n" +
" </div>\n" +
"</div></td>\n" +
"<td>\n" +
" \n" +
"\n" +
" <ul>\n" +
Page | 277
College Connect
“A Social Networking Website”
"<li><a href=\"/index.php/component/content/article/14-annnual-result/84-annual-
result.html\">Annual Result</a></li>\n" +
"<li><a href=\"/index.php/component/content/article/15-media-response/85-media-
response.html\">Media Response</a></li>\n" +
"</ul></div>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
" </td>\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" </table>\n" +
" \n" +
" </body>\n" +
"</html>");
Page | 278
College Connect
“A Social Networking Website”
/* if(request.getParameter("btnsubmit")!=null)
ps1.executeQuery();
}*/
//response.sendRedirect("login.html");
catch(Exception ex)
out.println(ex.toString());
/**
Page | 279
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
Page | 280
College Connect
“A Social Networking Website”
/**
*/
@Override
}// </editor-fold>
logout.java
/*
*/
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
Page | 281
College Connect
“A Social Networking Website”
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* @author PWC
*/
@WebServlet(urlPatterns = {"/logout"})
/**
* methods.
*/
Page | 282
College Connect
“A Social Networking Website”
response.setContentType("text/html;charset=UTF-8");
/* TODO output your page here. You may use following sample code. */
try
{/* TODO output your page here. You may use following sample code. */
HttpSession ses=request.getSession();
ses.invalidate();
response.sendRedirect("home.html");
catch(Exception ex)
out.println(ex.toString());
/**
Page | 283
College Connect
“A Social Networking Website”
*/
@Override
processRequest(request, response);
/**
*/
@Override
processRequest(request, response);
Page | 284
College Connect
“A Social Networking Website”
/**
*/
@Override
}// </editor-fold>
header.jsp
<%--
Document : header
Author : VL-8p
--%>
<!DOCTYPE html>
Page | 285
College Connect
“A Social Networking Website”
</tr>
footer.jsp
<%--
Document : footer
Author : VL-8p
--%>
<!DOCTYPE html>
<div class="module-body">
Page | 286
College Connect
“A Social Networking Website”
</div>
</div></td>
<td>
<div class="module-body">
</div>
Page | 287
College Connect
“A Social Networking Website”
</div></td>
<td>
<div class="module-body">
<ul>
<li><a href="/index.php/component/content/article/14-annnual-result/84-annual-
result.html">Annual Result</a></li>
<li><a href="/index.php/component/content/article/15-media-response/85-media-
response.html">Media Response</a></li>
</ul></div>
</div>
</div>
</td>
</table>
Page | 288
College Connect
“A Social Networking Website”
Page | 289
College Connect
“A Social Networking Website”
Home Page
Notice Page
Page | 290
College Connect
“A Social Networking Website”
Registration page
Page | 291
College Connect
“A Social Networking Website”
Member Login
Page | 292
College Connect
“A Social Networking Website”
Page | 293
College Connect
“A Social Networking Website”
My Profile Page
Page | 294
College Connect
“A Social Networking Website”
Vie
View Notification Page
Page | 295
College Connect
“A Social Networking Website”
Page | 296
College Connect
“A Social Networking Website”
Post Page
Page | 297
College Connect
“A Social Networking Website”
Page | 298
College Connect
“A Social Networking Website”
My Profile Page
Page | 299
College Connect
“A Social Networking Website”
Page | 300
College Connect
“A Social Networking Website”
Page | 301
College Connect
“A Social Networking Website”
Page | 302
College Connect
“A Social Networking Website”
Post Page
Page | 303
College Connect
“A Social Networking Website”
Page | 304
College Connect
“A Social Networking Website”
Page | 305
College Connect
“A Social Networking Website”
Finally, the log out page is the page that closes all the sessions and where all the data
and cookies are deleted, the page also ask the user click a link to d
direct
irect them back tto
the home page.
Page | 306
College Connect
“A Social Networking Website”
Testing
Page | 307
College Connect
“A Social Networking Website”
Introduction
Testing is the process of running a system with the intention of finding errors.Testing enhances the
integrity of a system by detecting deviations in design anderrors in the system. Testing aims at
detecting error-prone areas. This helps in theprevention of errors in a system. Testing also adds value
to the product byconforming to the user requirements.
The main purpose of testing is to detect errors and error-prone areas in asystem. Testing must be
thorough and well-planned. A partially tested system is asbad as an untested system. And the price
of an untested and under-tested system ishigh.
The implementation is the final and important phase. It involves user-training, system testing in
order to ensure successful running of the proposedsystem. The user tests the system and changes
are made according to their needs.The testing involves the testing of the developed system using
various kinds of data. While testing, errors are noted and correctness is the mode.
OBJECTIVES OF TESTING:
The objectives of testing are:
System testing is a stage of implementation, which is aimed at ensuringthat the system works
accurately and efficiently as per the user need, before thelive operation commences. As stated
before, testing is vital to the success of asystem. System testing makes a logical assumption that if all
parts of the as systemare correct, the goal will be successfully achieved. A series of tests are
performedbefore the system is ready for the user acceptance test.
Page | 308
College Connect
“A Social Networking Website”
TESTING METHODS
System testing is the stage of implementation. This is to check whether the systemworks accurately
and efficiently before live operation commences. Testing is vital to thesuccess of the system. The
candidate system is subject to a variety of tests: on lineresponse, volume, stress, recovery, security
and usability tests. A series of tests areperformed for the proposed system is ready for user
acceptance testing.
The Testing Steps are:
Unit Testing
Unit testing focuses efforts on the smallest unit of software design. This isknown as module testing.
The modules are tested separately. The test is carried outduring programming stage itself. In this
step, each module is found to be workingsatisfactory as regards to the expected output from the
module.
Integration Testing
Data can be lost across an interface. One module can have an adverse effecton another, sub
functions, when combined, may not be linked in desired manner inmajor functions. Integration
testing is a systematic approach for constructing theprogram structure, while at the same time
conducting test to uncover errorsassociated within the interface. The objective is to take unit tested
modules andbuilds program structure. All the modules are combined and tested as a whole.
Validation
At the culmination of the integration testing, Software is completelyassembled as a package.
Interfacing errors have been uncovered and corrected anda final series of software test begin in
validation testing. Validation testing can bedefined in many ways, but a simple definition is that the
validation succeeds when the software functions in a manner that is expected by the customer.
Aftervalidation test has been conducted, one of the three possible conditions exists.
Page | 309
College Connect
“A Social Networking Website”
Proposed system under consideration has been tested by using validation test andfound to
be working satisfactory.
Output Testing
After performing the validation testing, the next step is output testing of theproposed system, since
no system could be useful if it does not produce therequired output in a specific format. The output
format on the screen is found to becorrect. The format was designed in the system design time
according to the userneeds. For the hard copy also; the output comes as per the specified
requirementsby the user. Hence output testing did not result in any correction for the system.
Security mechanisms
This system is provided with authentication without which no user can pass. So only thelegitimate
users are allowed to use the application. If the legitimate users share theauthentication information
then the system is open to outsiders.
Page | 310
College Connect
“A Social Networking Website”
Test Report
S.No. Test Case Title Description Expected Result
Outcome
1. Member Member Member should Passed
Registration register register
themselves to themselves
the website
2. Sucessful User The login to the Login should be Passed
Verification system should successful and the
be tried with the user should enter
correct login into the system
username and
password
3. Unsuccessful User Login into the Login should fail Passed
Verification due to system with with an error
wrong password wrong password ’Invalid Password’
4. Unsuccessful User Login into the Login should fail Passed
Verification due to system with with an error
Invalid login Id wrong user id ’Invalid User Id’
5. Unsuccessful User Login into the Login should fail Passed
Verification due to system without with an error ’Not
not approved by approval by Approved by
Admin admin Admin’
6. Password Manager Before login the Account Passed
member can password is
view their showned
forgotten
password by
entering correct
data
7. Edit Profile and View After Login the Member should Passed
Profile user can edit update their data
and view its very efficiently
existing and and also view
updated profile their profile
data
Page | 311
College Connect
“A Social Networking Website”
Page | 312
College Connect
“A Social Networking Website”
Evaluation
Evaluation of the system is performed to identify its strengths and weaknesses. The
actual evaluation can occur along any of the following dimensions:
Page | 313
College Connect
“A Social Networking Website”
Maintenance
The Maintenance Stage is the final phase of the SDLC. After software passes the design
stage and is implemented, the maintenance phase of the software life cycle begins.
The maintenance phase of the software life cycle allows individuals to check the
performance of the software after it is launched to see if it is all working correctly.
There are two major types of maintenance corrective maintenance and adaptive
maintenance.
1. Corrective Maintenance:
Even after putting extra efforts and expertise on board for developing flawless
software, it is practically not possible to have fault free system. We do look into the
system even after installed in production for defects. The defects popped up during the
usage of the system need to be fixed and this type of fixing will fall under corrective
maintenance.
2. Adaptive Maintenance:
It has been observed that user come up with some uncovered requirement which was
not a part of requirement analysis phase, but they got to know new things only after
using the system. Usage of the system helps the user to define their requirement more
accurately. This requirement may cause the modification is accepted and installed
system, this type of medication fall under adaptive maintenance.
Page | 314
College Connect
“A Social Networking Website”
Now, when such social networking site is easily approachable to the user via website, it is
easyand convenient for them to be in touch with their colleagues. It gives further opportunity to
thecoming users to enhance the IT technologies.
Page | 315
College Connect
“A Social Networking Website”
Potential distraction.
Page | 316
College Connect
“A Social Networking Website”
Conclusion
Page | 317
College Connect
“A Social Networking Website”
Bibliography
http://nevonprojects.com/college-social-network-web-project/
https://www.pinterest.com/pin/97249673173266393/ [p1]
Griffith, S., & Liyanage, L. (2008, June). An introduction to the potential of social
networking sites in education. In Emerging Technologies Conference 2008 (p. 9).[p2]
Roblyer, M., McDaniel, M., Webb, M., Herman, J., & Witty, J. V. (2010). Findings on
Facebook in higher education: A comparison of college faculty and student uses and
perceptions of social networking sites. The Internet and Higher Education, 13(3), 134-
140.[p4] Retrieved from http://www.sciencedirect.com/science/article/pii/S10967
51610000278
http://www.w3schools.com
http://www.javatpoint.com
http://www.freestudentprojects.com/java-projects/social-networking-site/
Page | 318