P. 1
001_A PROJECT REPORT on Social Networking

001_A PROJECT REPORT on Social Networking

|Views: 26|Likes:
Published by Dheeraj Singh

More info:

Published by: Dheeraj Singh on Feb 07, 2013
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less






The present miraculous in the fields of technology and the resulting impact on almost all work of life can be attributed to the fast development of computer technology. The growth of technology particularly in the recent has been very fast. In today's fast changing environment, computer can with proper programming process data towards logical conclusion classify and makes them readily available for the use. Computers are seen replacing human work. Use of computers can be seen in the offices, hospitals, railways and airline reservations, hotels, department stores etc. Computers have not allowed the enhancement in computation speed but also have brought about considerable reduction in space with cost effectiveness. Computers have become so versatile, that they have become indispensable not only to engineers, scientists, business executive, managers administrators, but also to the common men. This era of information explosion is totally based upon computer technology, which is accepted world wide today practically each and everything is access by computer (Internet). It used to be that computers made a difference only to lives of those used them. But with microprocessors being embedded in everything, from washing machine to toys and automobiles, they are going to impacting a lot more lives. With the explosion of information technology and advert new electronic and computers devices users need to be acquainted with a lost of things relating to myriad branches of knowledge and skills and numerous aspect of social, economy political and technology system to achieve the goal of nations growth and development in the 21st century.




About The Project:Introduction:Online or virtual Social Network, allow people with common interests to meet, communicate and share ideas and information, through a network like the web. While doing this, participants develop bonds with each other and the

community as a whole. Online Social Network have emerged as one of the most potential levers of action the web. Such Social Network can be built around demographic groups students, parents, professional groups - doctors or programmers or who share a particular personal interest bikers or clock repairers. Threaded by a common interest, community participants have a lot to share with each other. Once established, online Social Network provides a new way for brands to reach customers with special interest in their products. Online Social Network aims to achieve the following: • Engage citizens in participating democracy, discuss their own issues etc. • Encourage citizen-source journalism that complements and in some cases competes with local for-profit news organizations • Enable government officials to communicate with constituents more often, more easily and in a more meaningful way The target audience is anyone interested in local community issues/ any other issues. How does online Social Network Interact? Online Social Network interacts by virtue of their shared passion. They can be found in a variety of web destinations offering expression to interest-related activities. Like discussion forums, book sites, auction sites, trading/exchange sites, blogs and so on. The tools used are generally message boards, blogging applications, text chat. The building blocks of an online community

Online virtual Social Network makes use of a range of technologies that support person-to-person and person-togroup communications. The enabling technologies facilitate two distinct types of communication: Real time (or synchronous) Communication: through text chat and instant messaging Non-real time (or asynchronous) Communication: through message boards, mail lists, member and community web pages, and surveys. Additionally virtual Social Network also depend on a member database and may also include technologies to support registration, electronic commerce, directories (of products, services, suppliers, etc.) and searches (for searching member profiles, community documentation, reports, articles, transcripts, archives,etc.).

System Overview The application that I will develop covers the following areas: User’s Personal Details with Other Information: o Entering Personal Professional and Social Details. o Uploading personal image o Storing images. Friend search: o Entering name or location. Scrapbook: o Select the user and write the message in his message box. o View messages of various friends.

o Album o o

Deleting Particular Departments Details.

User can store unlimited photos in his album User can also view others album also. Friend list

o This is the page where user can see all his joined communities. o User can also remove coined communities from community list. Chat o User can chat with other online users. Add friend User can send /accept/reject friend to the desired user Salient Features: o A user is only allowed to enter the system through id and password. So unauthorized access id controlled. o A user can change his/her own password for his/her own security. o This system provides high efficiency to manage different operation. o It provides easy movement through the different screens. o Multiple users can use this system after few modifications. o Behaviour and look n’ feel of the tools can be controlled by comprehensive administration parameters o Web based administration for configuration, parameters, maintenance, and approval activities

