• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Planet f the Social Networking System
 

Planet f the Social Networking System

on

  • 8,508 views

My final semester project :)

My final semester project :)

Statistics

Views

Total Views
8,508
Views on SlideShare
8,508
Embed Views
0

Actions

Likes
2
Downloads
0
Comments
4

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

14 of 4 previous next Post a comment

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • please mail me @ betsymonsai@gmail.com
    Are you sure you want to
    Your message goes here
    Processing…
  • pls mail this to me sgurumoorthi@gmail.com
    Are you sure you want to
    Your message goes here
    Processing…
  • please mail this to me@ ash3grov@gmail.com
    Are you sure you want to
    Your message goes here
    Processing…
  • Created by: Pankaj Nayal
    Email id : fameboy@gmail.com
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Planet f the Social Networking System Planet f the Social Networking System Document Transcript

    • PROJECT TITLEThe Social Networking System Forwww.planetF.com 1
    • INTRODUCTIONPeople have used the idea of “social network” loosely for over a century to connotecomplex sets of relationship between members of social systems at all scales, frominterpersonal to international.According to Stephen Downes, “A social network is a collection of individuals linkedtogether by a set of relations”.The conceptual idea of social networks sites is to construct an informal communicationenvironment, which allows users to interact within an online community of friends.People connect with each other by creating online profiles to share interests such asthoughts, music, photos, videos, etc. Since their inception they have attracted millionsof users for whom checking their SNS profile has become part of their daily routine.Some are even wondering if social network sites will one day replace email systems. 2
    • OBJECTIVEThis main objective of this website is to provide an informal communicationenvironment which allows users to interact within an online community of friends. Indetails as follows -: 1. To have an secure and attractive login page access. 2. Make new user account more user friendly and proper validation of details. 3. Search friends easily on network. 4. Send friend request to other users to make friends. 5. Add friends to your friend box to accept request. 6. Creating a public profile having social, professional and personal information. 7. Ease of editing of profile anytime you need. 8. Upload and share photographs on network. 9. Send messages to other friends in terms of scrapbook. 10. Reply directly to incoming user scraps. 11. Administration page to keep an eye on user operation. 12. Easily password recovery processing. 3
    • The goal of this system is :  To create a Database for the system  To create a secure and attractive login page with suitable validations for users.  To create a Home Page design for the system this will have various options for the user by which he/she can control their information as well as can use services offered by this website.  To create An Administrator section -An interface for the system with features like setting maximum number of friends a user can have, removing or allotting services to the user, removing unwanted data like images videos uploaded by user, taking feedbacks from the user etc.  To create A User section - An interface for the system with features like create profile, edit profile, add friends, search friends, sending a message to friend ,, sending email to friend and many more. PROJECT CATEGORYWhenever any software is developed it may be categorized in any form particular. Itmay categorized on the bases of there work and the performance. It can change themanagement system of the particular software. With a particular category it can makethe software become understandable for the others perfectly. On time of developing ormaking software we need to look on their category. 4
    • That it belongs with which particular category. Either it is managementrelated, games related, developing or cd-making etc. The software which I wasmaking, it belongs to communication software or social software which will providesocial networking services. TOOLS, PLATFORM AND LANGUAGES• HTMLHyper Text Markup Language – This language is a markup language, which runsinside any Internet browser and is used to create the basic layout of a Web Page. Htmlis called Hyper Text Language because used to develop several Hyper Text words(hypertext words are words which have some actions with it) for a website, whichprovides connectivity to other pages. It is called a Markup Language because it usessyntax called as Markup Elements to format a web document.SERVLET The Servlet works as a middle tier for a web based application or especially fora website. Servlet are snippets of Java programs which run inside a Servlet Container.A Servlet Container is much like a Web Server which handles user requests andgenerates responses. Servlet Container is different from a Web Server because it cannot only serve requests for static content like HTML page, GIF images, etc., it can also 5
    • contain Java Servlets and JSP pages to generate dynamic response. Servlet Container isresponsible for loading and maintaining the lifecycle of the Java Servlet. ServletContainer can be used standalone or more often used in conjunction with a Web server.JSP (Java Server Page) JSP is works as little bit designing dynamic web page. Java Server Pagesor JSP for short is Suns solution for developing dynamic web sites. JSP provideexcellent server side scripting support for creating database driven web applications.JSP enable the developers to directly insert java code into JSP file, this makes thedevelopment process very simple and its maintenance also becomes very easy. JSPpages are efficient, it loads into the web server’s memory on receiving the request veryfirst time and the subsequent calls are served within a very short period of timeJDBC (Java Database Connectivity) Jdbc is used for Database Connectivity. Jdbc provides 4 types of driverbut in this project type-1 driver is used.Working process of jdbc :- 1. Establish a connection with a database 2. Sends Statements 3. Processes the resultsORACLE The input given by the user on the Internet or on a standalone computer isthe most precious thing, which is stored at a safe place called as the DATABASE. 6
    • Oracle is one of the most secure and huge database storage System available now aday. On the internet it is used to keep the record of the users registering through thewebsite and maintain a daily report of them.• JAVASCRIPTJavaScript is a Scripting language which provides all the language features withvariables, loops, functions etc. the functions of JavaScript are written in a page as an: Inline Script Embedded Script Linked ScriptThese scripts help us to handle events generated by a user over the internet. AJavaScript function can be called to perform some task when the user demands for thusJavaScript can make a website Interactive which could act on user actions. In thisproject I am going to use a linked scripting code that will act as a validation code forthe form pages. 7
    • HARDWARE AND SOFTWARE REQUIREMENTHARDWARE: Computer hardware refers to the physical parts of a computer andrelated devices. Internal hardware devices include mother board, hard device, andRAM. External hardware devices include monitors, keyboards, mice, printers, andscanners. HARDWARE REQUIREMENTS(minimum):  Pentium4  128 MB RAM  20 GB hard Disk (5200 RPM)  108 Keys Keyboard  Inkjet Printer  CDD 48XSOFTWARE: Computer software is a general term that describes computer programs.Related terms such as software programs, applications, scripts, and instruction sets allfall under the category of computer software. Therefore, installing new programs orapplications on your computer is synonymous with installing new software on yourcomputer. SOFTWARE REQUIREMENTS:  WINDOWS XP.  JDK1.6.0.  TOMCAT SERVER5.0.  ORACLE.  Internet Explorer 6. 8
    • DATA FLOW DIAGRAMS (DFD) Context level Diagram RequestAdmin Request Response Admin Request control Social ResponseUser networking Response Request System User Request (SNS) ProfileGuest Response Response 9
    • 1st level DFD for user Request ReceiveUser Login User login table Response 1.0 Home 2.0 Services Profile 3.0 User Data table 10
    • 1st level DFD FOR Guest Request UpdateGuest User Data table Registration Response 1.0 Receive Login 2.0 User login TableServices Response Home 3.0 Profile 4.0 User Data table 11
    • 1st Level DFD for Admin  login module User Id/password Verification Loginadmin 1.0 Response Request Admin login table control panel Response 2.0 Confirm Confirm 2nd Level DFD for user  login module Existing Id/password login correct home User 1.1.2 1.1 incorrect 12
    • Profile User data table 1.1.3  home module Feedbac Existing Id/pswd k 2.0 2.6User Home Send Search scrap friends 2.1 2.5 Send Upload email photos Send 2.2 2.4 message 2.3 13
    • Search  Profile module friends 3.2.3 Request profile friends 3.1 3.2 User Existing id/pswd Response Add friends Confirm 3.2.1 Remove friends Edit profile 3.2.2 3.1.1User dataTable Update View profile 3.1.2 User data Table 2nd Level DFD for Admin  login module Request Correct (access) Login Control Admin 2.0 Panel 2.1 Response Wrong (back to login) 14
    •  Control module Request Control Remove Admin Panel User 3.0 3.1 Response Block/delete Block or User Data Table Unblock user2nd Level DFD for Guest  Registration module RegistrationGuest 1.0 User Data Table Login 1.0NOTE : AFTER REGISTRATION GUEST BECOME USER SO REST OF THE DFD’S FORGUEST ARE SAME AS USER. 15
    • DESCRIPTION OF MODULESI: Admin:This module has features for authenticating user and removing unwanted data from thedatabase as well as removing unwanted users : -  Login module  Control panel 1. remove user The administrator is having power to remove any user who is misusing the services provided by the system. 2. Block user The administrator is having power to block any user for certain period of time according to the offence of a user.II: guest:This module is for the new user who wants to create an profile and wants to be the partof our community : -  Registration This module is for the new user who wanted to be the part of ourcommunity after registration he/she can access all the resources and services providedby the system. 16
    •  Login After registration guest may have his/her user id and password and by entering it he/she can access all the services as a local user.III: user:  Login Registered user can login to their account through their user id andpasswords which were chosen by them at the time of registration. They have to provideexactly same id and password to access to their account.  Home After login user can access various services provided by the system andthis is the module where all these resources are available. These services are :-  1: Send email :- user can send email to their friends .  2: Send message :- user can send message to their friends.  3 : Send scrap :- user can post scrap to their friends page.  4 : Search friends :- user can search their friends in our database.  5: Upload photos :- user can upload their pictures.  6: Feedback :- user can give feedback about what he/she feels for the system and also suggestion for advancement of the system . 17
    •  Profile This is the module where all the user information is displayed whichhe/she entered at the time of registration . user can complete his/her profile at any pointof time only mandatory information is to be entered at the time of joining.  Friends This is the module where user can add new friends those were already part of our community and also can remove them as per their need. 18
    • ENTITY- RELATIONSHIP DIAGRAM FName Email_i password Image d LName Dob Name User User_id PhoneN o City sex Country address Authenticat e Passwor d Make id friends name Administrator userid SendUser friends friend scraps request userid scraps Fname Fname image User image scrapbook A friendi 19 Search_date
    • A View/upl d photos View/ edit User photos org collegepname degree industry User professional carrer occupatio education year n aboutm marital hobbies e passion religiou s User social smoke URL music drink sports movie 20Job Category Categor A Category Job_Nam CategoryI Password y Search_date PhoneNo _name e D
    • DATA STRUCTURE (RELATIONAL DB)UserID Lname Se Fname Password Email Dob Phon Address City Image Country x eUSERUserID Edu Degree Year College Occupation Industr Organization Carrer yUSER PROFESSIONALUserID marital Religious Smoke Drin Ur AboutMe Passion Sports Movie Hobbies Music k lUSER SOCIALUserID Friend Request Fname ImageUSER FRIENDSUserID FriendID Scraps Fname ImageUSER SCRAPBOOKUserID Photo Pnameuser photosAdminID AdminPassword FeedBackadmin login 21
    • PROCESS LOGICThis section covers information about the processing cycle/logical process of the pagesbeing designed for this project. The pages of a project can be of two types and thus theprocess logic applied on these projects should be of defined in two ways.1) Process Logic (Static pages)A static page is such type of a page, which is a display only page. Usually it doesn’tcontain any type of interaction with the user.Steps: The client machine requests for a URL (Uniform Resource Locator) through the HTTP (Hyper Text Transfer Protocol) Protocol. The request is directed to the server The server of the site listens to the request and searches for the requested HTML PAGE. The Html Page in its raw format only is send to the client’s browser. The client browserIllustration 1.1 Requests the html page to the server Server returns the Responses to the browserClient Machine Server 22
    • 2) Process Logic (Dynamic pages)A dynamic page is a page providing interaction to the user. These pages usuallycontain database connectivity and uses a middle tier Application such Servlet & JSP.This program resides on the server and Processes the user requests (JSP page) andsends the output to the client machine in simple Html format because we know that theclient machine understands only HTML.Steps:  The client machine requests for a URL (Uniform Resource Locator) through the HTTP (Hyper Text Transfer Protocol) Protocol.  The request is directed to the server.  When the server receives a request form an Html (Browser) or Jsp page corresponding Servlet is executed and generates the corresponding response (Output). The Servlet is interact with JDBC and JDBC make connection with DataBase(Oracle).  The processed output is then send to the client machine 23
    • SECURITY As this project is an online project, which is running on the Internet providing global access to its users for which it is being developed, Security is a major part, which I have taken care & considered very closely. Being the site designer, developer and programmer I have used every possible technique to stop any breach in the security of this website. In this project security concern and possible threat to the security of this project over the Internet has been rectified from almost each and every angle. In this regard a few techniques that I have used in this project are mentioned below.• Domain Level Security: - The domain renewal or up-gradation for this site is protected through password, which prevents any hacker to directly enter into this domain and gain control of it.• Secure Connection : Secure Socket Layer – This technique is used by the server of this website. Through this technique the data being send or received to or from the server runs on a protected layer of Sockets through HTTP Request object. Especially forms are protected through this technique.• FTP Password: - File Transfer Protocol – I have specially allocated a separate label of password to be used for FTP operations. Using this the contents of the site can be changed at any time. This password is registered with the domain server of the site and provides login the authenticated clients only. 24
    • LIMITATIONS OF THE PROJECTAny computer program has a pre-defined scope of areas in which the program isallowed to navigate out of this are is the boundary of any project. For a website projectthe major boundary is manipulating with the client machine. This limitation is verymuch helpful as there are several users who do not what a site to enter into theirmemory area.Such As: 1. As like any other websites the scope of this site also is limited only to the server manipulation and not with the client 2. The database in which the reports are being saved is also limited to its defined table only it could not go beyond that.Any computer program has a pre-defined scope of areas in which the program isallowed to navigate out of this are is the boundary of any project.For a website project the major boundary is manipulating with the client machine. Anhtml page is not allowed to write to the memory locations of the client’s computer.This limitation is very much helpful as there are several users who do not what a site toenter into their memory area. 25
    • SCOPE OF FUTURE APPLICATIONIn this age of fast growing technology and implementation of the latest technologythere is always a scope for further improvement. Also there can be several ways toachieve the target. The main motto is to implement the new concept in the field of developmentby using the tips and tricks related to the modern, primitive and advance age styles andthat makes the difference. There is nothing to do without future implementation. With the day by day growing number of internet user’s the project applicationsare also concentrating on various types of users. In other words we can say that internetis a global area of information which can be broadcasted to a computer and now a daysthe most popular to the mobile phones. The future applications of this project could be such type of applications, whichwill enable this site to be viewed by the WAP browsers. And also I would like to addsome more features for the user and admin like :-1:- chat box for user for live chatting.2:- web cam chat for user for broadcasting them live over internet.3:- photo tagging .4:- user can ignore a friend for some period of time.5:- sending virtual gifts to friends.6:- admin can set maximum number of friend for any particular user. Etc. 26
    • BIBLIOGRAPHY Book – MASTERING JAVASCRIPT Author – Jaworski Publisher - BPB Publicaion Book – HTML BLACK BOOK Author – Steven Holzner Publisher – DreamTech Press Book - ORACLE: THE COMPLETE REFERENCE Author - George Koch & Kevin Loney Publisher - TATA McGraw-HILL COMPANY LIMITED Book – JAVA2 COMPLETE REFERENCE Author – Herbert Schildt Publisher – TATA McGraw-Hill END OF PROJECT SYNOPSIS 27
    • START OF PROJECT REPORTINTRODUCTIONPeople have used the idea of “social network” loosely for over a century to connotecomplex sets of relationship between members of social systems at all scales, frominterpersonal to international. According to Stephen Downes, “A social network is a collection of individualslinked together by a set of relations”.We define social network sites as web-based services that allow individuals to (1)construct a public or semi-public profile within a bounded system, (2) articulate a listof other users with whom they share a connection, and (3) view and traverse their listof connections and those made by others within the system.The conceptual idea of social networks sites is to construct an informal communicationenvironment, which allows users to interact within an online community of friends.People connect with each other by creating online profiles to share interests such asthoughts, music, photos, videos, etc. Since their inception they have attracted millionsof users for whom checking their SNS profile has become part of their daily routine.Some are even wondering if social network sites will one day replace email systems. 28
    • A History of Social Network SitesThe Early YearsAccording to the definition above, the first recognizable social network site launchedin 1997. SixDegrees.com allowed users to create profiles, list their Friends and,beginning in 1998, surf the Friends lists. Each of these features existed in some formbefore SixDegrees, of course. Profiles existed on most major dating sites and manycommunity sites. AIM and ICQ buddy lists supported lists of Friends, although thoseFriends were not visible to others. Classmates.com allowed people to affiliate withtheir high school or college and surf the network for others who were also affiliated,but users could not create profiles orlist Friends until years later. SixDegrees was thefirst to combine these features.SixDegrees promoted itself as a tool to help people connect with and send messages toothers. While SixDegrees attracted millions of users, it failed to become a sustainablebusiness and, in 2000, the service closed. Looking back, its founder believes thatSixDegrees was simply ahead of its time (A. Weinreich, personal communication, July11, 2007). While people were already flocking to the Internet, most did not haveextended networks of friends who were online. Early adopters complained that therewas little to do after accepting Friend requests, and most users were not interested inmeeting strangers.From 1997 to 2001, a number of community tools began supportingvarious combinations of profiles and publicly articulated Friends. AsianAvenue,BlackPlanet, and MiGente allowed users to create personal, professional, and datingprofiles—users could identify Friends on their personal profiles without seekingapproval for those connections (O.Wasow, personal communication, August 16, 2007).Likewise, shortly after its launch in 1999, LiveJournal listed one-directionalconnections on user pages. LiveJournals creator suspects that he fashioned theseFriends after instant messaging buddy lists (B. Fitzpatrick, personal communication,June 15, 2007)—on LiveJournal, people mark others as Friends to follow their journalsand manage privacy settings. The Korean virtual worlds site Cyworld was started in1999 and added SNS features in 2001, independent of these other sites (see Kim &Yun, this issue). Likewise, when the Swedish web community LunarStorm refashioneditself as an SNS in 2000, it contained Friends lists, guestbooks, and diary pages (D.Skog, personal communication, September 24, 2007).The next wave of SNSs began when Ryze.com was launched in 2001 to help peopleleverage their business networks. Ryzes founder reports that he first introduced the siteto his friends—primarily members of the San Francisco business and technologycommunity, including the entrepreneurs and investors behind many future SNSs (A.Scott, personalcommunication, June 14, 2007). 29
    • In particular, the people behind Ryze, Tribe.net, LinkedIn, and Friendster were tightlyentwined personally and professionally. They believed that they could support eachother without competing (Festa, 2003). In the end, Ryze never acquired masspopularity, Tribe.net grew to attract a passionate niche user base, LinkedInbecame a powerful business service, and Friendster became the most significant, ifonly as "one of the biggest disappointments in Internet history" (Chafkin, 2007, p. 1).Figure 1. Timeline of the launch dates of many major SNSs and dates whencommunity sites re-launched with SNS features. 30
    • OBJECTIVEThis main objective of this System is to provide an informal communicationenvironment which allows users to interact within an online community of friends. Indetails as follows -: 1. To have an secure and attractive login page access. 2. Make new user account more user friendly and proper validation of details. 3. Search friends easily on network. 4. Send friend request to other users to make friends. 5. Add friends to your friend box to accept request. 6. Creating a public profile having social, professional and personal information. 7. Ease of editing of profile anytime you need. 8. Upload and share photographs on network. 9. Send messages to other friends in terms of scrapbook. 10. Reply directly to incoming user scraps. 11. Administration page to keep an eye on user operation. 12. Easily password recovery processing. 31
    • Features of the project:SharePersonal profiles. Create and customize a profile with certain contentSuch as name, location, interests, website links, and more.ShowPersonal user image. Upload a user image to represent you on theNetwork.SocializeCommunicate with text-based comments. PlanetF allow you to communicate withfriends either by private e-mail-like correspondence, public message board-like posts,or both.OTHER Features :This web site built on 3 Tier Architecture.The web site also includes the electronic mail facility for the users who have registeredthemselves.This web site gives user to retrieve their lost password through easy recovering methodwhich is graphical as well. 32
    • ANALYSISIdentification of needThis project is an attempt to get people together where everyone is busy in their day today tasks and household activities. This project ensures that the different people meetdifferent people in a healthy manner nothing unsocial and only if they are relevant toeach other or wish to know new prople. User need to register to get access to thewebsite with some mandatory information to be enterd at registration time. Afterregistration user can login to website through user id and password they have selectedduring registration and user can use various services provided by the system.The administrator has the right to know everything. He has the right to know thedetails of the users, has the right to change any service that is provided to the users aswell as administrator can delete or modify any unhealthy information or data providedby the user. Even the user’s passwords and hidden details are accessible by theadministrator.User can freely use any of the services provided by the system with outvoiltaion any rule maintained by administrator. Through this system all works are donethrough computer nothing manually so it results in fast service provider.The user’s can also contact the administrator or officials through email or his contactnumbers but first they have to register themselves as a member by filling up aregistration form which can be filled online. Once registered, users can access these 33
    • services and register for any services being provided by planetF.com, that too onlineby sitting at home within a fraction of a second by a flick of a button.Aim of this project is to provide an environment helpful for administrator and users aswell, so that, they users can easily connect to each other and share their informationwith each other as well as administrator can easily keep eye on the users through easyto use interface. This project is developed after thorough study of the existing socialnetworking system present today. Requirement analysis is concerned with identifyingthe basic function of software component in a hardware & software system. 34
    • Feasibility StudyA feasibility study is conducted to select the best system that meets performancerequirement. This entails an identification description, an evaluation of candidatesystem and the selection of best system for the networked operations. The systemrequired performance is defined by a statement of constraints, the identification ofspecific system objective and a description of outputs.The key consideration in feasibility analysis are :Economic feasibilityThe proposed system is economically feasible because the cost involved in purchasingthe hardware and the software are within approachable. The personal cost like salariesof employees hired are also nominal, because working in this system need not requireda highly qualified professional. The operating-environment costs are marginal. The lesstime involved also helped in its economical feasibility.The benefits of this project include four types:Cost – saving benefitsThis project reduces the efforts and time of the user they can easily share theirinformation as well as contact each other free of cost . 35
    • Improve-service-level benefitsProposed system improves the system’s performance because the current system isbased on heavy data processing while the proposed system is based on limitedneccesary database which is easy to handle.Improve-information-level benefitsIt provides better information in the stipulated space and time for decision-making.Time-saving-benefitsIt saves lots of time and provides the same result in a far lesser period of time.Technical FeasibilityHardware requirement for developmentHardware Configuration Processor Intel Pentium 4 CPU, 2.66GHzMemory RAM 256 MB DDR 1 Hard Disk 40 GB SATADrive CD-RW, Floppy drive 36
    • Software requirement for developmentSoftware Configuration Operating System Windows XP Professional Front End Java, Java Server Pages, HTML, javascript Net Beans 7.0 Dream weaver Back End Oracle 10gBehavioral FeasibilityEmployees of the company are habitual of working with manual system and don’t havethe knowledge of working in a computer application based environment that is used intheir intranet and are generally resistant to make changes in their working attitude.People are inherently resistant to change and computers have been known to facilitatechanges. An estimate should be made of how strong a reaction the staffs are likely tohave towards the development of an online computerized system because now this maylead to expulsion of some of the staffs from their jobs. 37
    • So a system has to be chosen which will provide them much more facilities and lessmental disturbance to check weather correct entry is entered and that too at its rightplace. The System will provide them automatic reporting and checks on entries whilestoring as well as entering. So the front end has been made user friendly for both theuser and administrator. 38
    • SYSTEM REQUIREMENT SPECIFICATION1. Introduction1.1 Purpose This software Requirement Specification (SRS) documents key specification,functional & nonfunctional requirements of social network service. Social networkingsites tend to share some conventional features. Most often, individual users areencouraged to create profiles containing various information about themselves. Userscan often upload pictures of themselves to their profiles, post blog entries for others toread, search for other users with similar interests, and compile and share lists ofcontacts. In addition, user profiles often have a section dedicated to comments fromfriends and other users. To protect user privacy, social networks usually have controlsthat allow users to choose who can view their profile, contact them, add them to theirlist of contacts, and so on.1.2 Document ConventionThe document has used underlined words to highlight the user requirements. It alsouses capital lettered words to highlight key words. The document has tried to maintaina priority of requirements .The priority has been determined by the judgment of theauthor and may subject to change. Priority of higher-level requirements is inherited bydetailed requirements. The document has used short forms for some commonlyabbreviated terms. 39
    • 1.3 Intended Audience and Reading SuggestionsThe document is intended to be a guide for developers, users and testers. The goal ofthis document is to identify the requirements of application social networking. Adeveloper may directly want to know the requirements by reading the section of USERREQUIREMENTS and skipping other sections if required.1.4 Product Scope • Purpose The objective of this software is to completely automate the following processes.  The main objective of the project is to establish a network among the people residing in a specific community all the information can be easily accessed and shared among the people.  This system provides users to register their various types of profile like social, personal, professional.  This system provides users to send scrap messages, images, and music files to their friends. User can maintain the scrap book whatever scrap he has send to users.  The system provides users to upload the photos so that user can maintain own album.  This system provides user to join the communities according to their scenario.  This system provides the user to maintain their friend list and user can update their friend list. 40
    •  This system provides user to send invitation to another friend to join the community or group and can add to their friend list for future.• Benefits• One of the many advantages is that you can connect with lost classmates, lost family members on social networking websites. Simply type in a name and you might see a picture of someone that you havent seen in years.• Another advantage of social networking sites thats not to be overlooked is the career advantage. By posting information about yourself and your work history, you may just get some job offers. Not only that, but you can even make sales, if you have a business. Some networking websites even allow you to buy advertising space on other peoples site pages, showing your work to many people at once.• As if all of that werent enough, social sites are just a fun way to kick back and relax. You can write on your web page or post pictures on your wall. You can even compete against friends in various games that are a lot of fun.• Stay in touch with contacts, reach out to new people, and show the community you care about company-to-client communication!• Objectives• A goal or objective is a projected computation of affairs that a person or a system plans or intends to achieve—a personal or organizational desired end- point in some sort of assumed development. Many people endeavor to reach goals within a finite time by setting deadlines.• It is roughly similar to purpose of aim, the anticipated result which guides reaction, or an end, which is an object, either a physical object or an abstract object, that has intrinsic value. 41
    • 1.5 References More information about the project Social Networking Sites used and improvement techniques is available atWebsites • Java concepts - www.java.sun.com • Java tutorial - www.sun.com/java/tutorial.html • Networking concepts - www.inetworkmonitoring.com • www.wikipedia.comBooks • “Java complete Reference” by Herbert Schildt • “Microsoft Windows Server 2003 in 24 hours” by Joe Habraken. • “Computer Networks”ss by Andrew Tanenbum. • “Computer Networks” by Douglas Corner • “Software Engineering ” by Roger Pressman 42
    • 2. Overall Description2.1 Product PerspectiveSocial networking sites make young people more social and help themcommunicate with others. Social networking sites are places where young peoplecan maintain and nurse their existing (offline) friendships and create new (online)friendships. Social networking sites are places where young people learn thecrucial importance of being able to network which they can benefit from in theirfuture professional life.2.2 Product Functions • Maintenance of detail of various users. • Online update the information. • Status of all users and community details easily available.2.3 Operating Environment Processor Pentium 001 GHz RAM 1 GB or More Hard Drive 50 MB Disk Drive Space(Available) Internet Connection High speed internet connection2.5 Design and Implementation ConstraintsThe project operates under a number of design and implementation constraints. Someof these are as outlined below:Hardware and Software constraints: 43
    • Since the project has been developed entirely using JAVA and object orientedmethodology, it is largely independent. The project can be run on any platform.However, it still needs a JAVA framework to run (Net Beans).End user constraints:As mentioned above the major constraints for the end user is having a Java frameworkon his computer. Also he should be familiar with the operation with the system to acertain extent , although a help document will be provided to oriented users.2.6 User DocumentationUser manual and CD will be made available for troubleshooting and help. The usermanual will contain detailed information about the usage of the product from a laymanperspective to an expert network / system administrator. The manual shall also bemade available online.2.7 Assumptions and DependenciesThe proposed solution will be designed to work in an enterprise environment . Thetarget environment may consist of wired and wireless links inside the network . Thesolution has to be self sufficient and free from any unfamiliar dependencies.3. System FeaturesAn application has divided its working in different modules. Each module consists ofdifferent working for proper functioning of application. All modules are integratetogether to make robust application. These modules provide various features of system. • Photo & Video Uploads • User profiles • Private messaging system 44
    • • Friend buddy system • Add/remove custom applications system • Emailing to any user4. External Interface Requirements4.1 User Interface A graphical User interface is available providing following functionalities: • Drop down menu for algorithm selection • Selection list for scaling threshold up or down • Scrolling control to observe different reminder & many of different things. • all reminders are show in the list so that time select whatever reminder customer want to send email,sms etc. • Help button4.2 Hardware Interfaces The solution extensive use of several hardware devices. These devices include; • Internet modem • LAN • Switches4.3 Software Interface 45
    • Operating system - With minor allowances for the peculiarities of particular operating systems, theapplication can be modified to act largely platform independent since it has beenwritten in JAVA. The application has however been developed using Windows XP andwill naturally work without changes on the operating systems.4.4 Communications InterfaceAs the application is social networking web site it requires high speed internet modemfor the use of this application. For the suitable use there must be a correct internetconnection among the users.5. Other Nonfunctional Requirements5.1 Performance RequirementsThe solution has to exhibit very stringent performance requirements. The system hasvery perfect performance .It can help the businessman to show all meeting schedulewhen it can work on system that time this reminder show that meeting ,appointmentwhatever client remind that time so the customer can at that time attain that meetingetc. So the customers are becoming important day by day to remain in competition.5.2 Safety RequirementsSecurity- Some security measures are provided to the application account holders such asaccount holder must give his/her account id and password to login. Other than thatsecurity to user’s personnel details and photos and video galleries. 46
    • 5.3 Software Quality AttributesAvailability This web application in useful in making relationship among community people,friends, students and all the humanity to build the relationIn such instances, there strength arise among others from • A unifying purpose and clear coordination structure • Multiple, interactive communication that encourage simultaneous action • Dynamism and creativity • Quality and packaging of evidences • Representative ideas • Strength in numbers6.Other RequirementsAppendix A: GlossaryLAN=Local Area Network.GUI=Graphical User Interface.Appendix B: Analysis Models User database 47
    • Registration User Search Friends Become friend Upload photo Complete Profile ++++++++End of SRS++++++++ Software Engineering Paradigm The web application process begins with-  Formulation, an activity that identifies the goals and objectives of the system and establishes the scope for the first increment.  Planning estimates overall project cost, evaluates risks associated with the development effort, and defines a finely granulated development schedule for subsequent increments.  Analysis establishes technical requirements for the system and identifies the content items that will be incorporated. Requirements for graphic design (aesthetics) are also defined. 48
    •  Engineering activity incorporates two parallel task, Content design and production are performed by non-technical member of the team. The intent of these tasks is to design, produce, and/or acquire all texts, graphics, audio and video contents that are to become integrated into the web application. At the same time, a technical design tasks are conducted. Page Generation is a construction activity that makes heavy use of automated tools. The content defined in the engineering activity is merged with the architectural, navigational and interface design to produce executable web pages. Testing ensures that the web application will operate correctly with different browsers. Customer Evaluation, this is the point at which changes are requested. These changes are integrated into the next path through the incremental process flow. 49
    • Architectural Design Planning Analysis Content DatabaseFormulation Design Design Engineering Navigational Production Customer Design Evaluation Page Generation & Testing Interface Design 50
    • ENTITY- RELATIONSHIP DIAGRAM FName Email_i password Image d LName Dob Name User User_id PhoneN o City sex Country address Authenticat e Passwor d Make id friends name Administrator userid SendUser friends friend scraps request userid scraps Fname Fname image User image scrapbook A friendi 51 Search_date
    • A View/upl d photos View/ edit User photos org collegepname degree industry User professional carrer occupatio education year n aboutm marital hobbies e passion religiou s User social smoke URL music drink sports movie 52Job Category Categor A Category Job_Nam CategoryI Password y Search_date PhoneNo _name e D
    • DATA FLOW DIAGRAMS (DFD)Data flow diagrams represent the flow of data through a system. A DFD is composedof:1. Data movement shown by tagged arrows.2. Transformation or process of data shown by named bubbles.3. Sources and destination of data represented by named rectangles.4. Static storage or data at rest denoted by an open rectangle that is named.The DFD is intended to represent information flow but it is not a flowchart and is notintended to indicate decision-making, flow of control, loops and other proceduralaspects of the system. DFD is a useful graphical tool and is applied at the earlier stagesof requirements analysis. It may be further refined at preliminary design stage and isused as mechanism for creating a top level structural design for software. The DFD drawn first at a preliminary level is further expanded into greaterdetails: The context diagram is decomposed and represented with multiple bubblesEach of these bubbles may be decomposed further and documented as more detailedDFD s. 53
    • Context level Diagram RequestAdmin Request Response Admin Request control ResponseUser Response Request Social User Request networking ProfileGuest System Response Response (SNS) 54
    • 1st level DFD for user Request ReceiveUser Login User login table Response 1.0 Home 2.0 Services Profile 3.0 User Data table 55
    • 1st level DFD FOR Guest Request UpdateGuest User Data table Registration Response 1.0 Receive Login 2.0 User login TableServices Response Home 3.0 Profile 4.0 User Data table 56
    • 1st Level DFD for Admin  login module User Id/password Verification Loginadmin 1.0 Response Request Admin login table control panel Response 2.0 Confirm Confirm 2nd Level DFD for user  login module Existing Id/password login correct home User 1.1.2 1.1 incorrect 57
    • Profile User data table 1.1.3  home module Feedbac Existing Id/pswd k 2.0 2.6User Home Send Search scrap friends 2.1 2.5 Send Upload email photos Send 2.2 2.4 message 2.3 58
    • Search  Profile module friends 3.2.3 Request profile friends 3.1 3.2 User Existing id/pswd Response Add friends Confirm 3.2.1 Remove friends Edit profile 3.2.2 3.1.1User dataTable Update View profile 3.1.2 User data Table 2nd Level DFD for Admin  login module Request Correct (access) Login Control Admin 2.0 Panel 2.1 Response Wrong (back to login) 59
    •  Control module Request Control Remove Admin Panel User 3.0 3.1 Response Block/delete Block or User Data Table Unblock user2nd Level DFD for Guest  Registration module RegistrationGuest 1.0 User Data Table Login 1.0NOTE : AFTER REGISTRATION GUEST BECOME USER SO REST OF THE DFD’S FORGUEST ARE SAME AS USER. 60
    • SYSTEM DESIGNDesign is defined as the “the process of applying various techniques and principle forthe purpose for defining a device, a process or a system in sufficient detail to permit itsphysical realization”.After the requirements specifications have been analyzed and specified, softwaredesign is the first of the three technical activities viz.  Design  Code-generation and  Testing.The design process involves conceiving and planning out in the mind and making adrawing, pattern and sketch of. In software design, architectural design and detaileddesign of each pages being hosted.External design is software involves concerning, planning and specifying theexternally observable characteristics of a web product. These characteristics includeuser display and user friendliness of a website, external data source and data sinks andthe functional characteristics performance requirement and high level process structureand product. 61
    • A software design is a meaningful engineering of some software product that is to be built. A design can be traced to the user‘s requirements that can be accessed for quality against predefined criteria. During the design process the software requirements model is transformed into design models that describe the details of data structure system architecture interface and component. Each design product is reviewed for quality before moving to the next phase of software development. DESIGN GUIDELINES: - A design should  Exhibit good architectural structure  Be modular  Contain distinct representation of data , architectural, interfaces, and component(modules)  Lead to data structure that are appropriate for the object to be implemented and be drawn from recognizable design pattern  Lead to components that exhibit independent function characteristics.  Lead to interfaces that complexity of connection between modules and with the external environmental.  Is derived using a reputable method that is driven by information obtained during software requirements analysis?DESIGN PRINCIPLE 62
    • The design  Process should not suffer from tunnel vision.  Should be traceable to the analysis model.  Should not reinvent the wheel.  Should minimize intellectual distance between the software and the problems as is exist in the world.  Should exhibit informing and integration.  Should be structured to accommodate change.  Should be structured to degrade gently, even with bad data, events or operating condition are encountered.  Should be accessed for quality as it being created.  Should be reviewed to minimize conceptual error (semantic). DESIGN STRATEGY Once the specification is ready and analysis has been done, we move on to mostimportant stage in any project development, which is design. Till this Stage we knewwhat is supposed to be done. Under design phase we provide the answer to thequestion that how is it supposed to be done? 63
    • Design is an interactive process and one must repeatedly use the complexity andreliability. Measures evaluate the progress of the design. There are various approachesfor designing. Some of the most widely used ones are as follows:  Top down approach  Bottom up approach  Object oriented designThe entire design phase of this project can be broadly categorized into two activities.They are:  Higher level design  Lower level design 64
    • DESCRIPTION OF MODULESI: Admin:This module has features for authenticating user and removing unwanted data from thedatabase as well as removing unwanted users : -  Login module  Control panel 1. remove user The administrator is having power to remove any user who is misusing the services provided by the system. 2. Block user The administrator is having power to block any user for certain period of time according to the offence of a user.II: guest:This module is for the new user who wants to create an profile and wants to be the partof our community : -  Registration This module is for the new user who wanted to be the part of ourcommunity after registration he/she can access all the resources and services providedby the system. 65
    •  Login After registration guest may have his/her user id and password and by entering it he/she can access all the services as a local user.III: user:  Login Registered user can login to their account through their user id andpasswords which were chosen by them at the time of registration. They have to provideexactly same id and password to access to their account.  Home After login user can access various services provided by the system andthis is the module where all these resources are available. These services are :-  1: Send email :- user can send email to their friends .  2: Send message :- user can send message to their friends.  3 : Send scrap :- user can post scrap to their friends page.  4 : Search friends :- user can search their friends in our database.  5: Upload photos :- user can upload their pictures.  6: Feedback :- user can give feedback about what he/she feels for the system and also suggestion for advancement of the system . 66
    •  Profile This is the module where all the user information is displayed whichhe/she entered at the time of registration . user can complete his/her profile at any pointof time only mandatory information is to be entered at the time of joining.  Friends This is the module where user can add new friends those were already part of our community and also can remove them as per their need. ++++++++end of module description++++++++ 67
    • DATA STRUCTUREPLANETREGISTERColumn name Data type DescriptionFIRSTNAME Varchar2(20)LASTNAME Varchar2(10)GENDER Varchar2(10)DAY Varchar2(20)MONTH Varchar2(20)YEAR Varchar2(20)COUNTRY Varchar2(50)CITY Varchar2(20)PROFESSION Varchar2(20)EMAIL Varchar2(20)PASSWORD Varchar2(20)CONFIRMPASSWORD Varchar2(50)NICKNAME Varchar2(20) 68
    • PLANET_USERPROFESSIONALColumn name Data type DescriptionID number Auto increment(not null)NAME Varchar2(10)EDUCATION Varchar2(10)DEGREE Varchar2(50)COMPLETED Varchar2(20)COLLEGE Varchar2(20)OCCUPATION Varchar2(20)INDUSTRY Varchar2(20)ORGANIZATION Varchar2(50)CARRER Varchar2(20)ADMINColumn name Data type DescriptionUSERNAME Varchar2(20)PASSWORD Varchar2(20)PLANET_MESSAGEColumn name Data type DescriptionTOUSER Varchar2(20)FROMUSER Varchar2(20)MESSAGE Varchar2(20)PLANET_IMAGE 69
    • Column name Data type DescriptionID number Auto increment(not null)NAME Varchar2(20)FILENAME Varchar2(100)PLANET_USERSOCIALColumn name Data type DescriptionID number Auto increment(not null)NAME Varchar2(20)MARRIED Varchar2(20)RELIGION Varchar2(20)SMOKER Varchar2(20)DRUNKER Varchar2(20)PASSIONS Varchar2(20)SPORTS Varchar2(20)MOVIE Varchar2(20)HOBBIES Varchar2(20)MUSIC Varchar2(20)URL Varchar2(20)YOURSELF Varchar2(4000)PLANET_ADDColumn name Data type DescriptionUSERNAME Varchar2(40)FRIEND Varchar2(40)LOGIN 70
    • Column name Data type DescriptionID Number Auto increment(not null)USERNAME Varchar2(40)PASSWORD Varchar2(40) ++++++++end of data structure++++++++THE USER INTERFACE DESIGN THE WEB DESIGN PYRAMID 71
    • INTERFACE DESIGN AESTHETIC DESIGN CONTENT DESIGN NAVIGATION DESIGN ARCHITECTURE DESIGN COMPONENT DESIGN Web design pyramid shows us the various stages in the development of theSocial Networking Systen. The project Developed by me. www.planetF.com alsopassed these stages. We can develop any project without following this step’s also butour project may need several changes regularly and will not pass the quality assurancetest. Therefore to develop a robust and reliable website we need to follow these steps.Various phases/stages in the design of website are as follow: -♦ INTERFACE DESIGN Here in this phase of website development we design the user interface.User Interface is designed keeping in view the user interface principles. 72
    • While designing the user interface for the system for planetF.com we have followedthe user interface designing principles, which includes: - • All the color combination have been used taken care of people who are color blind so that they can also use the system easily, also colors are used such that it doesn’t have bad effect on the eye of user. • The entire font has been used just perfectly so that user feels easy while working on the system. • Proper messaging has been done so that user get proper message at the right time. • We have used familiar terms in the label so that the user can easily identify them. • Forms have been developed so that while working on monochrome monitor they can be easily used without any modification.AESTHETIC DESIGN At this level of web designing we mainly focus on the graphics designing. Wetry to improve the look and feel of the web pages. As we know that in web pagegraphics matter the most. We can do so by using the Graphics designing software likeMS Paint, Photoshop. In this project I have extensively used Photoshop and MS Paintfor improving the look and feel of graphics design of the website. 73
    • ♦ CONTENT DESIGN Content design defines the Layout and Structure of the website. As layout of anywebsite must be best, therefore we have given much time and effort in contentdesigning of the proposed website project. As you will navigate the website you willget the layout and structure of the WebPages according to the need of the website andcustomer.♦ NAVIGATION DESIGN When we reach at this stage we almost know the requirement of the website andabove all customer. So according to the need of the customer we have designed thenavigation links and the internal working of the website.Navigation design should be such that the user of the website feels easy to navigateand get the required information on less time, and we have done that during thenavigation design.♦ ARCHITECTURE DESIGN Architecture design of the website shows the Hypermedia structure of thewebsite. So important care need’s to be taken while designing the architecture of the 74
    • website. We have taken care of the requirement as well as the user needs whiledesigning the website.♦ COMPONENT DESIGN Component design of the website includes functional component design eithermade by the developer or being imported by the company. Component designing is themajor work to be done by any web developer and, I have used several functionalcomponents in our website, you can find these easily by referring to the coding part ofthe website.After these designs we Use the best available technology to design the project as besttechnology gives best result. For developing the project planetF(SNS), We have usedthe resent HTML, DHTML tag’s and many new feature of the JavaScript language forthe database application I have used JAVA along with the backend ORACLE. Coding 75
    • register.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><%@ page import="java.sql.*"%><%@ page language="java" %><!DOCTYPE html><head><title>Sign Up planetF.com | Register Indian Social Network</title><style type="text/css">body{margin: 0px; font-family:Tahoma; background: url() repeat top fixed;background-color:#94b54e;}</style><link href="register/style.css" rel="stylesheet" type="text/css"></head><body style="margin: 0px;"><script type="text/javascript">var one;var two;var three;var four;var five;var six;var seven;var eight; var nine ;var ten;var eleven;var twelve;var thirteen;function validate(form) {one=form.firstname.value;two=form.lastname.value;three=form.gender.value;four=form.date.value;five=form.month.value;six=form.year.value;seven=form.pcountry.value;eight=form.pcity.value;nine=form.prof.value;ten=form.email.value;eleven=form.password.value;twelve=form.confpassword.value;thirteen=form.nickname.value;if((one.length===0)||(one==="First Name")){alert("Would you please enter your Firstname?");return false;} 76
    • if(two.length===0||(two==="Last Name")){alert("Would you please enter your Lastname?");return false;}if(four.length===0||(four==="Day")){alert("Would you please enter your Date?");return false;}if(five.length===0||(five==="Mon")){alert("Would you please enter Month?");return false;}if(six.length===0||(six==="year")){alert("Would you please enter Year?");return false;}if(seven.length===0||(seven==="--Select--")){alert("Would you please enter your Country Name?");return false;}if(eight.length===0||eight==="Enter City Name"){alert("Would you please enter city?");return false;}if(nine.length===0||nine==="--Select--"){alert("Would you please enter your Profession?");return false;} 77
    • if(ten.length===0||eight==="Enter your Email"){alert("Would you please enter your Email");return false;}if(eleven.length===0){alert("Would you please enter your Password");return false;}if(twelve.length===0){alert("Would you please confirm your Password?");return false;}if(thirteen.length===0||thirteen==="Nickname"){alert("Would you please enter your Nickname?");return false;}return true;}</script><form action="planet_register" method="post" onsubmit="returnvalidate(this);"> 78
    • <table width="100%" border="0" cellpadding="0" cellspacing="0"height="75"><tbody><tr><td valign="top" align="center"><table width="1003" border="0"cellpadding="0" cellspacing="0" height="100"><tbody><tr><td valign="top" align="right"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="middle" align="right">&nbsp;</td><td valign="top" width="350" align="right"><style type="text/css">body{margin:0; padding:0; font-family:Tahoma, Geneva, sans-serif;}#demoDiv {width:330px; height:95px; background: url() no-repeat top center;}div#demoDiv td ,div#demoDiv a { position: relative; }.txt12{font-size:12px;font-family:Tahoma, Geneva, sans-serif;}.txt14{font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#666666;}.redtxt{font-size:12px; color:#F00F00;font-family:Tahoma, Geneva, sans-serif;}.txt15{font-family:Arial, Helvetica, sans-serif; color:#00497e; font-size:15px;}</style><table width="330" align="center" border="0" cellpadding="0"cellspacing="0" height="95"><tbody><tr><td valign="middle" align="center" height="95"><div id="demoDiv" style="color: rgb(0, 51, 102);"></div></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><table width="1003" border="0" cellpadding="0" cellspacing="0"height="80"><tbody><tr><td valign="top" height="2"><b class="b1f"></b><b class="b2f"></b><bclass="b3f"></b><b class="b4f"></b></td></tr><tr> 79
    • <td class="headerbg" valign="bottom" align="center"><table width="1003"border="0" cellpadding="0" cellspacing="0" height="75"><tbody><tr><td rowspan="2" valign="middle" width="242" align="center"><imgsrc="register/logo.png" alt="" width="354" height="78" border="0"title=""></a> </td><td style="padding-right: 7px;" width="747" align="right"><table width="500" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="darkbluetext" valign="middle" align="right"><a href=""class="darkbluelink"><strong>Sign Up</strong></a> | <a href=""class="darkbluelink"><strong>Login</strong></a></td><td valign="middle"width="175" align="right"><table class="boxbg" width="156" border="0" cellpadding="0" cellspacing="0"height="29"><tbody><tr><td style="padding-left: 2px;" valign="middle" width="122" align="right"><input name="shname" id="shname" class="inputtxt" value="Find Friends"type="text"></td><td valign="middle" width="24" align="left" height="30"><input src="register.gif" alt="" width="20" type="image" align="absmiddle"border="0" height="20"></td></tr></tbody></table></td></tr></tbody></table></td><td width="20" align="right"></td></tr><tr><td colspan="2" valign="bottom" align="right"><table width="500" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><!-- --> 80
    • <div id="bluemenu" class="bluetabs"><ul><li><a href="">Home</a></li><li><a href="">Social Networking</a></li><li><a href="" rel="dropmenu2_b">Study Zone</a></li><li><a href="" rel="dropmenu4_b">Cafe Bharat</a></li><li><a href="" rel="dropmenu5_b">GenX Zone</a></li><li><a href="" rel="dropmenu6_b">+ My Tab</a></li></ul></div><!--Social Networking--><div id="dropmenu1_b" class="dropmenudiv_b"><a href="" class="iconfriends icons">Friends</a><a href="" class="icongangs icons">Gangs</a><a href="" class="iconphotos icons">Photos</a><a href="" class="iconvideos icons">Videos</a><a href="" class="icongreetings icons">Greetings</a><a href="" class="iconclassifieds icons">Classifieds</a><a href="" class="iconforums icons">Forums</a></div><!--Study Zone--><div id="dropmenu2_b" class="dropmenudiv_b"><a href="" class="iconstudyindia icons">Study India</a><a href="" class="iconstudyabroad icons">Study Abroad</a><a href="" class="iconcampustv icons">Campus TV</a><a href="" class="iconknowledgebase icons">Notifications</a><a href="." class="iconexamresults icons">Exam Results</a><a href="" class="iconcampussearch icons">Campus Search</a><a href="" class="iconcareers icons">Careers</a></div><!--Cafe Bharat --><div id="dropmenu4_b" class="dropmenudiv_b"><a href="" class="iconhindi icons">Hindi</a><a href="" class="icontamil icons">Tamil</a><a href="" class="icontelugu icons">Telugu</a><a href="">Bengali</a><a href="" class="iconkannada icons">Kannada</a><a href="" class="iconmalayalam icons">Malayalam</a><a href="" class="iconhollywood icons">English</a></div> 81
    • <!--Services --><div id="dropmenu5_b" class="dropmenudiv_b"><a href="" class="icongirlsonly icons">Girls Only</a><a href="" class="iconboyzone icons">Boy Zone</a><a href="" class="icongamezone icons">Game Zone</a><a href="" class="iconliveradio icons">Live Radio</a><a href="" class="iconstarplayer icons">Star Player</a><a href="" class="iconmobile icons" target="_blank">Recharge Mobiles</a><a href="" class="iconipl icons">Cricket</a></div><!--GenX Zone --><div id="dropmenu3_b" class="dropmenudiv_b"></div><!--My Tab --><div id="dropmenu6_b" class="dropmenudiv_b" style="width: 140px;"><a href="">Manage</a></div><!-- --></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><link href="register/dialog.css" rel="stylesheet" type="text/css"><div id="nickdialog" class="flora" title="" style="display: none;"><table width="100%" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td height="10"></td></tr></tbody></table><table id="table5" width="100%" align="center" border="0" cellpadding="0"cellspacing="0" height="50"> 82
    • <tbody><tr><td class="bluetext" width="240" align="right" height="48"><spanclass="blacktext"></span></td><td width="205"><input class="blacktextborder" name="nicknamech"id="nicknamech" size="40" value="Nickname" type="text"></td><td width="155" align="left"><input name="submiturl" class="blacktext"value="Check now" onClick="checknowcall(2);" type="button"></td></tr><tr><td style="padding-right: 5px;" align="right" height="28"><spanid="loadingdisp" style="display: none;"><img src="register"border="0"></span></td><td colspan="2" align="left" height="28"><div id="nickerr" style="display:none;"><span class="blackboldtext" id="nickerr1"></span>&nbsp;&nbsp;<input name="closen" class="blacktext" onClick="javascript:closedialog();" value="Close" type="button"></div><div id="nicksucc" style="display: none;"><span class="blackboldtext">Nickname available</span><input name="usenow" class="blacktext" onClick="javascript: gotoparent();"value="Use this URL" type="button">&nbsp;&nbsp;<input name="closen"class="blacktext" onClick="javascript: closedialog();" value="Close"type="button"></div></td></tr></tbody></table></div><table class="bodymaintablebg" width="1003" align="center" border="0"cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" align="center"><table width="1003" align="center"border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" align="center"><table class="subtabbg" width="1003"align="center" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="3" align="left" height="26"></td><td valign="middle" width="19" align="right"><a href="#"><imgsrc="register/home.gif" width="15" border="0" height="15"></a></td><td valign="top" width="17" align="left"><img src="register/tabsplitter.gif"width="16" height="24"></td> 83
    • <td valign="middle" width="36" align="center"><a href="#"class="greylink"><strong>Register</strong></a></td><td valign="top" width="16" align="left">&nbsp;</td><td valign="middle" width="71" align="center"><a href="#"class="blacklink"></a></td><td valign="middle" width="11" align="left"><a href="#"></a></td><td width="123">&nbsp;</td><td valign="top" width="661" align="left">&nbsp;</td><td valign="top" width="3" align="right"></td></tr></tbody></table></td></tr><tr><td valign="top" align="center" height="8"></td></tr></tbody></table><table width="960" align="center" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td style="padding: 5px;" valign="top" align="center" height="328"><tablewidth="95%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="73%"></td><td width="27%" height="10"></td></tr><tr><td valign="middle" align="left" height="50"><table width="93%" border="0"cellpadding="0" cellspacing="0"><tbody><tr><td class="blueheading1" valign="middle" width="2%"align="left">&nbsp;</td><td class="blueheading2" valign="middle" width="98%" align="left"height="33">Become a member of the planetF community </td></tr><tr><td class="greytext" valign="middle" align="left">&nbsp;</td><td class="greytext" valign="middle" align="left" height="30"><strong>WhatsNew?</strong> Check out the latest features and sections on planetF.com <!--<ahref="#"><img src="images/takeatour.gif" width="84" height="15" border="0"/></a>--></td></tr></tbody></table></td><td valign="bottom" align="left"> 84
    • <table width="98%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="middle" align="left" height="20"><img src="register/register-img.gif" alt="Connecting Indians Worldwide" title="Connecting IndiansWorldwide" width="246" border="0" height="102"></td></tr></tbody></table></td></tr></tbody></table><table width="95%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="72%" align="center" height="291"><tablewidth="98%" align="left" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="4" align="left" height="456">&nbsp;</td><td valign="top" align="left"><table width="100%" border="0"cellpadding="0" cellspacing="0"><tbody><tr><td height="15">&nbsp;</td><td class="blueheading1" width="26%">Tell us about yourself</td><td class="bottomblueline" width="66%">&nbsp;</td><td>&nbsp;</td></tr></tbody></table><table width="95%" align="center" border="0" cellpadding="0"cellspacing="7"><tbody><tr><td width="21%" height="10"></td><td width="79%"></td></tr><tr><td class="blacktext" valign="middle" align="right">My Name</td><td valign="middle" align="left"><table width="95%" border="0"cellpadding="0" cellspacing="1"><tbody><tr><td valign="middle" width="33%" align="left"><input name="firstname"class="normaltextfieldstyle" id="membername" value="First Name"maxlength="15" onBlur="setPolicy()" type="text"></td><td valign="middle" width="67%" align="left"><input name="lastname"class="normaltextfieldstyle" id="lastname" value="Last Name"maxlength="20" onBlur="setPolicy1()" type="text"></td></tr></tbody></table></td> 85
    • </tr><tr><td class="blacktext" valign="middle" align="right">I am</td><td valign="middle" align="left"><table width="95%" border="0"cellpadding="0" cellspacing="1"><tbody><tr><td valign="middle" width="6%" align="center"><input name="gender"id="gender" onBlur="setPolicy2()" value="m" type="radio"></td><td class="blacktext" valign="middle" width="13%" align="left">Male</td><td valign="middle" width="6%" align="center"><input name="gender"id="gender" onBlur="setPolicy2()" value="f" type="radio"></td><td class="blacktext" valign="middle" width="75%" align="left">Female</td></tr></tbody></table></td></tr><tr><td class="blacktext" valign="middle" align="right">Birthday</td><td valign="middle" align="left"><table width="95%" border="0"cellpadding="0" cellspacing="1"><tbody><tr><td valign="middle" width="14%" align="left"><select name="date"class="normaltextfieldstyle" id="date" onBlur="setPolicy3()"><option selected="selected" value="0">Day</option><option value="1">01</option><option value="2">02</option><option value="3">03</option><option value="4">04</option><option value="5">05</option><option value="6">06</option><option value="7">07</option><option value="8">08</option><option value="9">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option> 86
    • <option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select></td><td class="blacktext" valign="middle" width="15%" align="left"><selectname="month" class="normaltextfieldstyle" id="month" onBlur="setPolicy4()"><option selected="selected" value="0">Mon</option><option value="01">Jan</option><option value="02">Feb</option><option value="03">Mar</option><option value="04">Apr</option><option value="05">May</option><option value="06">Jun</option><option value="07">Jul</option><option value="08">Aug</option><option value="09">Sep</option><option value="10">Oct</option><option value="11">Nov</option><option value="12">Dec</option></select> </td><td class="blacktext" valign="middle" width="71%" align="left"><selectname="year" class="normaltextfieldstyle" id="year" onBlur="setPolicy5()" ><option selected="selected" value="0">Year</option><option value="1999">1999 </option><option value="1998">1998 </option><option value="1997">1997 </option><option value="1996">1996 </option><option value="1995">1995 </option><option value="1994"> 87
    • 1994 </option><option value="1993">1993 </option><option value="1992">1992 </option><option value="1991">1991 </option><option value="1990">1990 </option><option value="1989">1989 </option><option value="1988">1988 </option><option value="1987">1987 </option><option value="1986">1986 </option><option value="1985">1985 </option><option value="1984">1984 </option><option value="1983">1983 </option><option value="1982">1982 </option><option value="1981">1981 </option><option value="1980">1980 </option><option value="1979">1979 </option><option value="1978">1978 </option><option value="1977">1977 </option><option value="1976">1976 </option><option value="1975">1975 </option><option value="1974">1974 </option><option value="1973">1973 </option> 88
    • <option value="1972">1972 </option><option value="1971">1971 </option><option value="1970">1970 </option><option value="1969">1969 </option><option value="1968">1968 </option><option value="1967">1967 </option><option value="1966">1966 </option><option value="1965">1965 </option><option value="1964">1964 </option><option value="1963">1963 </option><option value="1962">1962 </option><option value="1961">1961 </option><option value="1960">1960 </option><option value="1959">1959 </option><option value="1958">1958 </option><option value="1957">1957 </option><option value="1956">1956 </option><option value="1955">1955 </option><option value="1954">1954 </option><option value="1953">1953 </option><option value="1952">1952 </option><option value="1951"> 89
    • 1951 </option><option value="1950">1950 </option><option value="1949">1949 </option><option value="1948">1948 </option><option value="1947">1947 </option><option value="1946">1946 </option><option value="1945">1945 </option><option value="1944">1944 </option><option value="1943">1943 </option><option value="1942">1942 </option><option value="1941">1941 </option><option value="1940">1940 </option><option value="1939">1939 </option><option value="1938">1938 </option><option value="1937">1937 </option><option value="1936">1936 </option><option value="1935">1935 </option><option value="1934">1934 </option><option value="1933">1933 </option><option value="1932">1932 </option><option value="1931">1931 </option><option value="1930">1930 </option> 90
    • <option value="1929">1929 </option><option value="1928">1928 </option><option value="1927">1927 </option><option value="1926">1926 </option><option value="1925">1925 </option><option value="1924">1924 </option><option value="1923">1923 </option><option value="1922">1922 </option><option value="1921">1921 </option><option value="1920">1920 </option><option value="1919">1919 </option><option value="1918">1918 </option><option value="1917">1917 </option><option value="1916">1916 </option><option value="1915">1915 </option><option value="1914">1914 </option><option value="1913">1913 </option><option value="1912">1912 </option><option value="1911">1911 </option><option value="1910">1910 </option><option value="1909">1909 </option><option value="1908"> 91
    • 1908 </option><option value="1907">1907 </option><option value="1906">1906 </option><option value="1905">1905 </option><option value="1904">1904 </option><option value="1903">1903 </option><option value="1902">1902 </option><option value="1901">1901 </option><option value="1900">1900 </option></select></td></tr></tbody></table></td></tr><tr><td class="blacktext" valign="middle" align="right">I live in</td><td valign="middle" align="left"><table width="95%" border="0"cellpadding="0" cellspacing="1"><tbody><tr><td valign="middle" width="33%" align="left"><select name="pcountry"id="pcountry" class="normaltextfieldstyle" onBlur="setPolicy6()" ><option value="0" selected="selected">--Select--</option><option value="IN">India</option><option value="US">United States</option><option value="UK">United Kingdom</option><option value="AE">United Arab Emirates</option><option value="AU">Australia</option><option value="NZ">New Zealand</option><option value="FR">France</option><option value="CA">Canada</option><option value="DE">Germany</option><optgroup label="----------------------"></optgroup><option value="AF">Afghanistan</option><option value="AL">Albania</option><option value="DZ">Algeria</option><option value="AS">American Samoa</option> 92
    • <option value="AD">Andorra</option><option value="AO">Angola</option><option value="AI">Anguilla</option><option value="AQ">Antarctica</option><option value="AG">Antigua and Barbuda</option><option value="AR">Argentina</option><option value="AM">Armenia</option><option value="AW">Aruba</option><option value="AU">Australia</option><option value="AT">Austria</option><option value="AZ">Azerbaijan</option><option value="BS">Bahamas</option><option value="BH">Bahrain</option><option value="BD">Bangladesh</option><option value="BB">Barbados</option><option value="BY">Belarus</option><option value="BE">Belgium</option><option value="BZ">Belize</option><option value="BJ">Benin</option><option value="BM">Bermuda</option><option value="BT">Bhutan</option><option value="BO">Bolivia</option><option value="BA">Bosnia/Herzegowina</option><option value="BW">Botswana</option><option value="BV">Bouvet Island</option><option value="BR">Brazil</option><option value="IO">British Ind Ocean Ter</option><option value="BN">Brunei Darussalam</option><option value="BG">Bulgaria</option><option value="BF">Burkina Faso</option><option value="BU">Burma</option><option value="BI">Burundi</option><option value="KH">Cambodia</option><option value="CM">Cameroon</option><option value="CA">Canada</option><option value="CV">Cape Verde</option><option value="KY">Cayman Islands</option><option value="CF">Central African Rep</option><option value="TD">Chad</option><option value="CL">Chile</option><option value="CN">China</option><option value="CX">Christmas Island</option><option value="CC">Cocos Islands</option> 93
    • <option value="CO">Colombia</option><option value="KM">Comoros</option><option value="CG">Congo</option><option value="CD">Congo Democratic Rep</option><option value="CK">Cook Islands</option><option value="CR">Costa Rica</option><option value="CI">Cote DIvoire</option><option value="HR">Croatia</option><option value="CU">Cuba</option><option value="CY">Cyprus</option><option value="CZ">Czech Republic</option><option value="CS">Czechoslovakia</option><option value="DK">Denmark</option><option value="DJ">Djibouti</option><option value="DM">Dominica</option><option value="DO">Dominican Republic</option><option value="TP">East Timor</option><option value="EC">Ecuador</option><option value="EG">Egypt</option><option value="SV">El Salvador</option><option value="GQ">Equatorial Guinea</option><option value="ER">Eritrea</option><option value="EE">Estonia</option><option value="ET">Ethiopia</option><option value="FK">Falkland Islands</option><option value="FO">Faroe Islands</option><option value="FJ">Fiji</option><option value="FI">Finland</option><option value="FR">France</option><option value="FX">France Metropolitan</option><option value="GF">French Guiana</option><option value="PF">French Polynesia</option><option value="TF">French Southern Ter</option><option value="GA">Gabon</option><option value="GM">Gambia</option><option value="GE">Georgia</option><option value="DE">Germany</option><option value="GH">Ghana</option><option value="GI">Gibraltar</option><option value="GR">Greece</option><option value="GL">Greenland</option><option value="GD">Grenada</option><option value="GP">Guadeloupe</option> 94
    • <option value="GU">Guam</option><option value="GT">Guatemala</option><option value="GN">Guinea</option><option value="GW">Guinea Bissau</option><option value="GY">Guyana</option><option value="HT">Haiti</option><option value="HM">Heard And McDonald Is</option><option value="HN">Honduras</option><option value="HK">Hong Kong</option><option value="HU">Hungary</option><option value="IS">Iceland</option><option value="IN">India</option><option value="ID">Indonesia</option><option value="IR">Iran</option><option value="IQ">Iraq</option><option value="IE">Ireland</option><option value="IL">Israel</option><option value="IT">Italy</option><option value="JM">Jamaica</option><option value="JP">Japan</option><option value="JO">Jordan</option><option value="KZ">Kazakhstan</option><option value="KE">Kenya</option><option value="KI">Kiribati</option><option value="KP">Korea Dem Peoples Rep</option><option value="KR">Korea Republic</option><option value="KW">Kuwait</option><option value="KG">Kyrgyzstan</option><option value="LA">Lao Peoples Dem Rep</option><option value="LV">Latvia</option><option value="LB">Lebanon</option><option value="LS">Lesotho</option><option value="LR">Liberia</option><option value="LY">Libyan Arab Jamahiriya</option><option value="LI">Liechtenstein</option><option value="LT">Lithuania</option><option value="LU">Luxembourg</option><option value="MO">Macau</option><option value="MK">Macedonia</option><option value="MG">Madagascar</option><option value="MW">Malawi</option><option value="MY">Malaysia</option><option value="MV">Maldives</option> 95
    • <option value="ML">Mali</option><option value="MT">Malta</option><option value="MH">Marshall Islands</option><option value="MQ">Martinique</option><option value="MR">Mauritania</option><option value="MU">Mauritius</option><option value="YT">Mayotte</option><option value="MX">Mexico</option><option value="FM">Micronesia</option><option value="MD">Moldova, Republic Of</option><option value="MC">Monaco</option><option value="MN">Mongolia</option><option value="MS">Montserrat</option><option value="MA">Morocco</option><option value="MZ">Mozambique</option><option value="MM">Myanmar</option><option value="NA">Namibia</option><option value="NR">Nauru</option><option value="NP">Nepal</option><option value="NL">Netherlands</option><option value="AN">Netherlands Antilles</option><option value="NT">Neutral Zone</option><option value="NC">New Caledonia</option><option value="NZ">New Zealand</option><option value="NI">Nicaragua</option><option value="NE">Niger</option><option value="NG">Nigeria</option><option value="NU">Niue</option><option value="NF">Norfolk Island</option><option value="MP">Northern Mariana Islands</option><option value="NO">Norway</option><option value="OM">Oman</option><option value="PK">Pakistan</option><option value="PW">Palau</option><option value="PS">Palestine</option><option value="PA">Panama</option><option value="PG">Papua New Guinea</option><option value="PY">Paraguay</option><option value="PE">Peru</option><option value="PH">Philippines</option><option value="PN">Pitcairn Island</option><option value="PL">Poland</option><option value="PT">Portugal</option> 96
    • <option value="PR">Puerto Rico</option><option value="QA">Qatar</option><option value="RE">Reunion</option><option value="RO">Romania</option><option value="RU">Russian Federation</option><option value="RW">Rwanda</option><option value="KN">Saint Kitts And Nevis</option><option value="LC">Saint Lucia</option><option value="VC">Saint Vincent/Grenadines</option><option value="WS">Samoa</option><option value="SM">San Marino</option><option value="ST">Sao Tome and Principe</option><option value="SA">Saudi Arabia</option><option value="SN">Senegal</option><option value="SC">Seychelles</option><option value="SL">Sierra Leones</option><option value="SG">Singapore</option><option value="SK">Slovakia (Slovak Republic)</option><option value="SI">Slovenia</option><option value="SB">Solomon Islands</option><option value="SO">Somalia</option><option value="ZA">South Africa</option><option value="GS">South Georgia/S Sandwich Is</option><option value="ES">Spain</option><option value="LK">Sri Lanka</option><option value="SH">St Helena</option><option value="PM">St Pierre and Miquelon</option><option value="SD">Sudan</option><option value="SR">Suriname</option><option value="SJ">Svalbard/Jan Mayen Islands</option><option value="SZ">Swaziland</option><option value="SE">Sweden</option><option value="CH">Switzerland</option><option value="SY">Syrian Arab Republic</option><option value="TW">Taiwan Province of China</option><option value="TJ">Tajikistan</option><option value="TZ">Tanzania United Republic of</option><option value="TH">Thailand</option><option value="TG">Togo</option><option value="TK">Tokelau</option><option value="TO">Tonga</option><option value="TT">Trinidad and Tobago</option><option value="TN">Tunisia</option> 97
    • <option value="TR">Turkey</option><option value="TM">Turkmenistan</option><option value="TC">Turks And Caicos Islands</option><option value="TV">Tuvalu</option><option value="UM">US Minor Outlying Is</option><option value="UG">Uganda</option><option value="UA">Ukraine</option><option value="AE">United Arab Emirates</option><option value="UK">United Kingdom</option><option value="US">United States</option><option value="UY">Uruguay</option><option value="UZ">Uzbekistan</option><option value="VU">Vanuatu</option><option value="VA">Vatican City State</option><option value="VE">Venezuela</option><option value="VN">Viet Nam</option><option value="VG">Virgin Islands British</option><option value="VI">Virgin Islands US</option><option value="WF">Wallis/Futuna Islands</option><option value="EH">Western Sahara</option><option value="YE">Yemen</option><option value="YD">Yemen Democratic</option><option value="YU">Yugoslavia</option><option value="ZR">Zaire</option><option value="ZM">Zambia</option><option value="ZW">Zimbabwe</option></select></td><td class="blacktext" style="padding-left: 5px;" valign="middle" width="67%"align="left"><input name="pcity" class="normaltextfieldstyle" id="pcity"onBlur="setPolicy7()" value="Enter City Name" type="text"></td></tr></tbody></table></td></tr><tr><td class="blacktext" valign="middle" align="right">Occupation</td><td valign="middle" align="left"><select class="normaltextfieldstyle"name="prof" id="prof" onBlur="setPolicy8()"><option selected="selected" value="0">--Select--</option><option value="School">In School</option><option value="College">In College</option><option value="Working">Working</option><option value="Other">Other</option></select></td> 98
    • </tr></tbody></table><table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="3%" height="15">&nbsp;</td><td width="31%">&nbsp;</td><td width="61%">&nbsp;</td><td width="5%">&nbsp;</td></tr><tr><td height="15">&nbsp;</td><td class="blueheading1">Choose an ID &amp; Password</td><td class="bottomblueline errortext" align="right">&nbsp;<b></b></td><td>&nbsp;</td></tr></tbody></table><table width="95%" align="center" border="0" cellpadding="0"cellspacing="7"><tbody><tr><td width="21%" height="10"></td><td colspan="2"></td></tr><tr><td class="blacktext" valign="middle" align="right" height="28">Email</td><td valign="middle" width="39%" align="left" height="28"><inputname="email" class="normaltextfieldstyle" id="email" onBlur="setPolicy9()"value="Enter Your Email" type="text"></td><td class="bluetext" valign="middle" width="40%" align="left"><spanid="emailmsg" style="display: none;"><img src="register/noteicon.gif"width="13" align="absmiddle" height="12">&nbsp;&nbsp;A message wii besent to this email address,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in case you forget yourpassword</span></td></tr><tr><td class="blacktext" valign="middle" align="right"height="28">Password</td><td valign="middle" align="left" height="28"><input name="password"class="normaltextfieldstyle" id="password" maxlength="12"onBlur="setPolicy10()" type="password"><br><table width="146" border="0" cellpadding="0" cellspacing="0" height="10"><tbody><tr> 99
    • <td class="blacktextp" id="mypassword_text" width="63" align="left"></td><td width="83" align="left"><table width="98%" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td id="mypassword_bar" height="5"></td></tr></tbody></table></td></tr></tbody></table></td><td class="bluetext" valign="middle" align="left"><span id="pwdmsg"style="display: none;"><img src="register/noteicon.gif" width="13"height="12">&nbsp;&nbsp;Use 6 to 12 characters, no spaces and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;don’t use your name</span></td></tr><tr><td class="blacktext" valign="middle" align="right" height="28">ConfirmPassword</td><td valign="middle" align="left" height="28"><input name="confpassword"class="normaltextfieldstyle" id="confpassword" maxlength="12"onBlur="setPolicy11()" type="password"></td><td class="bluetext" valign="middle" align="left"><span id="cpwdmsg"style="display: none;"><img src="register/noteicon.gif" width="13"height="12"></span></td></tr><tr><td class="blacktext" valign="middle" align="right" height="28">Choose aNickname</td><td valign="middle" align="left" height="28"><input name="nickname"class="normaltextfieldstyle" id="nickname" onBlur="setPolicy12()"value="Nickname" maxlength="16" type="text"><a href="javascript:;" onClick="checknick();" class="bluelink"></a></td><td class="bluetext" valign="middle" align="left"><span id="nickmsg"style="display: none;"><img src="register/noteicon.gif" width="13"height="12"><br><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make it unique!</strong></span></td></tr></tbody></table><table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="23%">&nbsp;</td> 100
    • <td width="77%"><table width="95%" border="0" cellpadding="0"cellspacing="1"><tbody><tr><td valign="middle" width="5%" align="left"><input name="termsc"id="termsc" value="1" type="checkbox"></td><td class="bluetext" valign="middle" width="95%" align="left">I Accept the<a href="" class="bluelink"><u>Terms of Service</u></a> and <a href=""class="bluelink"><u>Privacy Policy</u></a></td></tr></tbody></table></td></tr><tr><td height="30">&nbsp;</td><td valign="middle" align="left"> <input type="submit"name="Submit"value="Register" ></tr></tbody></table></td><td valign="top" width="4" align="right">&nbsp;</td></tr><tr><td valign="bottom" align="left">&nbsp;</td><td align="center"></td><td valign="bottom" align="right">&nbsp;</td></tr></tbody></table></td><td valign="top" width="1%" align="center">&nbsp;</td><td valign="top" width="27%" align="center"><table width="100%"bgcolor="#9eb2d3" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="4" align="left"><imgsrc="register/greyroundtopleft.gif" width="4" height="4"></td><td>&nbsp;</td><td valign="top" width="4" align="right"><imgsrc="register/greyroundtopright.gif" width="4" height="4"></td></tr><tr><td valign="top" align="left" height="456">&nbsp;</td><td valign="top" align="left">&nbsp;</td><td valign="top" align="right">&nbsp;</td></tr> 101
    • <tr><td valign="bottom" align="left"><img src="register/greyroundbottomleft.gif"width="4" height="4"></td><td>&nbsp;</td><td valign="bottom" align="right"><imgsrc="register/greyroundbottomright.gif" width="4" height="4"></td></tr></tbody></table></td></tr></tbody></table><table width="95%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td>&nbsp;</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><style>.footerbg{ background-color:#F1F1F1; border-top: 3px solid #CCCCCC;}</style></script><table width="1003" align="center" border="0" cellpadding="0"cellspacing="0" height="25"><tbody><tr><td class="whitebgwithgreyboarder"><table class="whitebg" width="960" align="center" border="0"cellpadding="0" cellspacing="0" height="25"><tbody><tr><td valign="middle" width="587"><span class="greytext">© All rights reservedto planteF.com</span></td><td class="greytext" valign="middle" width="373" align="right"><a href=""class="greylink">Terms of Use</a> | <a href="" class="greylink">Privacy</a></td></tr></tbody></table></td></tr><tr><td> <table class="bodymaintablebg" width="1003" align="center"border="0" cellpadding="0" cellspacing="0"> 102
    • <tbody><tr><td valign="middle" align="center"></td></tr></tbody></table></td></tr></tbody></table></body></html>Successfullyregistered.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>registered successfully</title></head><body><h3 class="blueheading">SuccessFully Registered</h3><imgsrc="images/uploading.gif"><h3 class="blueheading1">Get Ready To Enter Into Planet of Friends In 5Second </h3><META HTTP-EQUIV="refresh"CONTENT="5;url=http://localhost:8084/planetF/login.html"></body></html> 103
    • Login.html<html><head><title>plantetF.com...!!</title><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta><style href>a {text-decoration: none} </style><link href="images/style.css" rel="stylesheet" type="text/css"></head><body><script type="text/javascript">function validate(form){var u=form.TXT.value;var p=form.PSWD.value;if(u.length===0){alert("pls enter your name");return false;}if(p.length===0){alert("pls enter your password");return false;}return true;}</script><img border="0" src="images/logo.png" alt="planetF" width="354"height="78" align="left" /><br><p class="blueheading" > Join And Be The Part Of planetF Community </p><HR COLOR=red HEIGHT=*><HR COLOR=yellow HEIGHT=*><HR COLOR=green HEIGHT=*><HR COLOR=purple HEIGHT=*><table><tr> 104
    • <td><img border="0" src="images/smalltown.jpg" alt="company logo"width="1000" height="500 " align="left" /></td><td><hr color="#2085ce" size=8><br><p class=blueheading1><font face="comic sans ms">PLEASE ENTER YOURDETAILS</p><BR><form method="post" action="http://localhost:8084/planetF/loginredirect"onsubmit="return validate(this);"><p class=blueheading1> Username <INPUT TYPE="TEXTBOX"NAME=TXT><BR><BR>Password &nbsp<INPUT TYPE="PASSWORD" NAME=PSWD></p><BR><input type="reset" VALUE="Reset" buttonstyle="color:#2085ce">&nbsp&nbsp<input type="submit" value="Submit"button style="color:#2085ce"></button><br><br></form><a href="http://localhost:8084/planetF/register.jsp"><font face="comic sans ms"color="#2085ce" > sign up for a new id</font></a>&nbsp&nbsp&nbsp&nbsp<ahref="http://localhost:8084/planetF/forgot_pswd.jsp"><font face="comic sansms" color="#2085ce" > forgot password</font></a><br><br></font>&nbsp<hr color="#2085ce" size=8><br><br><p class="greytext" align=left>||© All rights reserved to planteF.com||</p></tr></td></table></body></html> 105
    • home.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><%@ page import="java.util.Date, java.text.SimpleDateFormat" %><%@ page import="java.sql.*"%><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><link rel="SHORTCUT ICON" href=""></link><title>planetF - My Account </title><link href="home/style.css" rel="stylesheet"type="text/css"></link><script type="text/javascript" language="JavaScript"src="home/common.js"></script><style type="text/css"><%--.style1 {font-size: 16px}--%></style></head><bodye leftmargin="0" rightmargin="0" topmargin="0"bottommargin="0" marginheight="0" marginwidth="0"><script type="text/javascript">function validate(form){var u=form.f.value;if(u.length===0){alert("pls select your image");return false;}return true;}</script><%!String s =null;Connection con=null;ResultSet rs=null;// String img1 = null;int id = 0; 106
    • String name = null;String ax;String getFormattedDate(Date d){SimpleDateFormat simpleDate = new SimpleDateFormat("dd-MMMM-yyyyhh:mm");return simpleDate.format(d);}%><%Date d = new Date();String dateString = getFormattedDate (d);s=(String) session.getAttribute("username");%><%String img1=null;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement st = con.createStatement();ResultSet rs=st.executeQuery("select filename from planet_image where name="+s+"");while(rs.next()){//id = rs.getInt(1);//name= rs.getString(2); 107
    • img1 = rs.getString(1);}%><%con.close();%><table width="903" border="0" cellpadding="0" cellspacing="0" style="width:835px;"><tbody><tr><td width="302" align="center" style="width: 298px;"><div style="position:absolute; height: 102px; top: -2px; margin: 0px; padding: 0px; left: 5px; width:286px;" align="center"><img src="home/logo.png" alt="planetF"title="planetF" width="354" align="center" border="0" height="78"/></a></div></td><td width="533" valign="middle" style="height:94px;"><table style="width: 100%;" 0="" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td width="1%" style="padding-top: 4px;"><spanid="checkloginSpan"></span></td><td width="6%">&nbsp;</td><td width="81%" height="42"><tableclass="mBlueLink" style="width: 139px;" align="center" border="0"cellpadding="1" cellspacing="0"><tbody><tr align="left"><td style="width:1px;"></td><td class="mBlueLink" style="width: 72px;"><a href=""class="Mprofile_topBox"><%=s %></a></td><td style="width: 34px; height: 18px;"><a href="logout.jsp" target="_new"onclick="location.replace(browserClose.php);">Logout</a></td></tr></tbody></table><p class="MediaHomeBox">&nbsp;</p></td><td width="6%">&nbsp;</td><td width="6%">&nbsp;</td></tr></tbody> 108
    • </table></td></tr></tbody></table><div id="SubNav"><table width="100%" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td style="height: 24px;" width="835" align="right"><ahref="viewprofile.jsp">View Profile</a>&nbsp;&nbsp;|&nbsp;<ahref="message.jsp">Send Messages</a>&nbsp;&nbsp;|&nbsp;<ahref="email.jsp">Send Email </a>&nbsp;&nbsp;|&nbsp;&nbsp;<ahref="viewmsg.jsp">View Messages</a>&nbsp;&nbsp;|&nbsp;&nbsp;<ahref="editprofile.jsp">Edit Profile</a>&nbsp;&nbsp;|&nbsp;&nbsp;<ahref="deleteuser.jsp">Delete Account</a>&nbsp;&nbsp;&nbsp;</td><td style="height: 24px;"align="right">&nbsp;</td></tr></tbody></table></div><table width="83%"height="828" border="0" cellpadding="0" cellspacing="0" style="width:100%;"><tbody><tr><td valign="top"><table style="width: 835px;" border="0"cellpadding="4" cellspacing="0"><tbody><tr><td style="width: 835px;"valign="top"><script type="text/javascript"src="home/ajax.php"></script><script type="text/javascript"src="home/ajax.js"></script><div id="Media_Uploading" style="display: none;position: absolute; top: 100px; left: 350px; background: none repeat scroll 0%0% rgb(232, 241, 246); height: 80px; width: 344px; font-family: verdana; font-size: 13px; border: 1px solid rgb(170, 219, 246); padding: 10px; color: rgb(61,123, 158); font-weight: bold; z-index: 1;"><table width="100%" align="center"border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><imgsrc="home/loading_upload.gif" width="81" height="80"></td><tdalign="center">Please wait while we areUploading&nbsp;.&nbsp;.&nbsp;.&nbsp;</td></tr></tbody></table></div><table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2"><table width="818" border="0" cellpadding="0" cellspacing="0"><tbody><tr align="left"><td colspan="5" width="818"><table style="background-image:url(&quot;http://www.myindospace.com/images/greyBack.gif&quot;); height:24px;" width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr> 109
    • <td class="profile_Photos_username">&nbsp;&nbsp;<spanclass="invite_friend">||<%= dateString %>||&nbsp&nbsp&nbsp&nbsp;||&nbsp;Hello &nbsp;</span>&nbsp;<%=s %>&nbsp;|| </td></tr><tr style="height: 25px;"><td class="photos_links">&nbsp;&nbsp;<!-- <a href="#">Messages</a> | --><ahref="#">Friends</a><!-- | <a href="#">Recent Visitors </a> -->| <ahref="#">Favorites</a> </td></tr></tbody></table> </td></tr><tr align="left"><td colspan="5" height="5">&nbsp;</td></tr><tr><td align="center"><table width="100%" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td width="23"><img src="home/orange_left_curv.jpg" width="23"height="120"></td><td width="773" background="home/orange_mid_bg.jpg"><tablewidth="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="15%" height="116"><img src="home/uploadphoto_icon.jpg"width="93" height="93"></td><td class="black-text11" width="85%"><div align="left"><br><p>You have not uploaded your profile photo till now,please upload one or more photos to benefit more chances to meet someoneon our site because profiles with photos get up to 95% more attentionas compared to profiles without photos. </p><ul><li>Upload photo from your planetF account home: <span class="orangeTxt"><ahref="#">Upload profile photo</a></span></li><li>Upload photo in your photo gallery and then set as profile photo: <spanclass="orangeTxt"><a href="#">Upload photo</a></span></li></ul></div> </td></tr></tbody></table></td><td width="117"><img src="home/orange_right_curv.jpg" width="114"height="120"></td></tr> 110
    • </tbody></table></td></tr></tbody></table> </td></tr><tr><td width="460" height="400" align="center" valign="top"><table width="100%" height="366" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td colspan="2" class="photopShowPhotoBox"><div id="profilediv"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2" bgcolor="#ffadb5" height="2"></td></tr><tr><td class="white-text BottomBack" width="82%" align="left"bgcolor="#dc3548" height="25">&nbsp;&nbsp;KIndly UPload YOur OWnPIcture......!! </td><td class="white-text" width="18%" align="left" bgcolor="#dc3548">&nbsp;</td></tr><form name="image" method="post"action="imageupload.jsp"enctype="multipart/form-data" onsubmit="returnvalidate(this);"><tr><td colspan="2" valign="top" bgcolor="#fff5f9">&nbsp;</td></tr></tbody></table><table width="94%" align="center" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td colspan="2" align="center" height="12"></td></tr><tr><!-- <td width="224" align="left"><div class="MediaHomeBox"align="left"> --><td class="picture"> 111
    • <img class="picture" src=<%="planetuserimages/"+img1%> alt="" border="0"/></a></div></div></td></tr><td class="profielMembername" width="65%" align="center"height="22"><div id="Uploadprofile"><table width="100%" border="0" cellpadding="2" cellspacing="0"><tbody><tr><td align="left"><span class="Title">Upload Profile Photo :</span></td></tr><tr><td style="width: 150px;" align="left"><input type="file" name="f" /><input name="upload_photo" value="" type="hidden" /> </td></tr><tr><td valign="middle" align="left"><input type="submit" name="Upload Photo"value="Upload Photo" class="button" style="width: 150px;" /></td></tr></tbody></table></div></td> </form></tr><!--End Upload profile photo--><tr align="left" bgcolor="#fffdf8"><td colspan="2" class="greyboxHeading" height="30">&nbsp;</td></tr><tr><td colspan="2" align="center">&nbsp;</td></tr></tbody></table></div></td></tr><tr><td colspan="2" height="6">&nbsp;</td></tr><!-- my Alerts box end here --> 112
    • <tr align="left"><td colspan="2">&nbsp;</td></tr><tr align="left"><td height="85" colspan="2" class="pinkBoxCloser"><img src="home/pink-curve.gif" width="458" height="6" /></td></tr></tbody></table><p>&nbsp;</p></td><td valign="top" width="499" align="left"><table width="100%"align="center" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="4" align="center"><table width="98%" align="center"border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><div id="DivNewestMember"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2" bgcolor="#ffadb5" height="2"></td></tr><tr><td class="white-text BottomBack" width="80%" align="left"bgcolor="#dc3548" height="25">&nbsp;&nbsp;&nbsp;YOur FRiends......!!</td><td class="white-text" width="20%" align="left"bgcolor="#dc3548">&raquo;&nbsp;<a href="" class="white-text">VIewMOre..!!</a> </td></tr><tr><td colspan="2" valign="top" bgcolor="#fff5f9">&nbsp;</td></tr></tbody></table></div></td> 113
    • </tr></tbody></table></td></tr></tbody></table><img src="home/blue-curve.gif" width="458" height="6" /><br><table width="91%" height="545" border="0" cellpadding="0"cellspacing="0"><tbody><tr> </tr><tr><td align="left"><table width="80%" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td width="224" align="left"><div class="MediaHomeBox"><div class="Img"><a href="#"></a> <class="Member"><img class="picture1"src="home/profile.JPG" title="Sammie Ruiz" border="0" /></a></div><div style="clear: both;"></div><div></div><span class="Title"><a href="userprofile.jsp?ex=Ashmita">&nbsp;&nbsp;Ashmita</a></span><br /><span class="Title"><br /></span> </div></td><td width="224" align="left"><div class="MediaHomeBox"><div class="Img"><a href="#"> <class="Member"><img class="picture1"src="home/s.jpg" title="Genaro Key" border="0" /></a></div><div style="clear: both;"></div><div></div><span class="Title"><a href="userprofile.jsp?ex=shilpi"id="Member">&nbsp;&nbsp;Silly_pie</a></span><br /><span class="Title"><br /></span> </div></td><td width="224" align="left"><div class="MediaHomeBox"><div class="Img"><a href="#" class="Member"><img class="picture1"src="home/emo.jpg" title="Genaro Key" border="0" /></a></div><div style="clear: both;"></div><div></div><span class="Title"><a href="userprofile.jsp?ex=pankaj"id="Member">&nbsp;&nbsp;PankajNayal</a></span><br /><span class="Title"><br /></span> </div></td> 114
    • </tr><tr><td colspan="3" align="center"> <img src="home/blue-curve.gif" width="458"height="6" /></td></tr></tbody></table></td><td align="left">&nbsp;</td><td align="left">&nbsp;</td></tr><tr><td colspan="3" align="center"><table width="80%" border="0"cellpadding="0" cellspacing="0"><tbody><tr><td width="224" align="left"><div class="MediaHomeBox"><div class="Img"><a href="" class="Member"><imgclass="picture1"src="home/grl1.jpg" title="Sammie Ruiz" border="0" /></a></div><div style="clear: both;"></div><div></div><span class="Title"><a href="userprofile.jsp?ex=piyush"id="Member">&nbsp;&nbsp;piyush</a></span><br /><span class="Title"><br /></span> </div></td><td width="224" align="left"><div class="MediaHomeBox"><div class="Img"><a href="" class="Member"><img class="picture1"src="home/grl2.jpg" title="Genaro Key" border="0" /></a></div><div style="clear: both;"></div><div></div><span class="Title"><a href="userprofile.jsp?ex=Ashmita"id="Member">&nbsp;&nbsp;Sneha</a></span><br /><span class="Title"><br /></span> </div></td><td width="224" align="left"><div class="MediaHomeBox"><div class="Img"><a href="" class="Member"><img class="picture1"src="home/grl.jpg" title="Genaro Key" border="0" /></a></div><div style="clear: both;"></div><div></div><span class="Title"><a href="userprofile.jsp?ex=Ashmita"id="Member">&nbsp;&nbsp;Deepti</a></span><br /><span class="Title"><br /></span> </div></td> 115
    • </tr><tr><td colspan="3" align="center"> <img src="home/blue-curve.gif" width="458"height="6" /></td></tr></tbody></table><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p align="justify">&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p></td></tr></tbody></table> </td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td><table width="100%" border="0" cellpadding="0"cellspacing="0"><tbody><tr><td><table id="FooterNav" width="100%"border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="middle"align="left" height="30" nowrap="nowrap">&nbsp;&nbsp;<a href=""target="_parent" class="footerlinks">About Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" class="footerlinks">Help/FAQs </a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" target="_parent"class="footerlinks">Feedback</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=""target="_parent" class="footerlinks">Write to us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" class="footerlinks">Terms of Use</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" target="_parent" class="footerlinks">Privacypolicy</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" target="_parent"class="footerlinks">Advertise</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=""target="_parent" class="footerlinks">Partners</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" target="_parent"class="footerlinks">Press</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=""target="_parent" class="footerlinks">Site Map</a>&nbsp;</td></tr></tbody></table><table width="100%" border="0" cellpadding="0" cellspacing="0"height="65"><tbody><tr> 116
    • <td class="normal_text" style="padding-left: 16px;" align="left"height="35">Copyright © 2011 planetF.com. All rights reserved.</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></body></html>imageupload.jsp<%@page import="java.io.DataInputStream"%><%@page import="java.io.FileNotFoundException"%><%@page import="java.util.ArrayList"%><%@page import="java.util.StringTokenizer"%><%@page import="java.io.FileOutputStream"%><%@page import="java.text.CharacterIterator"%><%@page import="java.text.StringCharacterIterator"%><%@page import="java.io.InputStream"%><%@page import="java.io.File"%><%@page import="java.io.FileInputStream"%><%@page import="java.sql.*"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link href="images/style.css" rel="stylesheet" type="text/css"></link><title></title></head><%!String real=null;String desc=null;String start=null;String x=null;//String url=null;String name ="";//String newPath="";//String result="";String saveFile="";int num1=0; 117
    • int num=0;int a=0;int count=0;Connection con=null;ResultSet rs=null;%><%try{String contentType = request.getContentType();//System.out.println("Content type is :: " +contentType);if ((contentType != null) && (contentType.indexOf("multipart/form-data") >=0)){DataInputStream in = new DataInputStream(request.getInputStream());int formDataLength = request.getContentLength();byte dataBytes[] = new byte[formDataLength];int byteRead = 0;int totalBytesRead = 0;while (totalBytesRead < formDataLength){byteRead = in.read(dataBytes, totalBytesRead, formDataLength);totalBytesRead += byteRead;}String file = new String(dataBytes);name = (String)session.getAttribute("username");saveFile = file.substring(file.indexOf("filename="") + 10);//out.print("FileName:" + saveFile.toString());saveFile = saveFile.substring(0, saveFile.indexOf("n"));//out.print("FileName:" + saveFile.toString());saveFile = saveFile.substring(saveFile.lastIndexOf("") +1,saveFile.indexOf("""));//out.print("FileName:" + saveFile.toString());//out.print(dataBytes);int lastIndex = contentType.lastIndexOf("=");String boundary = contentType.substring(lastIndex + 1,contentType.length()); 118
    • //out.println(boundary);int pos;pos = file.indexOf("filename="");pos = file.indexOf("n", pos) + 1;pos = file.indexOf("n", pos) + 1;pos = file.indexOf("n", pos) + 1;int boundaryLocation = file.indexOf(boundary, pos) - 4;int startPos = ((file.substring(0, pos)).getBytes()).length;int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;real= saveFile ;saveFile="C:UsersacerDocumentsNetBeansProjectsplanetFwebplanetuserimages" + saveFile;// saveFile ="C:UsersacerDocumentsNetBeansProjectsWebApplication1image" +saveFile;FileOutputStream fileOut = new FileOutputStream(saveFile);//fileOut.write(dataBytes);fileOut.write(dataBytes, startPos, (endPos - startPos));fileOut.flush();fileOut.close();out.println("<font color=white>File saved as " +saveFile+"</font>");DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");PreparedStatement ps=null;out.println("<font color=white>helllooo..</font>");ps=con.prepareStatement("insert into planet_image (name,filename)values(?,?)");// ps=con.prepareStatement("insert into planet_image (filename) values(?)");ps.setString(1,name);ps.setString(2,real);ps.executeUpdate();out.print("<font color=white> hiiii..</font>");} 119
    • }catch(Exception e){}finally{con.close();}%><body><h3 class="blueheading">Image is uploading</h3><imgsrc="images/upload.gif"></img><h3 class="blueheading1">You Will be Redirected To Your Home Page In 5Second </h3><META HTTP-EQUIV="refresh"CONTENT="5;url=http://localhost:8084/planetF/home.jsp"></body></html>viewprofile.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><%@ page import="java.sql.*"%><%@ page import="java.util.*"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><title>User Profile</title><link rel="stylesheet" type="text/css" media="screen" href="profile/main.css" /> 120
    • <script src="profile/functions.js" type="text/javascript"></script></head><body><%!int id=0;String s =null ;String married="no information provided",religion="no informationprovided",smoker="no information provided",hobbies="no informationprovided",music="no information provided",url="no informationprovided",yourself="no information provided",drunker="no information provided",passions="no informationprovided",sports="no information provided",movie="no information provided";String education="no information provided",degree="no informationprovided",completed="no information provided",college="no informationprovided",occupation="no information provided",industry="no informationprovided",organization="no information provided",carrer="no informationprovided",name="no information provided";String firstname="no information provided", lastname="no informationprovided", gender="no information provided", day="no information provided",month="no information provided", year="no information provided" ,country="no information provided", city="no information provided" ,profession="no information provided",email="no information provided",password="no information provided", confirmpassword="no informationprovided" ,nickname="no information provided" ;%><%Connection con=null;s =(String) session.getAttribute("username");String img1=null;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement st = con.createStatement(); 121
    • ResultSet rs=st.executeQuery("select filename from planet_image where name="+s+"");while(rs.next()){//id = rs.getInt(1);//name= rs.getString(2);img1 = rs.getString(1);}ResultSet rs1=st.executeQuery("select * from planet_usersocial wherename="+s+"");while(rs1.next()){//id = rs.getInt(1);//name= rs.getString(2);int id = rs.getInt(1); name= rs.getString(2); married= rs.getString(3); religion=rs.getString(4);smoker= rs.getString(5); drunker= rs.getString(6); passions= rs.getString(7);sports= rs.getString(8);movie= rs.getString(9); hobbies= rs.getString(10); music= rs.getString(11);url= rs.getString(12);yourself= rs.getString(13);}ResultSet rs2=st.executeQuery("select * from planet_userprofessional wherename="+s+"");while(rs2.next()){id = rs.getInt(1); name= rs.getString(2); education= rs.getString(3); degree=rs.getString(4);completed= rs.getString(5); college= rs.getString(6); occupation= rs.getString(7);industry= rs.getString(8); organization= rs.getString(9); carrer= rs.getString(10);}ResultSet rs3=st.executeQuery("select * from planetregister wherefirstname="+s+""); 122
    • while(rs3.next()) {firstname =rs.getString(1); lastname= rs.getString(2); gender= rs.getString(3);day= rs.getString(4);month= rs.getString(5); year= rs.getString(6); country= rs.getString(7); city=rs.getString(8);profession= rs.getString(9); email= rs.getString(10);password=rs.getString(11);confirmpassword= rs.getString(12);nickname= rs.getString(13);}%><%con.close();%><div id="header"><ul><li><a href="home.jsp"><span>Go Home</span></a></li><li><a href="editprofile.jsp"><span>Edit Profile</span></a></li><li><a href="search.jsp"><span>Search Friends</span></a></li></ul></div><div id="about"><div id="story"><h1><%=s %> <%=lastname%></h1><h2>About You</h2><p><%=yourself%></p></div><ul id="contact"><li><span>Lives in</span> <strong><%=country%> ,<%=city%></strong></li><li><span>Occupation</span> <strong><a href="#"><%=occupation%></a></strong></li><li><span>Email</span> <strong><%=email %> </strong></li><li><span>Born On</span> <strong><%=day %>/<%=month %>/<%=year %></strong></li> 123
    • </ul><img id="picture" src="<%="planetuserimages/"+img1%>" alt="" /></div><div class="section"><h2>Professional Details</h2><div class="item"><h3>Education and Work</h3><h4>Look What ive Achieved...!!</h4><div class="date">Education</div><div class="description"><p>Studied at &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=college%><br></br>Education&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<%=education %><br></br> DegreeGot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=degree %><br></br>completed In&nbsp; :&nbsp;<%=completed %><br></br>Occupation &nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=occupation %><br></br>industry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=industry %><br></br>organization&nbsp;&nbsp;&nbsp; :&nbsp;<%=organization %> </p></div></div><div class="section"><h2>Personal Details</h2><div class="item"><h3><a href="#">Social behaviour And Likings</a></h3><h4>My Social behaviour...!!</h4><div class="date">Personal</div><div class="description"><p>Do i drink :&nbsp;<%=drunker%><br></br> Do i Smoke:&nbsp;<%=smoker %><br></br>My Hobbies :&nbsp;<%=hobbies %><br></br>Passionate About :&nbsp;<%=passions%><br></br>Am I married :&nbsp;<%=married%><br></br></p></div></div><div class="item"><h3>Look What i Like...!!</h3><h4>My likings</h4><div class="date">likings</div><div class="description"> 124
    • <p>my favourite movie:&nbsp;<%=movie %><br></br> favourite Sports:&nbsp;<%=sports%><br></br>Music Choice&nbsp;&nbsp; :&nbsp;<%=music%> </p></div></div></div><div class="section"><h2>Basic Information</h2><div class="item"><h5></h5><div class="description"><p>Some Basic Information About The User</p></div></div><div class="item"><h3>basic Info</h3><div class="description"><p>Your nickname &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=nickname%><br></br>Your Religon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<%=religion%><br></br>Your Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=gender%></p></div></div><div class="item"><h3>End Of The Profile</h3><div class="description"><p>++++++++++The End++++++++++</p></div></div></div><div id="footer"><p>© All rights reserved to <a href="">planteF.com</a></p></div></body></html>editprofile.jsp 125
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Edit Your Profile....!!</title><style type="text/css">* { margin: 0; padding: 0; }html { height: 100%; font-size: 62.5% }body { height: 100%; background-color: #FFFFFF; font: 1.2em Verdana, Arial,Helvetica, sans-serif; }/* ==================== Form style sheet ==================== */form { margin: 25px 0 0 29px; width: 450px; padding-bottom: 30px; }fieldset { margin: 0 0 22px 0; border: 1px solid #095D92; padding: 12px 17px;background-color: #DFF3FF; }legend { font-size: 1.1em; background-color: #095D92; color: #FFFFFF; font-weight: bold; padding: 4px 8px; }label.float { float: left; display: block; width: 100px; margin: 4px 0 0 0; clear: left;}label { display: block; width: auto; margin: 0 0 10px 0; }label.spam-protection { display: inline; width: auto; margin: 0; }input.inp-text, textarea, input.choose, input.answer { border: 1px solid #909090;padding: 3px; }input.inp-text { width: 300px; margin: 0 0 8px 0; }textarea { width: 400px; height: 150px; margin: 0 0 12px 0; display: block; }input.choose { margin: 0 2px 0 0; }input.answer { width: 40px; margin: 0 0 0 10px; }input.submit-button { font: 1.4em Georgia, "Times New Roman", Times, serif;letter-spacing: 1px; display: block; margin: 23px 0 0 0; }.blueheading1 { font-family:Arial, Helvetica, sans-serif; 126
    • font-size:12px;font-weight: bold;color: #2085ce;}.blueheading {font-family:Arial, Tahoma;font-size: 20px;font-weight: bold;color: #2085ce;}form br { display: none; }/* ==================== Form style sheet END ==================== */</style></head><body background="images/blue.jpg"> <br><br><h3 class="blueheading"><b>&nbsp&nbsp&nbsp&nbsp;Enter Your ProfileDetails</b></h3><br><hr color="#2085ce" size="10" width="500"></hr><form action="editprofile" method="post"><fieldset><legend>Tell Something about You.....!!</legend><textarea name="yourself" cols="30" rows="5" ></textarea><br /></fieldset><fieldset><legend>Your Social Details Goes Here.!!</legend><label for="input-one" class="float"><strong>Married:</strong></label><br /><input class="inp-text" name="married" type="text" size="30" /><br /><label for="input-one" class="float"><strong>Religion:</strong></label><br /><input class="inp-text" name="religion" type="text" size="30" /><br /><label for="input-one" class="float"><strong>Smoker:</strong></label><br /><input class="inp-text" name="smoker" type="text" size="30" /><br /><label for="input-one" class="float"><strong>Drunker:</strong></label><br /><input class="inp-text" name="drunker" type="text" size="30" /><br><label for="input-two" class="float"><strong>Passions:</strong></label><br /><input class="inp-text" name="passions" type="text" size="30" /><label for="input-one" class="float"><strong>Sports:</strong></label><br /> 127
    • <input class="inp-text" name="sports" type="text" size="30" /><br<label for="input-two" class="float"><strong>Fav Movie:</strong></label><br /><input class="inp-text" name="movie" type="text" size="30" /><label for="input-two" class="float"><strong>Hobbies:</strong></label><br /><input class="inp-text" name="hobbies" type="text" size="30" /><label for="input-one" class="float"><strong>Music:</strong></label><br /><input class="inp-text" name="music" type="text" size="30" /><br<label for="input-two" class="float"><strong>Url:</strong></label><br /><input class="inp-text" name="url" type="text" size="30" /></fieldset><fieldset><legend>Your Professional Details Goes Here..!!</legend><label for="input-one" class="float"><strong>Education:</strong></label><br /><input class="inp-text" name="education" type="text" size="30" /><br /><label for="input-one" class="float"><strong>Degree:</strong></label><br /><input class="inp-text" name="degree" type="text" size="30" /><br /><label for="input-one" class="float"><strong>CompletedOn:</strong></label><br /><input class="inp-text" name="completed" type="text" size="30" /><br /><label for="input-one" class="float"><strong>CollegeName:</strong></label><br /><input class="inp-text" name="college" type="text" size="30" /><br><label for="input-two"class="float"><strong>Occupation:</strong></label><br /><input class="inp-text" name="occupation" type="text" size="30" /><label for="input-one" class="float"><strong>Industry:</strong></label><br /><input class="inp-text" name="industry" type="text" size="30" /><br /><label for="input-one"class="float"><strong>Organization:</strong></label><br /><input class="inp-text" name="organization" type="text" size="30" /><br /><label for="input-one" class="float"><strong>Carrer level:</strong></label><br/><input class="inp-text" name="carrer" type="text" size="30" /><br /></fieldset><p><input class="submit-button" type="submit" alt="SUBMIT"name="Submit" value="SUBMIT" /></p> 128
    • </form></body></html>redirect.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><link href="images/style.css" rel="stylesheet" type="text/css"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>redirect</title></head><body><h3 class="blueheading">please wait while we upload your profiledata</h3><img src="images/uploading.gif"></img><h3 class="blueheading1">You Will be Redirected To Your Home Page In 5Second </h3><META HTTP-EQUIV="refresh"CONTENT="5;url=http://localhost:8084/planetF/viewprofile.jsp"></body></body></html>search.jsp 129
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><%@page import ="java.sql.*"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="images/style.css" rel="stylesheet" type="text/css"><title>search</title><style href>a {text-decoration: none} </style><style type="text/css">* { margin: 0; padding: 0; }html { height: 100%; font-size: 62.5% }body { height: 100%; background-color: #FFFFFF; font: 1.2em Verdana, Arial,Helvetica, sans-serif; }/* ==================== Form style sheet ==================== */form { margin: 25px 0 0 29px; width: 450px; padding-bottom: 30px; }fieldset { margin: 0 0 22px 0; border: 1px solid #095D92; padding: 12px 17px;background-color: #DFF3FF; }legend { font-size: 1.1em; background-color: #095D92; color: #FFFFFF; font-weight: bold; padding: 4px 8px; }label.float { float: left; display: block; width: 100px; margin: 4px 0 0 0; clear: left;}label { display: block; width: auto; margin: 0 0 10px 0; }label.spam-protection { display: inline; width: auto; margin: 0; }input.inp-text, textarea, input.choose, input.answer { border: 1px solid #909090;padding: 3px; }input.inp-text { width: 300px; margin: 0 0 8px 0; }textarea { width: 400px; height: 150px; margin: 0 0 12px 0; display: block; }input.choose { margin: 0 2px 0 0; }input.answer { width: 40px; margin: 0 0 0 10px; } 130
    • input.submit-button { font: 1.4em Georgia, "Times New Roman", Times, serif;letter-spacing: 1px; display: block; margin: 23px 0 0 0; }.blueheading1 { font-family:Arial, Helvetica, sans-serif;font-size:12px;font-weight: bold;color: #2085ce;}.blueheading {font-family:Arial, Tahoma;font-size: 20px;font-weight: bold;color: #2085ce;}form br { display: none; }</style></head><!-- <body background="images/blue.jpg">--><body bgcolour="#095D92"><%!String search=null;String search1=null;String result;String msg="user not found";String msg1="user found join us to meet him/her";%><%search1= request.getParameter("name");DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system","12345");Statement stmt = con.createStatement();ResultSet rs = stmt.executeQuery("select * from login"); 131
    • while (rs.next()) {search = rs.getString(1);if (search.equals(search1)){result=msg1 ;break;} else {result=msg ;}}con.close();%><p class=blueheading>search people on network...!!</p><hr color="#2085ce" size="10" width="500"><form action="search.jsp" method="post"><fieldset><legend>Enter Name Of The person to be Searched....!!</legend><label for="input-one" class="float"><strong>Name :</strong></label><br /><input class="inp-text" name="name" type="text" size="30" /><br /></fieldset><fieldset><input type="submit" value="Submit" button style="color:#095D92"><h3class=blueheading><%=result%></h3><%if(result=="user found join us to meet him/her"){out.print("<a href=home.jsp>Go Home");out.print("<body background=images/blue.jpg>");}%> 132
    • </fieldset></form><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><a href="viewprofile.jsp">click to go back to profile page</a></body></html>userprofile.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><%@ page import="java.sql.*"%><%@ page import="java.util.*"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><title>User Profile</title><link rel="stylesheet" type="text/css" media="screen" href="profile/main.css" /><script src="profile/functions.js" type="text/javascript"></script></head><body><%!int id=0;String a ;String s =null ;String married="no information provided",religion="no informationprovided",smoker="no information provided",hobbies="no informationprovided",music="no information provided",url="no informationprovided",yourself="no information provided", 133
    • drunker="no information provided",passions="no informationprovided",sports="no information provided",movie="no information provided";String education="no information provided",degree="no informationprovided",completed="no information provided",college="no informationprovided",occupation="no information provided",industry="no informationprovided",organization="no information provided",carrer="no informationprovided",name="no information provided";String firstname="no information provided", lastname="no informationprovided", gender="no information provided", day="no information provided",month="no information provided", year="no information provided" ,country="no information provided", city="no information provided" ,profession="no information provided",email="no information provided",password="no information provided", confirmpassword="no informationprovided" ,nickname="no information provided" ;%><%Connection con=null;// s =(String) session.getAttribute("username");a = request.getParameter("ex");session.setAttribute("add",a);String img1=null;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement st = con.createStatement();ResultSet rs=st.executeQuery("select filename from planet_image where name="+a+"");while(rs.next()){//id = rs.getInt(1);//name= rs.getString(2);img1 = rs.getString(1); 134
    • }ResultSet rs1=st.executeQuery("select * from planet_usersocial wherename="+a+"");while(rs1.next()){//id = rs.getInt(1);//name= rs.getString(2);int id = rs.getInt(1); name= rs.getString(2); married= rs.getString(3); religion=rs.getString(4);smoker= rs.getString(5); drunker= rs.getString(6); passions= rs.getString(7);sports= rs.getString(8);movie= rs.getString(9); hobbies= rs.getString(10); music= rs.getString(11);url= rs.getString(12);yourself= rs.getString(13);}ResultSet rs2=st.executeQuery("select * from planet_userprofessional wherename="+a+"");while(rs2.next()){id = rs.getInt(1); name= rs.getString(2); education= rs.getString(3); degree=rs.getString(4);completed= rs.getString(5); college= rs.getString(6); occupation= rs.getString(7);industry= rs.getString(8); organization= rs.getString(9); carrer= rs.getString(10);}ResultSet rs3=st.executeQuery("select * from planetregister wherefirstname="+a+"");while(rs3.next()) {firstname =rs.getString(1); lastname= rs.getString(2); gender= rs.getString(3);day= rs.getString(4);month= rs.getString(5); year= rs.getString(6); country= rs.getString(7); city=rs.getString(8);profession= rs.getString(9); email= rs.getString(10);password=rs.getString(11);confirmpassword= rs.getString(12);nickname= rs.getString(13); 135
    • }%><%con.close();%><div id="header"><ul><li><a href="home.jsp"><span>Go Home</span></a></li><li><a href="addfriend.jsp"><span>Add User</span></a></li><li><a href="removefrnd.jsp"><span>Remove User</span></a></li></ul></div><div id="about"><div id="story"><h1><%=a%> <%=lastname%></h1><h2>About You</h2><p><%=yourself%></p></div><ul id="contact"><li><span>Lives in</span> <strong><%=country%> ,<%=city%></strong></li><li><span>Occupation</span> <strong><a href="#"><%=occupation%></a></strong></li><li><span>Email</span> <strong><%=email %> </strong></li><li><span>Born On</span> <strong><%=day %>/<%=month %>/<%=year %></strong></li></ul><img id="picture" src="<%="planetuserimages/"+img1%>" alt="" /></div><div class="section"><h2>Professional Details</h2><div class="item"><h3>Education and Work</h3><h4>Look What ive Achieved...!!</h4><div class="date">Education</div> 136
    • <div class="description"><p>Studied at &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=college%><br></br>Education&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<%=education %><br></br> DegreeGot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=degree %><br></br>completed In&nbsp; :&nbsp;<%=completed %><br></br>Occupation &nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=occupation %><br></br>industry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=industry %><br></br>organization&nbsp;&nbsp;&nbsp; :&nbsp;<%=organization %> </p></div></div><div class="section"><h2>Personal Details</h2><div class="item"><h3><a href="#">Social behaviour And Likings</a></h3><h4>My Social behaviour...!!</h4><div class="date">Personal</div><div class="description"><p>Do i drink :&nbsp;<%=drunker%><br></br> Do i Smoke:&nbsp;<%=smoker %><br></br>My Hobbies :&nbsp;<%=hobbies %><br></br>Passionate About :&nbsp;<%=passions%><br></br>Am I married :&nbsp;<%=married%><br></br></p></div></div><div class="item"><h3>Look What i Like...!!</h3><h4>My likings</h4><div class="date">likings</div><div class="description"><p>my favourite movie:&nbsp;<%=movie %><br></br> favourite Sports:&nbsp;<%=sports%><br></br>Music Choice&nbsp;&nbsp; :&nbsp;<%=music%> </p></div></div></div><div class="section"><h2>Basic Information</h2><div class="item"><h5></h5><div class="description"> 137
    • <p>Some Basic Information About The User</p></div></div><div class="item"><h3>basic Info</h3><div class="description"><p>Your nickname &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=nickname%><br></br>Your Religon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<%=religion%><br></br>Your Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<%=gender%></p></div></div><div class="item"><h3>End Of The Profile</h3><div class="description"><p>++++++++++The End++++++++++</p></div></div></div><div id="footer"><p>© All rights reserved to <a href="">planteF.com</a></p></div></body></html>addfriend.jsp 138
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><%@ page import="java.sql.*"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="images/style.css" rel="stylesheet" type="text/css"><title>Add Friend</title></head><body background="images/blue.jpg"><%!String s=null;String s1=null;Connection con;%><%s =(String) session.getAttribute("add");s1 =(String) session.getAttribute("username");DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement st = con.createStatement();st.executeUpdate("insert into planet_add values("+s1+","+s+")");out.print("<font color=white>");out.print("<font face=comic sans ms>");out.print("<h4>");out.print("&nbsp&nbsp;");out.print("<p class=blueheading>");out.print(s+ "thas been successfully addded to your list......:-)");%><%con.close();%></body></html>removefrnd.jsp 139
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><%@ page import="java.sql.*"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="images/style.css" rel="stylesheet" type="text/css"><title>Remove Friend</title></head><body background="images/blue.jpg"><%!String s=null;String s1=null;Connection con;%><%s =(String) session.getAttribute("add");s1 =(String) session.getAttribute("username");DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement st = con.createStatement();st.executeUpdate("delete from PLANET_ADD where friend="+s+"" );out.print("<font color=white>");out.print("<font face=comic sans ms>");out.print("<h4>");out.print("&nbsp&nbsp;");out.print("<p class=blueheading>");out.print(s+ "thas been successfully deleted from your list......:-(");%><%con.close();%></body></html>message.jsp 140
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Edit Your Profile....!!</title><style type="text/css">* { margin: 0; padding: 0; }html { height: 100%; font-size: 62.5% }body { height: 100%; background-color: #FFFFFF; font: 1.2em Verdana, Arial,Helvetica, sans-serif; }/* ==================== Form style sheet ==================== */form { margin: 25px 0 0 29px; width: 450px; padding-bottom: 30px; }fieldset { margin: 0 0 22px 0; border: 1px solid #095D92; padding: 12px 17px;background-color: #DFF3FF; }legend { font-size: 1.1em; background-color: #095D92; color: #FFFFFF; font-weight: bold; padding: 4px 8px; }label.float { float: left; display: block; width: 100px; margin: 4px 0 0 0; clear: left;}label { display: block; width: auto; margin: 0 0 10px 0; }label.spam-protection { display: inline; width: auto; margin: 0; }input.inp-text, textarea, input.choose, input.answer { border: 1px solid #909090;padding: 3px; }input.inp-text { width: 300px; margin: 0 0 8px 0; }textarea { width: 400px; height: 150px; margin: 0 0 12px 0; display: block; }input.choose { margin: 0 2px 0 0; }input.answer { width: 40px; margin: 0 0 0 10px; }input.submit-button { font: 1.4em Georgia, "Times New Roman", Times, serif;letter-spacing: 1px; display: block; margin: 23px 0 0 0; }.blueheading1 { font-family:Arial, Helvetica, sans-serif;font-size:12px; 141
    • font-weight: bold;color: #2085ce;}.blueheading {font-family:Arial, Tahoma;font-size: 20px;font-weight: bold;color: #2085ce;}form br { display: none; }/* ==================== Form style sheet END ==================== */</style></head><body background="images/blue.jpg"> <br><br><h3 class="blueheading"><b>&nbsp&nbsp&nbsp&nbsp;Send message toAvailable User.....!!</b></h3><br><hr color="#2085ce" size="10" width="500"><form action="messageaction" method="post"><fieldset><legend>Enter Name Of The Recipient....!!</legend><label for="input-one" class="float"><strong>Name :</strong></label><br /><input class="inp-text" name="msguser" type="text" size="30" /><br /></fieldset><fieldset><legend>Enter Your Message.....!!</legend><textarea name="message" cols="30" rows="5" ></textarea><br /></fieldset><p><input class="submit-button" type="submit" alt="SUBMIT"name="Submit" value="SEND MSG" /></p></form> 142
    • <br><br><br><br><br><p align="right"><a href="home.jsp"><h5 align="right">click to go back to home page</h5></a><a href="viewmsg.jsp"><h5 align="right">click to view yourmessages</h5></a> </p></body></html>msgsent.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="images/style.css" rel="stylesheet" type="text/css"><title>message sent</title></head><body><font color="black"><tt> <h3 class="blueheading"><center>your message hasbeen sent....!!</h3></center><img src="mail/message_sent.png"></img></font></tt><br><p align="right"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><a href="home.jsp">click to go back to home page</a> <br><a href="message.jsp">click to Send Another message</a> </p><table width="150%" border="0" cellspacing="0" cellpadding="0"><tr><td height="10" bgcolor="#347C17" class="footer" align="center"><fontcolor="white">All RightsReserved. Copyright &copy; planetF. Designed by pancrosoft corporation </td></tr></table></body></html>viewmsg.jsp 143
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><%@ page import="java.sql.*"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="images/style.css" rel="stylesheet" type="text/css"><title>your messages...!!</title></head><body background="images/blue.jpg"><p class=blueheading>view your messages</p><%!String user=null;%><%user=(String)session.getAttribute("username");int i=1;PreparedStatement ps=null;Statement st=null;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system","12345");st = con.createStatement();ResultSet rs = st.executeQuery("select MESSAGE from PLANET_MESSAGEwhere fromuser = "+user+"");while (rs.next()){out.print("<font color=white>");out.print("<font face=comic sans ms>"); 144
    • out.print("<h4>");out.print(i+":");out.print("&nbsp&nbsp;");out.print(rs.getString(1));out.print("<br>");i++;}%><%con.close();%><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br><a href="home.jsp"><h5 align="left">click to go back to home page</h5></a></body></html>email.jsp 145
    • <!DOCTYPE html><%@page contentType="text/html" pageEncoding="UTF-8"%><link href="images/style.css" rel="stylesheet" type="text/css"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>JSP Page</title></head><body><table width="100%" border="0" cellspacing="0" cellpadding="0"height="80"><tr><td height="80" bgcolor="" width="302"><img src="mail/logo.png"width="354" height="78" border="0"></td><td height="80" bgcolor="" width="302"></td><td align="right" height="80" bgcolor=""></td></tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"height="100%"><tr><td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"height="100%"><tr><td height="23" bgcolor="#2085ce"><img name="home" src="mail/home.gif"width="73" height="23" border="0"></a><img name="about"src="images/about.gif" width="81" height="23" border="0"></a><imgname="services" src="images/services.gif" width="77" height="23"border="0"></a><img name="clients" src="images/clients.gif" width="71"height="23" border="0"></a><img name="contact" src="images/contact.gif"width="81" height="23" border="0"></a></td></tr><tr><td valign="top"> 146
    • <table width="100%" border="0" cellspacing="0" cellpadding="20"><tr><td class="text" valign="top" height="415"><hr color=#2085ce size=10><br><table width="900" align="center" ><h3 class=blueheading><center>Send Email</center></h3><hr height="20"align="top" color="green"><form method="post" action="sendmail"><tr><td class=blueheading1>Please Enter Your Email ID</td><td> <inputtype=text name=email ></td></tr><tr><td class=blueheading1>Please Enter Your Password</td><td> <inputtype=password name=password></td></tr><tr><td class=blueheading1>Please Enter Email ID of Receiver</td><td><inputtype=text name=remail ></td></tr><tr><td class=blueheading1>Please Enter Subject </td><td> <input type="text"name=subject></td></tr><tr><td class=blueheading1> Enter Your Message </td><td> <textareaname="message" rows=5 cols=30> </textarea></td></tr><tr><td colspan="2" align="center"> <input type=submit value="SendMail" id="send"></td></tr></form></table></td></tr><table width="150%" border="0" cellspacing="0" cellpadding="0"><tr><td height="10" bgcolor="#2085ce" class="footer" align="center"><fontcolor="white">All RightsReserved. Copyright &copy; planetF. Designed by pancrosoft corporation </td></tr></table></body></html>emailsend.jsp 147
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="images/style.css" rel="stylesheet" type="text/css"></link><title>confirmation message....!!</title></head><body><table width="100%" border="0" cellspacing="0" cellpadding="0"height="80"><tr><td height="80" bgcolor="" width="302"><img src="mail/logo.png"width="354" height="78" border="0"></td></tr></table><table width="150%" border="0" cellspacing="0" cellpadding="0"><tr><td height="10" bgcolor="#347C17" class="footer" align="center"></td></table><font color="black"><tt> <h3 class="blueheading"><center>your mail has beensent....!!</h3></center><img src="mail/email.gif"></img></font></tt><br><p align="right"><a href="home.jsp">click to go back to home page</a> <br><a href="email.jsp">click to Send Another Email</a> </p><table width="150%" border="0" cellspacing="0" cellpadding="0"><tr><td height="10" bgcolor="#347C17" class="footer" align="center"><fontcolor="white">All RightsReserved. Copyright &copy; planetF. Designed by pancrosoft corporation </td></tr></table></body></html>deleteuser.jsp 148
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>delete your account</title></head><body><h3 ><tt><font color="red">Are you sure you want to DELETE youraccount....!!</font></tt></h3><form action="deleteuser" method="post"><input type="submit" value="DELETE ACCOUNT" ><img src="images/delete.jpg"></img></form></body></html>deleted.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="images/style.css" rel="stylesheet" type="text/css"><title>redirect page</title></head><body><align="right"> <img src="images/bye.jpg"></img></align><h3 class="blueheading">we will miss you....!!</h3><imgsrc="images/uploading.gif"></img><h3 class="blueheading1">You Will beRedirected To PlanetF login Page In 10 Second </h3><META HTTP-EQUIV="refresh"CONTENT="10;url=http://localhost:8084/planetF/login.html"></meta></body></html>error.jsp 149
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>User Not Found....!!</title></head><body><style href>a {text-decoration: none} </style><img src="images/notexist.png"></img><p><font size="4"><a href="login.html">&nbsp&nbsp&nbsp&nbsp; <tt>clickto go back to HomePage</tt></a></font></p></body></html>logout.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>log out</title></head><body><%String username=(String)session.getAttribute("username");session.removeAttribute("username");session.invalidate();response.setHeader("Cache-Control","no-cache");response.setHeader("Cache-Control","no-store");response.setDateHeader("Expires", 0);response.sendRedirect("login.html");%><script language="JavaScript" type="text/javascript">window.history.forward(1);</script></body></html>forgot_pswd.java 150
    • <html><head><title>planetF.com</title><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta><script type="text/javascript">function ValidateContactForm(){var uid = document.check_data.user_id;var x=document.check_data.e_mail.value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (uid.value ==""||uid.value==null){alert("Please enter your nick name....!!");uid.focus();return false;}if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length){alert("Not a valid e-mail address.....!!");return false;}}</script></head><body><table width="100%" border="0" cellspacing="0" cellpadding="0"height="80"><tr><td height="80" bgcolor="" width="302"><img src="images/logo.png"width="354" height="78" border="0"></td><tr><td height="23" bgcolor="#347C17"></tr> 151
    • <tr><td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="20"><tr><td class="text" valign="top" height="415"><hr color=#4AA02C size=10><br><table align="center" width="900"><tr><td width="900"><table align="center"><form name="check_data" action="forget_pwsd" onsubmit="returnValidateContactForm()" method="POST"><tr><th colspan="2" height="5" valign="top" color="red">Enter User NickName And E_mail ID<hr height="10" color="blue"></th></tr><tr><td>Enter Your NickName</td><td><input type="text" name="nickname" value="" size="25" /></td></tr><tr><td>Enter Your E_mail Id </td><td><input type="text" name="email" value="" size="25" /></td></tr><tr ><td>&nbsp;</td></tr><tr ><td>&nbsp;</td></tr><tr ><td>&nbsp;</td></tr><tr ><td>&nbsp;</td></tr><tr><td align="center" colspan="2"><input type="submit" value="Submit"name="submit" /><input type="reset" value="Reset" name="reset" onclick="clear()" /></td></tr><tr ><td>&nbsp;</td></tr><tr ><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr> 152
    • <tr> <table width="150%" border="0" cellspacing="0" cellpadding="0"><td height="10" bgcolor="#347C17" class="footer" align="center"><fontcolor="white">All RightsReserved. Copyright &copy; planetF. Designed by pancrosoft corporation </td></table></tr></table></body></html>yourpassword.jsp<%@ page import="java.sql.*"%><%@ page import="javax.servlet.ServletContext"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>your forgotten password....:-)</title></head><body><style href>a {text-decoration: none} </style><img src="images/logo.png" width="354" height="78" border="0"></td><HR COLOR=red HEIGHT=*></hr><HR COLOR=yellow HEIGHT=*></hr><HR COLOR=green HEIGHT=*></hr><HR COLOR=purple HEIGHT=*></hr></body><%-- <img border="0" src="smalltown.jpg" alt="company logo" width="1000"height="550 " align="left" / >--%><font size="4"><tt>HERE GOES YOUR PASSWORD</tt></font> 153
    • <%//ServletContext context = getServletContext();// String name=(String)session.getAttribute("name");// String name1=(String)context.getAttribute("name");// HttpSession ss = request.getSession();try{Connection con;String password = (String)session.getAttribute("name");String xy=null;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement stmt=con.createStatement();ResultSet rs=stmt.executeQuery("select password from getpassword wherenickname ="+password+"");while(rs.next()){xy=rs.getString(1);out.println("your password is : " +xy);}stmt.close();con.close();// System.exit(0);}catch(SQLException s){out.println(s);} 154
    • finally{}%><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><HR COLOR=purple HEIGHT=*></hr><HR COLOR=green HEIGHT=*></hr><HR COLOR=yellow HEIGHT=*></hr><HR COLOR=red HEIGHT=*></hr><table width="150%" border="0" cellspacing="0" cellpadding="0"><td height="10" bgcolor="#347C17" class="footer" align="center"><fontcolor="white">All RightsReserved. Copyright &copy; planetF. Designed by pancrosoft corporation </td></table></html>admin.jsp 155
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /><title>Login</title><link rel="stylesheet" type="text/css" href="admin/style.css" /><style type="text/css"><!--.style1 {font-size: x-large;color: #AB0000;}--></style></head><body><script type="text/javascript">function validate(form){var u=form.u.value;var p=form.p.value;if(u.length===0){alert("pls enter your name");return false;}if(p.length===0){alert("pls enter password");return false;}return true;}</script><div id="wrap"><div class="header"><div class="header style1"></div> 156
    • </div><div class="center_content"><div class="left_content"><div class="title"><span class="title_icon"><img src="" alt="" title=""/></span>Secret Login</div><div class="feat_prod_box_details"><p class="details"></p><div class="contact_form"><div class="form_subtitle">hello developer...!!</div><form name="form" method="post" action="admin" onsubmit="returnvalidate(this);"><div class="form_row"><label class="contact"><strong>Username:</strong></label><input type="text" class="contact_input" name="u" /></div><div class="form_row"><label class="contact"><strong>Password:</strong></label><input type="password" class="contact_input" name="p"/></div><div class="form_row"><div class="terms"><!--<input type="checkbox" name="terms" />--></div></div><div class="form_row"><input type="submit" class="register" value="login" /></div></form></div></div><div class="clear"></div></div><!--end of left content--><!--end of right content--><div class="clear"></div></div><!--end of center content--></div></body></html>adminview.jsp 157
    • <%@page contentType="text/html" pageEncoding="UTF-8"%><%@page import="java.sql.*" %><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Admin@planetF.com</title></head><body><%! String user="null"; int flag=0;String userdel="null";%><h2>Data Rectification and removal...!!</h2><form action="adminview.jsp" method="post"><h3><font color="green">enter name of the user whom data you want tosee</h3>enter name : <input type="text" name="textbox"></font><input type="submit" value="shoot me"><h3><font color="red">enter name of the user you want to delete</h3>enter name : <input type="text" name="textbox1"></font><input type="submit" value="shoot me"><h3>available users...!!</h3></form><hr color=red><%user =request.getParameter("textbox");DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection conn =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","12345");Statement stmt=conn.createStatement();ResultSet rsx=stmt.executeQuery("Select * from login");while (rsx.next()){out.print("&nbsp;"+rsx.getString(1)+"&nbsp;");}%> 158
    • <hr color=red><%ResultSet rs=stmt.executeQuery("Select * from login whereusername="+user+"" );while (rs.next()){out.print("<br>");out.print("n"+rs.getString(1));out.print("n"+rs.getString(2));//out.print("n"+rs.getString(3));out.print("n");out.print("<hr color=green>");}ResultSet rs4=stmt.executeQuery("select * from planet_image where name="+user+"");while(rs.next()){//id = rs.getInt(1);//name= rs.getString(2);out.print("n"+rs.getInt(1));out.print("n"+rs.getString(2));out.print("n"+rs.getString(3));out.print("n");out.print("<hr color=green>");flag=1;}ResultSet rs1=stmt.executeQuery("select * from planet_usersocial wherename="+user+"");while(rs1.next()){//id = rs.getInt(1);//name= rs.getString(2);out.print("n"+rs.getInt(1)); out.print("n"+ rs.getString(2)); out.print("n"+rs.getString(3)); out.print("n"+ rs.getString(4));out.print("n"+ rs.getString(5)); out.print("n"+rs.getString(6));out.print("n"+rs.getString(7)); out.print("n"+rs.getString(8));out.print("n"+ rs.getString(9)); out.print("n"+rs.getString(10));out.print("n"+rs.getString(11)); out.print("n"+rs.getString(12));out.print("n"+rs.getString(13)); 159
    • out.print("n");out.print("<hr color=green>");}ResultSet rs2=stmt.executeQuery("select * from planet_userprofessional wherename="+user+"");while(rs2.next()){out.print("n"+rs.getInt(1)); out.print("n"+ rs.getString(2)); out.print("n"+rs.getString(3)); out.print("n"+ rs.getString(4));out.print("n"+ rs.getString(5)); out.print("n"+rs.getString(6));out.print("n"+rs.getString(7)); out.print("n"+rs.getString(8));out.print("n"+ rs.getString(9)); out.print("n"+rs.getString(10));out.print("n");out.print("<hr color=green>");}ResultSet rs3=stmt.executeQuery("select * from planetregister wherefirstname="+user+"");while(rs3.next()) {out.print("n"+rs.getString(1)); out.print("n"+ rs.getString(2)); out.print("n"+rs.getString(3)); out.print("n"+ rs.getString(4));out.print("n"+ rs.getString(5)); out.print("n"+rs.getString(6));out.print("n"+rs.getString(7)); out.print("n"+rs.getString(8));out.print("n"+ rs.getString(9)); out.print("n"+rs.getString(10));out.print("n"+rs.getString(11)); out.print("n"+rs.getString(12));out.print("n"+rs.getString(13));out.print("n");out.print("<hr color=green>");}%><%userdel =request.getParameter("textbox1"); 160
    • stmt.executeUpdate("delete from login where username="+userdel+"" );stmt.executeUpdate("delete from PLANETREGISTER whereFIRSTNAME="+userdel+"" );stmt.executeUpdate("delete from PLANET_USERPROFESSIONAL whereNAME="+userdel+"" );stmt.executeUpdate("delete from PLANET_USERSOCIAL whereNAME="+userdel+"" );stmt.executeUpdate("delete from PLANET_IMAGE whereNAME="+userdel+"" );%><%conn.close();%><script type="text/javascript">function closeMe(){var win=window.open("","_self");win.close();}</script><form><input type="button" name="Close" value="click to close window"onclick="closeMe()" /></form></body></html>Loginredirect.java 161
    • import java.sql.*;import java.io.IOException;import java.io.PrintWriter;import java.util.logging.Level;import java.util.logging.Logger;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.RequestDispatcher;import javax.servlet.ServletContext;import javax.servlet.http.HttpSession;@WebServlet(name = "loginredirect", urlPatterns = {"/loginredirect"})public class loginredirect extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, SQLException {response.setContentType("text/html;charset=UTF-8");RequestDispatcher rd;PrintWriter out = response.getWriter();try {ServletContext context = getServletContext();HttpSession session = request.getSession();String a = request.getParameter("TXT");String b = request.getParameter("PSWD");String TXT1, PSWD1;int flag = 0;context.setAttribute("username1", a);session.setAttribute("username", a);DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement stmt = con.createStatement(); 162
    • ResultSet rs = stmt.executeQuery("select * from login");while (rs.next()) {TXT1 = rs.getString(1);PSWD1 = rs.getString(2);// out.println("name ==>"+rs.getString(1));out.println("&nbsp&nbsp");// out.println("id ==>"+rs.getInt(2));out.println("<br>");if ((TXT1.equals(a)) && (PSWD1.equals(b))) {flag = 1;break;} else {flag = 0;} }if (flag == 1) {// out.print("this is a valid password");rd = request.getRequestDispatcher("home.jsp");rd.forward(request, response);} else {rd = request.getRequestDispatcher("error.jsp");rd.forward(request, response);}} finally {out.close();}}@Overrideprotected void doGet(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {try {processRequest(request, response);} catch (SQLException ex) { 163
    • Logger.getLogger(loginredirect.class.getName()).log(Level.SEVERE, null, ex); } } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(loginredirect.class.getName()).log(Level.SEVERE, null, ex); } } @Override public String getServletInfo() { return "Short description"; }// </editor-fold> }planet_register.java import java.io.IOException; import java.io.PrintWriter; 164
    • import java.util.logging.Level;import java.util.logging.Logger;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 java.sql.*;import javax.servlet.RequestDispatcher;@WebServlet(name = "planet_register", urlPatterns ={"/planet_register"})public class planet_register extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, SQLException {response.setContentType("text/html;charset=UTF-8");PrintWriter out = response.getWriter();try {RequestDispatcher rd;String firstname = request.getParameter("firstname");String lastname = request.getParameter("lastname");String gender = request.getParameter("gender");String day = request.getParameter("date");String month = request.getParameter("month");String year = request.getParameter("year");String country = request.getParameter("pcountry");String city = request.getParameter("pcity");String profession = request.getParameter("prof");String email = request.getParameter("email");String password = request.getParameter("password");String confirmpassword = request.getParameter("confpassword");String nickname = request.getParameter("nickname");/* out.println(firstname);out.println(lastname);out.println(gender); 165
    • out.println(date);out.println(month);out.println(year);out.println(country);out.println(city);out.println(profession);out.println(email);out.println(password);out.println(confirmpassword);out.println(nickname);*/DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement stmt = con.createStatement();stmt.executeUpdate("insert into planetregistervalues("+firstname+","+lastname+","+gender+","+day+","+month+","+year+","+country+","+city+","+profession+","+email+","+password+","+confirmpassword+","+nickname+")");stmt.executeUpdate("insert into loginvalues("+firstname+","+password+")");stmt.executeUpdate("insert into getpasswordvalues("+nickname+","+email +","+password +")" );// stmt.executeUpdate("insert into planet_messagevalues("+firstname+","+null+")" );rd= request.getRequestDispatcher("successfullyregistered.jsp");rd.forward(request, response);/*out.println("User successfully Registered");out.print("<a href=login.html>click to go back to login page</a>");*/} finally {out.close();}}@Override 166
    • protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(planet_register.class.getName()).log(Level.SEVERE, null, ex); } } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(planet_register.class.getName()).log(Level.SEVERE, null, ex); } } @Override public String getServletInfo() { return "Short description"; } }editprofile.java import java.io.IOException; import java.io.PrintWriter; 167
    • import java.util.logging.Level;import java.util.logging.Logger;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 java.sql.*;import javax.servlet.http.HttpSession;import javax.servlet.RequestDispatcher;@WebServlet(name = "editprofile", urlPatterns = {"/editprofile"})public class editprofile extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, SQLException {response.setContentType("text/html;charset=UTF-8");PrintWriter out = response.getWriter();try {HttpSession session = request.getSession(true);Connection con;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement st = con.createStatement();String s;Stringmarried=null,religion=null,smoker=null,drunker=null,passions=null,sports=null,movie=null,hobbies=null,music=null,url=null,yourself=null;Stringeducation=null,degree=null,completed=null,college=null,occupation=null,industry=null,organization=null,carrer=null;s =(String) session.getAttribute("username");int id=1;married =request.getParameter("married");religion=request.getParameter("religion"); 168
    • smoker=request.getParameter("smoker");drunker=request.getParameter("drunker");passions=request.getParameter("passions");sports =request.getParameter("sports");movie=request.getParameter("movie");hobbies=request.getParameter("hobbies");music=request.getParameter("music");url=request.getParameter("url");yourself =request.getParameter("yourself");education=request.getParameter("education");degree =request.getParameter("degree");completed =request.getParameter("completed");college=request.getParameter("college");occupation=request.getParameter("occupation");industry =request.getParameter("industry");organization =request.getParameter("organization");carrer =request.getParameter("carrer");out.println(s);out.println(married);out.println(religion);out.println(smoker); out.println(drunker);out.println(passions);out.println(sports);out.println(movie);out.println(hobbies);out.println(music);out.println(url);out.println(yourself);out.println(education);out.println(degree);out.println(completed);out.println(college);out.println(occupation);out.println(industry);out.println(organization);out.println(carrer);st.executeUpdate("insert into planet_usersocialvalues("+id+","+s+","+married+","+religion+","+smoker+","+drunker+","+passions+","+sports+","+movie+","+hobbies+","+music+","+url+","+yourself+")");st.executeUpdate("insert into planet_userprofessionalvalues("+id+","+s+","+education+","+degree+","+completed+","+college+","+occupation+","+industry+","+organization+","+carrer+")");RequestDispatcher rd = null;rd = request.getRequestDispatcher("redirect.jsp");rd.forward(request, response);} finally {out.close();}} 169
    • @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(editprofile.class.getName()).log(Level.SEVERE, null, ex); } } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(editprofile.class.getName()).log(Level.SEVERE, null, ex); } } @Override public String getServletInfo() { return "Short description"; } }deleteuser.java import java.io.IOException; import java.io.PrintWriter; import java.util.logging.Level; 170
    • import java.util.logging.Logger;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 java.sql.*;import javax.servlet.http.HttpSession;@WebServlet(name = "deleteuser", urlPatterns = {"/deleteuser"})public class deleteuser extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, SQLException {response.setContentType("text/html;charset=UTF-8");PrintWriter out = response.getWriter();try {HttpSession ss = request.getSession();String user = (String)ss.getAttribute("username");//String user="null";DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connectioncon=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","12345");Statement stmt=con.createStatement();int records = stmt.executeUpdate("delete from login whereusername="+user+"" );stmt.executeUpdate("delete from PLANETREGISTER whereFIRSTNAME="+user+"" );stmt.executeUpdate("delete from PLANET_USERPROFESSIONAL whereNAME="+user+"" );stmt.executeUpdate("delete from PLANET_USERSOCIAL whereNAME="+user+"" );stmt.executeUpdate("delete from PLANET_IMAGE whereNAME="+user+"" );con.commit(); 171
    • if(records!=0){response.sendRedirect("deleted.jsp");}} catch(Exception e){String a= e.getMessage();out.println("error==>"+a);}finally {out.close();}}@Overrideprotected void doGet(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {try {processRequest(request, response);} catch (SQLException ex) {Logger.getLogger(deleteuser.class.getName()).log(Level.SEVERE, null, ex);}}@Overrideprotected void doPost(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {try {processRequest(request, response);} catch (SQLException ex) {Logger.getLogger(deleteuser.class.getName()).log(Level.SEVERE, null, ex);}}@Override 172
    • public String getServletInfo() { return "Short description"; } }messageaction.java import java.io.IOException; import java.io.PrintWriter; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; 173
    • import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import java.sql.*;import javax.servlet.RequestDispatcher;import javax.servlet.http.HttpSession;@WebServlet(name = "messageaction", urlPatterns = {"/messageaction"})public class messageaction extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, SQLException {response.setContentType("text/html;charset=UTF-8");PrintWriter out = response.getWriter();try {RequestDispatcher rd;HttpSession session=request.getSession();String username= (String) session.getAttribute("username");String message=request.getParameter("message");String msguser=request.getParameter("msguser");String message1=message.concat("tttfromt"+username);// String username=(String)request.getAttribute("username1");out.print(username);int flag=1;PreparedStatement ps=null;ResultSet rs = null;Statement st=null;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");ps=con.prepareStatement("insert into PLANET_MESSAGE(TOUSER,FROMUSER,MESSAGE) values(?,?,?)"); 174
    • ps.setString(1,username);ps.setString(2,msguser);ps.setString(3,message1);ps.executeUpdate();rd=request.getRequestDispatcher("msgsent.jsp");rd.forward(request, response);out.print("message send");// ResultSet rs = ps.executeQuery("select username fromplanet_message");/* {String a=rs.getString(1);if(msguser.equals(a))flag=1;}if(flag==1)ps.setString(3,message);else{out.print("something went wrong");}*/} finally {out.close();}} 175
    • @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(messageaction.class.getName()).log(Level.SEVERE, null, ex); } } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(messageaction.class.getName()).log(Level.SEVERE, null, ex); } } @Override public String getServletInfo() { return "Short description"; } }sendmail.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; import java.util.Properties; 176
    • import javax.activation.DataHandler;import javax.activation.DataSource;import javax.activation.FileDataSource;import javax.mail.BodyPart;import javax.mail.Message;import javax.mail.MessagingException;import javax.mail.Multipart;import javax.mail.PasswordAuthentication;import javax.mail.Session;import javax.mail.Transport;import javax.mail.internet.AddressException;import javax.mail.internet.InternetAddress;import javax.mail.internet.MimeBodyPart;import javax.mail.internet.MimeMessage;import javax.mail.internet.MimeMultipart;import javax.servlet.RequestDispatcher;@WebServlet(name = "sendmail", urlPatterns = {"/sendmail"})public class sendmail extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException {RequestDispatcher rd = null;final String email=request.getParameter("email");final String password=request.getParameter("password");String useremail=request.getParameter("remail");String message1=request.getParameter("message");String subject=request.getParameter("subject");response.setContentType("text/html;charset=UTF-8");PrintWriter out = response.getWriter();Properties props = new Properties();props.put("mail.smtp.host", "smtp.gmail.com");props.put("mail.smtp.socketFactory.port", "465");props.put("mail.smtp.socketFactory.class","javax.net.ssl.SSLSocketFactory");props.put("mail.smtp.auth", "true");props.put("mail.smtp.port", "465"); 177
    • Session session = Session.getDefaultInstance(props,new javax.mail.Authenticator() {@Overrideprotected PasswordAuthentication getPasswordAuthentication() {return new PasswordAuthentication(email,password);}});try {Message message = new MimeMessage(session);message.setFrom(new InternetAddress(email));message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(useremail));message.setSubject(subject);// Create a message part to represent the body textBodyPart messageBodyPart = new MimeBodyPart();messageBodyPart.setText(message1);//use a MimeMultipart as we need to handle the file attachmentsMultipart multipart = new MimeMultipart();//add the message body to the mime messagemultipart.addBodyPart(messageBodyPart);// add any file attachments to the messageString[] attachments = {"PATH/filename.txt"};addAttachments(attachments, multipart);// Put all message parts in the messagemessage.setContent(multipart);// Send the messageTransport.send(message);rd=request.getRequestDispatcher("emailsend.jsp") ;rd.forward(request, response);} catch (MessagingException e) {throw new RuntimeException(e);}} 178
    • protected static void addAttachments(String[] attachments, Multipartmultipart)throws MessagingException, AddressException {for(int i = 0; i< attachments.length -1; i++){String filename = attachments[i];MimeBodyPart attachmentBodyPart = new MimeBodyPart();//use a JAF FileDataSource as it does MIME type detectionDataSource source = new FileDataSource(filename);attachmentBodyPart.setDataHandler(new DataHandler(source));//assume that the filename you want to send is the same as the//actual file name - could alter this to remove the file pathattachmentBodyPart.setFileName(filename);//add the attachmentmultipart.addBodyPart(attachmentBodyPart);}}@Overrideprotected void doGet(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {processRequest(request, response);}@Overrideprotected void doPost(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {processRequest(request, response);}@Overridepublic String getServletInfo() {return "Short description";}// </editor-fold> 179
    • }forget_pwsd.java import java.io.IOException; import java.io.PrintWriter; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; 180
    • import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import java.sql.*;import javax.servlet.RequestDispatcher;import javax.servlet.ServletContext;import javax.servlet.http.HttpSession;@WebServlet(name = "forget_pwsd", urlPatterns = {"/forget_pwsd"})public class forget_pwsd extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, SQLException {response.setContentType("text/html;charset=UTF-8");PrintWriter out = response.getWriter();String name = request.getParameter("nickname");String emailid = request.getParameter("email");HttpSession session = request.getSession(true);ServletContext context=getServletContext();RequestDispatcher rd = null;DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement stmt = con.createStatement();session.setAttribute("name",name);// context.setAttribute("name", name);// ResultSet rs=stmt.executeQuery("select password from getpasswordwhere nickname ="+name+"");ResultSet rs1=stmt.executeQuery("select nickname,email,password fromgetpassword");int flag=0;while(rs1.next()){ 181
    • if((name.equalsIgnoreCase(rs1.getString(1)))&&(emailid.equalsIgnoreCase(rs1.getString(2)))){String abc = rs1.getString("password");flag=1;break;}}if(flag==1){rd = request.getRequestDispatcher("yourpassword.jsp");rd.include(request, response);}elserd = request.getRequestDispatcher("error.jsp");rd.include(request, response);}@Overrideprotected void doGet(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {try {processRequest(request, response);} catch (SQLException ex) {Logger.getLogger(forget_pwsd.class.getName()).log(Level.SEVERE, null,ex);}}@Overrideprotected void doPost(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {try {processRequest(request, response); 182
    • } catch (SQLException ex) { Logger.getLogger(forget_pwsd.class.getName()).log(Level.SEVERE, null, ex); } } @Override public String getServletInfo() { return "Short description"; }}admin.java import java.sql.*; import java.io.IOException; import java.io.PrintWriter; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; 183
    • import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.RequestDispatcher;import javax.servlet.ServletContext;import javax.servlet.http.HttpSession;@WebServlet(name = "admin", urlPatterns = {"/admin"})public class admin extends HttpServlet {protected void processRequest(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, SQLException {response.setContentType("text/html;charset=UTF-8");RequestDispatcher rd;PrintWriter out = response.getWriter();try {ServletContext context = getServletContext();HttpSession session = request.getSession();String a = request.getParameter("u");String b = request.getParameter("p");String a1, a2;int flag = 0;// context.setAttribute("a", a);session.setAttribute("username", a);DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection con =DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "12345");Statement stmt = con.createStatement();ResultSet rs = stmt.executeQuery("select * from admin");while (rs.next()) {a1 = rs.getString(1);a2 = rs.getString(2);// out.println("name ==>"+rs.getString(1));out.println("&nbsp&nbsp");// out.println("id ==>"+rs.getInt(2)); 184
    • out.println("<br>");if ((a1.equals(a)) && (a2.equals(b))) {flag = 1;break;} else {flag = 0;}}if (flag == 1) {// out.print("this is a valid password");rd = request.getRequestDispatcher("adminview.jsp");rd.forward(request, response);} else {out.println("<h1>you are not authorised</h1>");}} finally {out.close();}}@Overrideprotected void doGet(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException {try {processRequest(request, response);} catch (SQLException ex) {Logger.getLogger(admin.class.getName()).log(Level.SEVERE, null, ex);}}@Overrideprotected void doPost(HttpServletRequest request, HttpServletResponseresponse)throws ServletException, IOException { 185
    • try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(admin.class.getName()).log(Level.SEVERE, null, ex); } } @Override public String getServletInfo() { return "Short description"; } } +++++++++++++end of coding++++++++++++++++SQA MeasuresIn order to assure quality of the project, in accordance with plan, we took the followingmeasures:• Formal Technical Reviews• Individual Reports• Regular Brainstorming Sessions 186
    • • Peer Reviews• Embedded measures• Coding Standard• Structural multilevel testing• Performance and acceptance testingValidation ChecksOne of the most tiresome tasks when building interactive web forms is the requirementfor validating values that the user enters into the controls. There are two type ofvalidation checks namely client side and server side. Client side validation are thosethat validations are carried out at browser without rendering the page where as serverside validation are carried out at the server when the pages are posted. This causessignificant performance overhead. J2EE provides a base valuator class from whichseveral types of validation controls can be instantiated.Client Side ValidationFollowing validation controls are implemented in this project:a. Required Field Validator : Checks that the validated control contains a value. It cannot be empty.b. Range Validator: Checks that the value in the validated control is within a specified text or numeric range. If the validated control is empty, no validation takes place.c. Compare Validator: Checks that the value of validated control matches the value in another control or a specific value.d. Regular Expression Validator: Checks that the value in the validated control matches a specified regular expression. If the validated control is empty, no validation takes place. 187
    • e. Custom Validator: Performs user-defined validation on an input control using a specified function.f. Validation Summary: Displays a summary of all current validation errors.Besides this some Java Script functions are included to validate the user inputs withoutsubmitting the page to the server.Server Side ValidationBefore posting the page to the server, we check all validation controls that are on thepage are valid by using “IsValid” property of the page. This reduces the overhead ofthe server.Error Handling & DebuggingIt is the hope of every programmer to write bug-free programs. Bugs in programs canbe incredibly frustrating, usually disrupting the programs they infect. Such errors canbe classified into these four categories:Syntax ErrorThe syntax error is one of the most common errors in programming which is due tomisspelled keywords. J2EE resolves this error quite easily by underlining the keyword.Compilation ErrorThe compilation error occurs when the compiler tries to compile a program andrealizes that the program contains codes that may potentially trip up a program. J2EEprovides support to widening and narrowing of data types which can resolvescompilation error to some extent. 188
    • Runtime ErrorThe runtime error occurs during the time when application is running and somethingunexpected comes. This is called exception which may be of: Out of MemoryException, Over Flow Exception and Base Class Exceptions. This happens at theregular basis in the programs and at the same time programmers do not have enoughtime to carefully consider the entire possible scenario in which their programs may beused and hence results in a buggy program. There are two ways to handle the runtimeerrors:• Unstructured way by using “On Error” statement in earlier versions of JSP. When error occurs, control shifted the pointer to the indicated block where exception handlings are written.• Structured way by using “Try-Catch” in J2EE. Try-block code raises exception where Catch-block takes proper action against the exception.Logic ErrorLogic errors are most difficult problem to solve. J2EE support tracing of page thathelps in identifying logical error. A Trace Class is used to trace the flow of application.Trace information can be grouped into multiple categories for easier viewing and canbe written into log files. Tracing can be done at page level or at the application level.Error handling is an important aspect of software development. Good robustapplication anticipates various errors and takes an active role in resolving them withoutcrashing the program. 189
    • Output Screens 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • TESTINGTesting is the process of executing a program with the intention of finding errors. Asuccessful test is one that uncovers an as-yet undiscovered error. We cannot say thatthe program is 100% correct but enough to IMS has been carried out which shows thatthe program does not contains error; if present it has been minimized.StrategyThe strategy for testing begins with “testing in the small” and works outward “testingin the large”. Testing begins with the unit test then progress toward integration test andculminates with validation and system testing as stated in the jargon of software testingprinciples. Following steps will summarize the stratagem adopted:• Content model is reviewed to uncover errors.• Design model is reviewed to uncover errors.• Components or web-pages are unit tested.• The architecture is constructed and integration IMS are conducted.• The assembled application is tested for overall functionality and content delivery.• The application is implemented in a variety of different environmental configuration and is tested for compatibility with each configuration.• The application is tested by a controlled and monitored population of end-users. LEVELS OF TESTING 213
    • In order to uncover the errors present in different phases, we have the concept oflevels of testing. The basic levels of testing areClient Needs Acceptance TestingRequirements System TestingDesign Integration TestingCode Unit TestingUnit TestingFor this test we chose individual class rather than module because class is the smallestunit contains data and the methods that manipulate these data. The testable unit in thiscase is encapsulated class or object.In planetF, unit testing was done on class-by-class basis. A class can contain a numberof different operations and a particular operation may exist as part of a number ofdifferent classes. ThereforeIntegration Testing 214
    • There are two different strategies for integration testing of OO systems. The firstthread-based testing, integrates the set of classes required to respond to one input orevent for the system. Each system is integrated and tested individually. The secondintegration approach, use-based testing, begins the construction of system by testingthose classes which uses very few of server classes.In planetF, independent classes are tested first followed by dependent classes. Thissequence of testing layers of dependent classes continues until the entire system isconstructed. Regression testing is applied to ensure that no side effects occur.Black-Box TestingBlack box testing also called behavioral testing, focuses on the functional requirementsof the software. BBT are designed to uncover errors and used to demonstrate thatsoftware functions are operational that input is properly accepted and output iscorrectly produced and the integrity of external information is maintained. Though nota substitute for WTB but BBT is a good complimentary of WBT and concentrates ondifferent class of errors.Following categories of errors are uncovered during BBT-• Incorrect or missing functions• Interface errors• Errors in data structures or external database access 215
    • • Behavior or performance errors, and• Initialization or termination errorsTesting of planetF has been conducted in usual manner by the development team atdevelopment site as well as the client side by the client.ACCEPTANCE TESTING Acceptance Testing is performed with realistic data of the client to demonstratethat the software is working satisfactorily. Testing here is focused on external behaviorof the system; the internal logic of program is not emphasized. Test cases should be selected so that the largest number of attributes of anequivalence class is exercised at once. The testing phase is an important part ofsoftware development. It is the process of finding errors and missing operations andalso a complete verification to determine whether the objectives are met and the userrequirements are satisfied.SYSTEM TESTING Here the entire software system is tested. The reference document for thisprocess is the requirements document, and the goal is to see if software meets itsrequirements. Here entire ‘planetF’ has been tested against requirements of project and it is Checked whether all requirements of project have been satisfied or not. 216
    • WHITE BOX TESTING This is a unit testing method, where a unit will be taken at a time and testedthoroughly at a statement level to find the maximum possible errors. I tested step wiseevery piece of code, taking care that every statement in the code is executed at leastonce. The white box testing is also called Glass Box Testing. I have generated a list of test cases, sample data, which is used to check allpossible combinations of execution paths through the code at every module level. White-box test focuses on the program control structure. Test cases are derivedto ensure that all statement in the program control structure. Test cases are derived toensure that all statement in the program control structure. Test cases are derived toensure that all statement in the program has been executed at least once during testingand that all logical conditions have been exercised. Basis path testing, a white boxtechnique, makes use of program graphs (or graph matrices) to derive the set oflinearly independent test that will ensure coverage. Condition and data flow testingfurther exercising degrees of complexity. 217
    • SECURITY As this project is an online project, which is running on the Internet providing global access to the company for which it is being developed, Security is a major part, which I have taken care & considered very closely. Being the site designer, developer and programmer I have used every possible technique to stop any breach in the security of this website. In this project security concern and possible threat to the security of this project over the Internet has been rectified from almost each and every angle. In this regard a few techniques that I have used in this project are mentioned below.• Domain Level Security: - The domain renewal or up-gradation for this site is protected through password, which prevents any hacker to directly enter into this domain and gain control of it. This site has been registered directly through the registrars of Register.org The most secure portal providing web registration Services.• Secure Connection : 218
    • Secure Socket Layer – This technique is used by the server of this website. Through this technique the data being send or received to or from the server runs on a protected layer of Sockets through HTTP Request object. Especially forms are protected through this technique.• FTP Password: - File Transfer Protocol – I have specially allocated a separate label of password to be used for FTP operations. Using this the contents of the site can be changed at any time. This password is registered with the domain server of the site and provides login the authenticated clients only. 219
    • PROJECT COMPATIBLITY The compatibility of a website project depends upon the Different type ofbrowsers, which can interpret the code and display the formatted output to the user.This project is being developed keeping in mind the two world famous browses, whichare used, by most of the users on the Internet. COMPATIBLE BROWSERSInternet Explorer (3 and above) Current Ver (9.0)The Internet explorer holding a market share of approx 45% in international survey is aproduct of Microsoft and is well versed with all the Microsoft servers and some part ofapache servers. The default Scripting language supported by Internet explorer isVbscript. However it also support a smaller version of JavaScript known as Jscript.Netscape Navigator (3 and Above) Current Ver (5)The Netscape Navigator a product of Netscape is also a wonderful browser available inthe market. Netscape supports almost all the servers of the world and could be a betteralternative for Microsoft’s (Internet Explorer). The default Scripting languagesupported by Netscape is JavaScript. It doesn’t support Vbscript. 220
    • Other Browsers (any Version)The project however is being developed keeping in mind the compatibility criteria asper the norms of Microsoft’s Internet Explorer, but it is compatible almost to all thebrowsers of the world which follows the common rules as prescribed by the SGML(Standard Generalized Markup Language). Some of the browsers such as Hotbot,Hotjava etc will be able to download and display this page easily. COMPATIBLE SERVERSMicrosoft Servers:This site is being designed and developed to be hosted on various servers, as on theInternet there are different server operating systems and different server versions arebeing used. The site will use the features of Server side scripting language called java.Thus it is best compatible with Microsoft servers.Apache Servers:The site after development can even be hosted on apache servers, which holds a majorshare of the market web hosting services. The java codes are not supported on most ofthe servers as they do not have java processor; however some part of apache servershas this capability. 221
    • REPORTS1. Reports are generated for the regular growth of user using the website.2. Reports are generated for the daily hits to the site.3. Reports are generated for the increasing space in the database .4. Reports are generated for the queries. PROGRAM EVALUATION AND REVIEW TECHNIQUE (PERT) System Design (12 Aug) Process Design (16 Aug) Design (08 Aug) Module Design (20 Aug) D O System Testing C Data Design (25 Aug) (18 aug) U System M Analysis E N &user Form Design (4 Sep) Requirem T ent Implementation A (27 July) Program Design (15 Sep) (22 Sep) T I O Start Documentation Design N (25July (17 Sep) 2011 ) Finish (22 Sep)GANTT CHART 222
    • 25Jul 27Jul 8Aug 12Aug 16Aug 20Aug 22Aug 23Aug 24Aug 25Aug 4Sep 15Sep 20Sep 21Sep 22Sep Meeting/site visitxistingem equirement analysis Designs Designe DesignesignDesignation &Valid Testingmentationocumentation 223
    • Formal Technical Review (FTR) Report is a software quality assurance activityperformed by the software engineers and others. The objective of FTR are-• To uncover errors in functions, logic or implementation for any representation of the software• To verify whether its meet its requirements• To ensures that it comply with the established standards• To ensure that the development in usual manner• To make projects more manageableStrategy• Limit the people• Advance preparation• Duration should be less than 2 hrs.• Note all the issues• Do not go into the detail when solving problem, just highlight 224
    • LIMITATIONS OF THE PROJECTAny computer program has a pre-defined scope of areas in which the program isallowed to navigate out of this are is the boundary of any project. For a website projectthe major boundary is manipulating with the client machine. This limitation is verymuch helpful as there are several users who do not what a site to enter into theirmemory area.Such As: 1. As like any other websites the scope of this site also is limited only to the server manipulation and not with the client. 2. The database in which the reports are being saved is also limited to its defined table only it could not go beyond that.Any computer program has a pre-defined scope of areas in which the program isallowed to navigate out of this are is the boundary of any project.For a website project the major boundary is manipulating with the client machine. Anhtml page is not allowed to write to the memory locations of the client’s computer.This limitation is very much helpful as there are several users who do not what a site toenter into their memory area. 225
    • SCOPE OF FUTURE APPLICATIONIn this age of fast growing technology and implementation of the latest technologythere is always a scope for further improvement. Also there can be several ways toachieve the target. The main motto is to implement the new concept in the field of developmentby using the tips and tricks related to the modern, primitive and advance age styles andthat makes the difference. There is nothing to do without future implementation. With the day by day growing number of internet user’s the projectapplications are also concentrating on various types of users. In other words we can saythat internet is a global area of information which can be broadcasted to a computerand now a days the most popular to the mobile phones. The future applications of this project could be such type of applications, whichwill enable this site to be viewed by the WAP browsers. And also I would like to addsome more features for the user and admin like :-1:- chat box for user for live chatting.2:- web cam chat for user for broadcasting them live over internet.3:- photo taging .4:- user can ignore a friend for some period of time.5:- sending virtual gifts to friends.6:- admin can set maximum number of friend for any particular user. Etc. 226
    • . BIBLIOGRAPHYBooks Referred to: • Web Development with Java Server Pages - Duane K. Fields • The Ultimate HTML Reference - Ian Lloyd • Software Testing Techniques,Second Edition – Boris Beizer • The Complete Reference Java2,Fifth Edition – Herbert Schildt • Software Engineering Tata McGraw-Hill-Rogers • JDBC Specification Sun Microsystems- Pressman • Core Servlets and JSP Sun Microsystem- Marty Hall • JAVA2 complete reference BPP- Herbert SchildtWeb references: • www.wikipedia.org • www.w3schools.com • www.suncertification.com • www.wiley.com • www.wrox.com • www.sun.java.com • www.ignou.ac.in • www.minddt.com • www.plannet.source.com • www.jakrta.com END OF PROJECT REPORT 227