or Guest speaker chat o Very flexible and generalized policy implementation for all tools. respective owners of different tools and moderators o Active content technology.o Web based content management and moderation tools. which enables any content of any tool to be pasted on any page of the site or any other site. This policy module controls access rights for visitors. members. For example. moderate and maintain contents for all tools. content for a poll can be pasted in any page within the your site. or any other site o Very comprehensive user and usage statistics THEORETICAL BACKGROUND SYSTEM ANALYSIS AND DESIGN ANALYSIS: . It can be carried out online in real time for tools like Room chat moderation. Moderators can approve.

The emphasis in the requirements analysis is on identifying what is needed from the system. Stating with what is needed. the requirement must be satisfied in the requirement specification document. This phase is the first step in moving fro the problem domain to the solution domain.Requirement analysis is down in order to understand the problem the software system is to solve. Preliminary user manual That describes the entire major user interfaces frequently forms a part bof the requirements documents. DESIGN: The purpose of the design phase is to plan a solution of the problem specified by the requirement document. understating the requirements of the system is the major task. or a combination of the two. The output of this phase is the design document. particularly testing and maintenances. The problem could be automating an existing manual process. some specification language has to be selected. All the factors that may affect the design and the proper functioning of the system should be specified in the requirement document. The developer has to develop the system to satisfy the client’s needs. as plan fort This document is similar to a blue print or the solution and is used later during . For large systems that have many features. design takes us towards how to satisfy the needs. not how the system will achieve its goals. Once the problem is analyzed and the essentials understood. The designs affect the quality of software. and that need to perform many different tasks. it has major impact on the later phases. developing a new automated system. For requirement specification in the form of a document.

file formats. and how the they interact with each other to produce the desired results. views for displaying all or a portion of the data. the specifications of these modules.implementation. aims to identify the modules should be in the system. Model-View-Controller Pattern Model-View-Controller (MVC) is a classic design pattern often used by applications that need the ability to maintain multiple views of the same data. testing and maintenance. Even new types of views and controllers that never existed before can interface with a model without forcing a change in the model design. . The MVC pattern hinges on a clean separation of objects into one of three categories — models for maintaining data. which is some time also called top level design. The design activity is often divided into two separate phases –system design And detailed design. multiple views and controllers can interface with the same model. Because of this separation. and controllers for handling events that affect the model or view(s). At the and of the system design all the major data structures. How It Works The MVC abstraction can be graphically represented as follows. output formats and the major modules in the system and their specifications are decided.

Each button in the spinner is an event source . the view gets data from the underlying model to refresh itself. The text field provides a view of the spinner’s current value. for example. or both. whenever a controller changes a view. Similarly. by revealing areas that were previously hidden. We currently do not have an element type that can directly represent a spinner component. all dependent views are automatically updated. The spinner’s data is held in a model that is shared with the text field.Events typically cause a controller to change a model. or view. A Concrete Example We explain the MVC pattern with the help of a simple spinner component which consists of a text field and two arrow buttons that can be used to increment or decrement a numeric value shown in the text field. Whenever a controller changes a model’s data or properties. but it easy is to synthesize a spinner using existing element types.

there is. While we have so far focused only on the two arrow buttons as likely source of events.that spawns an action event every time it is clicked. Some parts of a component may use different controllers than others . a third event source in this example — Whenever the text field has focus. Depending on the source of the event. The trampolines that initially receive the action events fired by the arrow buttons are also controllers — however. instead of modifying the spinner’s model directly. in fact. hitting the enter key fires off an action event that may potentially be handled by a different action listener than the one handling action events from the buttons. and route them to an action listener that eventually handles that event. Recall that a trampoline is a predefined action listener that simply delegates action handling to another listener. The buttons can be hooked up to trampolines that receive action events. they delegate the task to a separate controller (action listener). Multiple Controllers The MVC pattern allows any number of controllers to modify the same model. the ultimate action listener either increments or decrements the value held in the model — The action listener is an example of a controller.

Types of Testing  Unit Testing . A strategy employed for system testing is code testing. Testing performs a very critical role for quality assurance and for ensuring the reliability of software. The basic levels of testing are follows:System Testing The philosophy behind testing is to find errors.METHADOLOGY USED FOR TESTING Testing is the process of detecting errors. LEVEL OF TESTING In order to uncover the errors present in different phases we have the concept of levels of testing. To follow this method we developed some test data that resulted in executing every instruction in the program and module i. Test cases are devised with this in mind.e. To ensure that the coding is perfect two types of testing is performed or for that matter is performed on all system. Code Testing This strategy examines the logic of the program. every path is tested. System is not designed as entire nor are they tested as single systems. The results of testing are used later on during maintenance also.

. System Testing Here the entire software system is tested. When developing the module as well as finishing the development so that each module works without any error. and the goal OS to see if software meets its requirements. Link Testing Unit Testing Unit testing focuses verification effort on the smallest unit of software i. The reference document for this process is the requirement document.e. Testing here is focused on external behavior of the system: the internal logic of program is not emphasized. Here entire ‘ATM’ has been tested against requirements of project and it is checked whether all requirements of project have been satisfied or not. Acceptance Testing Acceptance Test is performed with realistic data of the client to demonstrate that the software is working satisfactorily. In this project each service can be thought of a module. the module. Giving different set of inputs has tested each module. Using the detailed design and the process specification testing is done to uncover errors within the boundary of the modules must be successful in the unit test before the start of the integration testing begins. The inputs are validated when accepting from the user.

Output for a given set of input combination is forwarded to other modules. This is used to check all possible combinations of execution paths though the code at every module level. taking care that every statement in the Code is executed at least once. Black Box Testing This testing method considers a module as a single unit and checks the unit at interface and communication with other module rather getting into details at statement level. White Box Testing This is a unit testing method where a unit will be taken at a time and tested thoroughly at a statement level to find the maximum possible errors. I have generated a list of test cases. Test cases should be selected so that largest number of attribute of an equivalence class is exercised at once. The white box testing is also called Glass Box Testing. the testing phase is an important part of software development. . I tested step wise every piece of code. sample data. It is the process of finding errors and missing operations and also a complete verification to determine whether the objectives are met and the user requirements are satisfied.In this project ‘Network Management of Database System’ I have collected some data and tested whether project is working correctly or not. Here the module will be treated as a block box that will take some input and generate output.

During the final testing. It is primarily concerned with user train. extensive user training may be required.METHADOLOGY ADOPTED. When the candidate system is linked to terminals or remote sites. Depending on the nature of the system. user acceptance is tested followed by user training.0 GHz  Ram 512 MB  Hdd-80 GB Capacity With 256 MB Free Space  LAN Card Software:- . Details of hardware & software Hardware: Processor Pentium IV 3. SYSTEM IMPLEMENTATION & DETAILS OF HARDWARE & SOFTWARE System implementation:The implementation phase is less creative then system design. site preparation and file conversion. the telecommunication network and tests of the network along with the system are also included under implementation.

Front-end Tools: Windows Xp  JSP/SERVLET  NETBEANS Back-end Tools: MYSQL SERVER 0-Level Context Send Request 0.1 USER Send Request Communi ty .


11 Join/Leav e Communi ty Delet e Scra p 0.1.7 Update Profile 0.1 Community 0 DB .0.1.12 Add Friend s 0.4 Post Scra p 0.9 Delete Communi ty 0.3 Verif y 0.1 5 View Friend s Scrap 0.1.8 View Profil e Create Communit y Login 0.5 View Scra p 0.1 Delete 3 Friend s View Friend s Album DB Album Creat 0.1 4 View Friend List 0.1.5 Registr y User e/Vie w Albu m Scrap DB Friend DB Profile DB Scrap DB User DB

1.5.2 USER Registr y 0.5.6 User Home User_Pers DB .1.1.1 Create Social Profile 0.5(Level 1) 0.1.4 Verify User DB User_Prof DB Create Profession al Profile 0.5 Create Personal Profile 0.

educati on schoo l college un Frnd _ F_un User_pr of un m ha s 1 accepted have send er 1 lnam e 1 occupati on fnam e 1 have m scrap Scr_t m Scr_ dt receive r un un User_pe r user 1 Favouri te movie 1 ha s city msg sta te Favourit e book about Ph no img Favourite novel hobbi es email 1 m ha ve ha ve C_type owne r m community un m albu m C_name C_img img .

Snapshot .








FriendList.IOException. import javax. public class AddFriendC extends HttpServlet { public void doGet(HttpServletRequest request. import javax.HttpServlet.http.servlet.HttpServletResponse. import javax. import java.UserAcc. UserAcc u=(UserAcc)session.servlet.http. IOException { try { HttpSession session=request.HttpServletRequest.servlet.servlet. import javax.http.getSession(true).HttpSession.http.Codeing AddFriendC. import models.java package controllers.getAttribute("user").io.ServletException. HttpServletResponse response) throws ServletException. . import javax. import models.servlet.

getAttribute("user").readSingle(Integer.readSi(reque st. HttpServletResponse response) throws ServletException.getUseraccid()). .setAttribute("useracc". response. model). } catch (Exception ex) { } } public void doPost(HttpServletRequest request. session.parseInt(u. FriendList model=new FriendList(). IOException { try { FriendList model=new FriendList().getUseraccid()).setUseraccid1(u.getSession(true).getUseraccid( )))).sendRedirect("views/AddFriend" ). model. HttpSession session=request. model.setAttribute("model".session. UserAcc u=(UserAcc)session.getParameter("email")). UserAcc.setUseraccid2(UserAcc.

Create(model).java /* . if (x > 0) { response. model). } else { response. } } catch (Exception ex) { } }} FriendList.setAttribute("model".sendRedirect("views/AddFri end").validate()==true){ int x = FriendList.sendRedirect("views/AddFriend "). } } else { response.sendRedirect("views/AddFri end").session. if(model.

validate_blank(useraccid1)) { addError("u1". import java. public boolean validate() { if (!Validator. */ package models. } if (!Validator. import java. import helpers. /** * @author Pratiksha */ public class FriendList extends BaseRecord { public String friendlistid. import helpers.Validator.Utils.util.validate_blank(useraccid2)) { .sql.ArrayList. choose Tools | Templates * and open the template in the editor. "Required").*. import helpers.* To change this template. public String useraccid1.BaseRecord. public String useraccid2.

} public static int Create(FriendList fl) throws Exception { int x = 0.size()==0. } return this.readSingle(Integer. } public UserAcc getUser1() throws Exception { return UserAcc. . "Required").readSingle(Integer.addError("u2".errors.parseInt(useraccid1)).parseInt(useraccid2)). } /** * @return the friendlistid */ //################################################# public UserAcc getUser() throws Exception { return UserAcc.

Connection con = DriverManager. ps. fl. x = ps.Url. Utils.setString(1.?)"). try { PreparedStatement ps = con.D). } //############################################# #### public static void Delete(String friendlistid ) throws Exception { Class. fl.close().forName(Utils.executeUpdate(). .?. Utils.prepareStatement("insert into FriendList values(null. ps.getConnection(Utils.Class.U.D).setString(2.getUseraccid2()).getUseraccid1()).forName(Utils.P). } return x. } finally { con.

friendlistid).getConnection(Utils. } } //################################################# public static ArrayList<FriendList> readall() throws Exception { ArrayList<FriendList> lst = new ArrayList<FriendList>().prepareStatement("delete from FriendList where friendlistid=?"). try { .executeUpdate(). ps.forName(Utils. ps. Connection con = DriverManager.P).Url.close(). try { PreparedStatement ps = con. Utils.U. } finally { con. Utils. Utils. Class.U.Connection con = DriverManager.setString(1.D).P).getConnection(Utils. Utils.Url.

forName(Utils.setUseraccid1(rs.executeQuery(). ua.setUseraccid2(rs. ua.getString(2)). } //################################################# public static ArrayList<FriendList> readallFri(String userid) throws Exception { ArrayList<FriendList> lst = new ArrayList<FriendList>().close().PreparedStatement ps = con. Class. lst. } } finally { con. .next()) { FriendList ua = new FriendList().prepareStatement("select * from FriendList").getString(3)). } return lst. while (rs.setFriendlistid(rs.D).add(ua).getString(1)) . ua. ResultSet rs = ps.

Utils.getString(3)).P). ua.getString(1)) .add(ua).close(). while (rs. Utils. ua.executeQuery().getString(2)). try { PreparedStatement ps = con. } } finally { con.setUseraccid1(rs. ps.U. userid).Connection con = DriverManager.next()) { FriendList ua = new FriendList(). } return lst.setUseraccid2(rs. ResultSet rs = ps.getConnection(Utils.prepareStatement("select * from FriendList where useraccid2=?"). ua. } .setString(1. lst.Url.setFriendlistid(rs.

setUseraccid2(rs. Utils. Class. ps. try { PreparedStatement ps = con.close().getString(2)). Friendlistid).setFriendlistid(rs.getString(3)). } .setUseraccid1(rs. if (rs.executeQuery(). ua.getConnection(Utils. Utils.D).getString(1)) . ResultSet rs = ps.Url. ua. } } finally { con. Connection con = DriverManager.P).setString(1.//################################################# public static FriendList readSingle(String Friendlistid ) throws Exception { FriendList ua = new FriendList().prepareStatement("select * from FriendList where Friendlistid=?").next()) { ua.forName(Utils.U.

ua.setFriendlistid(rs. try { PreparedStatement ps = con.D).Url.getString(1)) . if (rs.setUseraccid1(rs. Utils.getString(2)).next()) { ua. Class. ps. userid2). ResultSet rs = ps.setString(1. } public static FriendList readSingleFri2(String userid2 ) throws Exception { FriendList ua = new FriendList().setUseraccid2(rs. Utils. Connection con = DriverManager.return ua. ua.P). } .executeQuery().U.prepareStatement("select * from FriendList where useraccid1=?").getConnection(Utils.getString(3)).forName(Utils.

} public void setUseraccid1(String useraccid1) { this.friendlistid = friendlistid. } public void setFriendlistid(String friendlistid) { this. } return ua. } public String getUseraccid1() { return useraccid1.} finally { con.useraccid1 = useraccid1.close(). . } public String getFriendlistid() { return friendlistid.

} public String getUseraccid2() { return useraccid2. } } //################################################# . } public void setUseraccid2(String useraccid2) { this.useraccid2 = useraccid2.

sun./.0 Transitional//EN" "http://www...dtd"> <html xmlns="http://www.jsp <%@taglib prefix="c" uri="http://java.css" /> <title>Mind Links</title> </head> <body> <div id="container"> <div id="header" class="clearfix"> <div class="clsTop clearfix"> <!--logo--> <div id="selLogo"> <h1> <a href="#">Mind Links</a> </h1> </div> .w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html.org/TR/xhtml1/DTD/xhtml1transitional.com/jsp/jstl/core" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1./resources/css/style. charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href=".Header.w3.

../LoginC">Login</a></li> <li><a href=".login}"> <li> <a href =".login}"> <li><a href="./views/otherpages/about../UpdateAccC" >Edit Profile</a> </li> ./UserC">Register</a></li> </c:if> <c:if test="${not empty sessionScope./../.</div> <div class="clsMenu"> <div class="clsMenuLeft"> <div class="clsMenuRight"> <div class="clsMenuCenter"> <ul class="clearfix"> <c:if test="${empty sessionScope././HomeC" >User Home</a> </li> <li> <a href ="./..jsp">Home</a></li> <li><a href="..jsp">About Us</a></li> <li><a href="../...../views/otherpages/home./..

/.././FriendListC" > Friends</a> </li> <li> <a href ="..<li> <a href ="./.../AlbumC" >My Images</a> </li> <li> <a href ="./Logout">Logout</a></li> </c:if> </ul> </div> </div> ../....././ViewMessageC" >My Scraps</a> </li> <li> <a href="./AddFriendC" >Add Friends</a> </li> <li> <a href ="..

login}"> .</div> </div> <!--end of menu--> </div> <!--end of header--> <!--subhead--> <!--end of subhead--> <!--main--> <div id="main" class="clearfix"> <!--sidebox--> <div class="clsSidebox"> <div class="red_t"> <div class="red_r"> <div class="red_b"> <div class="red_l"> <div class="red_tl"> <div class="red_tr"> <div class="red_bl"> <div class="red_br"> <div class="cls100_p"> <c:if test="${empty sessionScope.

..emailid}" name="emailid" id="emailid" class="usertext"/></p> <p><label>Pass word</label><input type="password" value="" name="password" id="pass" class="usertext" /></p> <p><input class="loginbutton" name="button" type="submit" value="Login" /></p> <p><span>$ {errmsg}</span><a href="./..login}"> <h2>Profile</h2> <div class="clsLogin"> <div> ..<h2>login</h2> <div class="clsLogin"> <form action="./LoginC" method="POST"> <p><label>Emai l</label> <input type="text" value="${model1././UserC">New Register</a></p> </form> </div> </c:if> <c:if test="${not empty sessionScope.

.<img src="..././resources/imgs/user/${useracc..useraccid}.jpg" height="100" width="100"/> <center> <br /> <a href ="./ChangeImgC" >Change Image</a> </center> </div> </div> </c:if> <div class="red_t"> <div class="red_r"> <div class="red_b"> <div class="red_l"> <div class="red_tl"> <div class="red_tr"> <div class="red_bl"> <div class="red_br"> ./.

</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> .

<!--end of sidebox--> <!--content--> <div class="clsContent"> Footer. Copyright 2010 Information Goes Here. All rights reserved.jsp </div> <!--end of content--> </div> <!--end of main--> <!--footer--> <div id="footer"> <div class="clsSubFooter"> <p> &copy.</p> .

scaling in MSIE --*/ margin:0. background:url(.Enables font size .jpg) repeat scroll left top #0f2841..</div> </div> <!--end of footer--> </div> <!--end of container--> </body> </html> Style.css /* CSS Document */ body{ color:#fff6d7. padding:0. /*-./images/bg. font-size:80%. text-align:center. font:normal 12px trebuchet MS.

} .h3.} html > body{ font-size:9.table. } form.p.h5. list-style:none.h1. } li{ padding:0. body { height: 100%. margin:0. padding:0.h2.dl{ margin:0.5pt. font-size:100%.h6.h4. } html. } a{ text-decoration:none.li. color:#303030. outline:none.ul.div.

img{ border:0. } /* CSS Clearfix */ . } .} /* Hides from IE-mac \*/ * html .clsFloatRight{ float:right.clearfix {display: inline-table.clsFloatLeft{ float:left. display: block. vertical-align:top.clearfix {display: block. height: 0.clearfix {height: 1%. visibility: hidden.".} .} /* End hide from IE-mac */ .clearfix:after { content: ". } . clear: both. } .

allow people with common interests to meet. . text-align:left. Online Social Network have emerged as one of the most potential levers of action the web. parents. participants develop bonds with each other and the community as a whole. The system has a high degree of accuracy and user friendliness. margin:0 auto. professional groups . } CONCLUSION Online or virtual Social Network. The system is a user-friendly system and further changes can be incorporated into the system easily./*END OF COMMON CODE*/ #container{ width:1002px. A few changes were suggested which is to be incorporated into the system. communicate and share ideas and information. While doing this. background:#f7f2d4.students.doctors or programmers or who share a particular personal interest bikers or clock repairers The system was tested by running it on different computers. Such Social Network can be built around demographic groups . through a network like the web.

Pearson Education Ltd. Pearson Asia Edition 2000   . “Fundamentals of Database Systems”. “Software Engineering”. “Fundamentals of Object Oriented design in UML”. which are carried out in the organization. 2002. Addison Wesley Longman Pvt Ltd. Sixth Edition. Page Jones. Elamsri and Navathe. References:  Ian Somerville.Doing this project has made me learn not only a new technology but also it has made me more knowledgeable in the software engineering activities. It was a great learning experience.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->