You are on page 1of 130

PROJECT REPORT

ON

Free Software
Downloading Website

IN PARTIAL FULFILLMENT OF THE REQUIREMENT


FOR THE AWARD OF

THE DEGREE IN BACHELOR OF ENGINEERING

(INFORMATION TECHNOLOGY)

BATCH: 2006-2010

Submitted to: Submitted by:


Mr.Pawan Bhadana Rohit Sharma(06/IT/040)
(HOD-CSE/IT) Pawan Goel(06/IT/041)
Pawan Kumar(06/IT/029)
Ms.Megha Garg
(Lecturer-CSE/IT)

B.S. ANANGPURIA INSTITUTEOF TECHNOLOGY & MANAGEMENT


ALAMPUR, FARIDABAD (HARYANA)

(MAHARSHI DAYANAND UNIVERSITY, ROHTAK)

i
ACKNOWLEDGEMENT

We take this opportunity to thank all those who have helped us in completing the
project successfully.

We sincerely thank Dr. S.S Tyagi Principal of B.S.Anangpuria Institue of


Technology and Management, Alampur for providing us a platform to build this
project.

We would also like to show our gratitude to Mr. Pawan Bhadana (H.O.D. of
Computer and IT department) for providing us with well trained faculty and giving
us all the required resources and a healthy environment for our carrying out our
project work.

We are highly obliged to Project Guide Ms. Megha garg for providing us
continuous and invaluable guidance throughout the project. Her kind and elderly
advice always inspired us in putting our best efforts to develop an efficient project.

1. Rohit Sharma (06/IT/040)


2. Pawan Goyal (06/IT/041)
3. Pawan Kumar (06/IT/029)

ii
B.S. Anangpuria Institute of Technology & Management

CERTIFICATE

This is to certify that the project work entitled free software downloading
website submitted by the students of B.S. ANANGPURIA INSTITUTE OF
TECHNOLOGY AND MANAGEMENT (2006-2010) in partial fulfillment of
the requirement for the degree B.E. of M.D. University Rohtak , is a bonafide
record of the work carried out by them under my supervision and is their
original work.

Ms. Megha garg Mr. Pawan Bhadana


(Lecturer CSE/IT) (H.O.D. CSE / IT)

iii
INDEX
1. Software Requirement Specification
1.1 Introduction………………………………………………….……...1-3
1.1.1 Purpose
1.1.2 Contact Information/SRS team members
1.2 Overall Description
1.2.1 Product Perspective
1.2.2 Product Features
1.3 Hardware & Software Development Environment
1.3.1 Hardware Specification
1.3.2 Front End Language Description
1.3.3 Back End Language Description
2. Design Methodology Description…………………..……………………..4-9
2.1 Structural Chart………………………………………..……………4-5
2.2 Use Case Diagram………………………………...………………..6-7
2.3 Activity Chart Diagram………………………….……………………8
2.4 Class Diagram………………………………………………………...9
3. Coding…………………………………………………………………10-108
3.1 Homepage code……………………………………………….….....10-18
3.2 Loginpage code……………………………………………………..19-21
3.3 Adminlogin code…………………………………………………...22-24
3.4 signup page code………………………………………....................23-27
3.5 Download page code…………………………………………….….28-36
3.6 Download1 page code……………………………….……………...37-45
3.7 Search page code………………………..……………………….…46-50
3.8 Searchcat page code………………………………………………..51-55
3.9 Upload page code…………………………………………………..56-59
3.10 Uploadhandle page code………………………………………..…60-63
3.11 Adminwork page Code…………….……………………………...64-67
3.12 Aboutus page code………………………………………………...68-69
3.13 Contactus page code…………………………………....................70-72
3.14 Feedburner page code……………………………………………..73-75
3.15 Cap Img page code………………………………………………...76-77
3.16 Validate page code………………………………………....................78
3.17 Logout page code……………...……………………………………...79
3.18 Signup page code……………………………………....................80-82
3.19 Noterrorfound code………………………………………………..83-84
3.20 TermsandConditions code………………………………………...85-92
3.21 web.xml code…………………………………………...................93-96

iv
3.22 Checkadminlogin class code………………………………………97-98
3.23 Checklogin class code………………………………....................99-100
3.24 Commnetform class code………………………….....................101-102
3.25 Createuser class code…………………………………………...103-104
3.26 Filldetail class code……………………………………………..105-106
3.27 Upload class code………………………………………………107-108

4. Result:Input/Output……………………………………......................109-122
4.1 Homepage snapshot…………………………………………………...109
4.2 Signup snapshot………………………………………...……………..110
4.3 Login snapshot………………………………………………………..111
4.4 Browsers and Plugins snapshot……………………………………….112
4.5 Download page snapshot……………………………………………...114
4.6 Comment page snapshot………………………………………………115
4.7 Search page snapshot……………………………………....................116
4.8 Upload page snapshot………………………………………………....118
4.9 Aboutus page snapshot………………………………………………..119
4.10 Contactus page snapshot……………………………….....................120
4.11 Terms and Conditions page snapshot………………………………..121
4.12 Admin page snapshot…………………………………………….….122

5. Testing…………………………………………………………………….123
5.1Regression Testing
6. Conclusion……………………………..………………………………….124
7. Bibliography & References………………..……………………………...125

v
1. Software Requirement Specification

1.1 Introduction
1.1.1 Purpose

FREESOFT Downloads is the place where people go to discover free-to-try legal downloads. Featuring
rated reviews, FREESOFT Downloads is the trusted, safe, and secure resource for softwaremobile
applications, and game downloads. With everything from PC starter kits to games, security patches,
screensavers, and mobile apps, you can play with more than 80,000 free downloads. Features such as most-
popular lists, editorial reviews, and how-to articles will help you find the software that is right for you.

We provide timely, relevant, and credible information about important new software and game releases and
updates as they become available. Our editors provide unbiased reviews and ratings for thousands of
products, and they are committed to maintaining coverage that is accurate, and enlightening. All products in
our library go through a rigorous testing process.

You can download files from our software, mobile and game libraries at no cost, and no registration or
personal information is required. However, registering on our site lets you access additional features
including the ability to write your own reviews, track favorite software, receive e-mail newsletters and
product updates.

Our editors and staff use downloadable content in our daily lives, and we understand the need for a Web site
that accurately and independently presents detailed information, editorial opinions, industry expertise, and
media content. We are constantly working to earn your trust.

Purpose of this website is to download freeware, shareware, demo version and open source software without
any account creation. Anyone can upload software (uploader that has software copyright) after filling a
form that has all detail about software and uploader.

1.1.2 Contact information and srs members

Rohit sharma(06/IT/040) (rohit999.sharma@gmail.com)


(Team Leader and server side programmer)

Pawan goyal(06/IT/041) (pkg87@gmail.com)


(Database programmer)

Pawan kumar(06/IT/029) (pawan.is.kumar@gmail.com)


(client side programmer)

1
Intended Audience and Reading Suggestions
Intended audience for this project is faculty, H.O.D of department and students.
Project Guide: Ms. Megha garg
Project coordinator: Ms. Priya gupta.

1.2 Overall Description

1.2.1 Product Perspective


This project is new and self contained project .This software depends on tomcat server, j2se and j2ee
environment. This website is very similar to www.download.com and www.filehippo.com .

Purpose of this software site is to make everyone to download any freeware, shareware, demo version and
open source software absolutely free. Many websites are available for references some of them are shown
below.

1.2.2 Product features


1. Free software’s downloading
2. Software uploading
3. Software Downloading like
 Drivers
 Browsers and Plugins
 Antispyware and Antivirus
 Audio and Video
 Firewalls and Security
 File sharing
 CD and DVD tools
 Messaging and chat
 Imaging and Text editors
 Office and News
 Developers tools
 Networking tools

4. Software description and technical details


5. Demo, open source and freeware software downloading
6. Older versions of software
7. Screenshots of software

2
1.3 Hardware & Software Development Environment

1.3.1 Hardware Specification


Ram requirement: 265 MB minimum, 1GB recommended
Storage device: depend upon software uploaded
Processor: minimum Intel® Xeon™ processor at 2.8GHz/1MB Cache, 800MHz FSB
Intel® Xeon™ processor at 3.0GHz/2MB Cache, 800MHz FSB

1.3.2 Front End Language Description

Server side Programming Languages:-

1: Java Servlets 2.3:- Servlets are the Java platform technology of choice for extending and enhancing Web
servers. Servlets provide a component-based, platform-independent method for building Web-based
applications, without the performance limitations of CGI programs. And unlike proprietary server extension
mechanisms (such as the Netscape Server API or Apache modules), servlets are server- and platform-
independent. This leaves you free to select a "best of breed" strategy for your servers, platforms, and tools.

Servlets have access to the entire family of Java APIs, including the jdbc api to access enterprise databases.
Servlets can also access a library of HTTP-specific calls and receive all the benefits of the mature Java
language, including portability, performance, reusability, and crash protection.

2. JSP 2.0 technology: - java server pages 2.0 technology is used for designing html pages.

Client side Programming Languages:-

1. Html 4.01
2. Java script
3. Css

1.3.3 Back End Language Description

Microsoft access2003 is used as back end to maintain database

3
2. Design Methodology Description
2.1 Structural Chart

HOME

Free Software
Software’s Search

All Software’s
Latest Update Most Popular Downloads
Downloads

4
All Software’s
Downloads

Browsers Audio and File


Security Drivers Others
and Plugins Video Sharing

Firewalls
Others
Antivirus and Antispyware
Software’s
security

Networking

Office and
Text
Editors

Imaging

Messaging
and chat

CD and
DVD Tools

5
2.2 Use Case Diagram

2.2.1 login

If details are
correct

E nt er
use rnam e & Acce s s to D a ta bas e

if detai ls are
in c orrect
H o m e Pag e ac count
user
created

2.2.2 Sign up

All deatils of Confirmation of


user user filled details

SignUp Fill Confirmation account home page


user
Details created with usernam e

invalid details

confirmation
failed

6
2.2.3 All process

SignUp Confirm ation Search Search_Result


Regist ered User
New User?

Most Popular Updates

login
Brows ers & plugins

click download
account
created Antivirus & antis pyware

Home Page s oftware des cription downloading s tart


user A

for all Audio & Videos

File Sharing

Mes saging & chat

Drivers

7
2.3 Class Diagram

checkadminlogin checklogin
rowcount rowcount
adminname username

doGet() getConnection()
doPost() doPost()
getConnection() doG et()

commentform createuser
session yourname
String password
Preparestatement pincode
RequestDispatcher connectionUrl

getConnection() doGet()
doGet() doPost()
doPost() getConnection()
setString() forward()
executeUpdate() PrepareStatement()

filldetail
upload
session
connectionUrl name
con email
view title
version
doGet() descriptioin
doPost() technical
getSession() license
executeUpdate() requirements
homepage
category
company

doGet()
doPost()
getConnection()
createStatemnet()
executeQuery()

8
2.4 Activity Diagram

signup confirmation account softeware


page created upload

upload information
filldetail username password

download
search login page download complete
homepage

enter software name onclick

software downloding
search page started

9
3. CODING

3.1 Homepage Code

<%@ page language="java" %>


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

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


<meta name="description" content="Fast downloads of the latest free software!">
<meta name="keywords" content="download software freeware shareware program
filehippo file hippo">
<link rel="stylesheet" type="text/css" href="homepage_files/main4.css">
<link rel="alternate" type="application/rss+xml" title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo">
<link rel="search" type="application/opensearchdescription+xml"
href="http://www.filehippo.com/inc/opensearch.xml" title="FileHippo.com">
<link rel="icon" href="http://cache.filehippo.com/favicon.ico" type="image/x-icon">
<script src="homepage_files/main2.js" type="text/javascript"></script>
</head><body>
<div id="upperbar">
<div id="user">
<%
HttpSession sess=request.getSession();
String str=(String)sess.getAttribute("username");
if(str !=null)
out.print(str);

%>
</div>

<div id="searchbox">
<form name="f" action="/search.jsp">
<input id="q" name="q" maxlength="150" type="text">
<input id="search-submit" value="Search" type="submit">
</form></div></div>
<div id="header">
<div id="entire">
<div id="content">

10
<div class="pathbar">
<div style="float: left;"><a href="/homepage.jsp">Home&nbsp;</a></div>
<div id="links">
<%

if(str ==null)
{
out.print("<a href=\"/login.jsp\">");
out.print("&nbsp;Login&nbsp;</a>");
out.print("<a href=\"/sign up.jsp\">");
out.print("&nbsp;signup&nbsp;</a>");
out.print("<a href=\"/adminlogin.jsp\">");
out.print("&nbsp;Admin&nbsp;</a>");
}

if(str !=null)
{
out.print("<a href=\"/upload.jsp\">&nbsp;upload&nbsp;</a>");
out.print("<a href=\"/logout.jsp\">&nbsp;Logout&nbsp;</a>");
}
%>

</div>

</div>

<div id="setarea"></div>

<div id="content-full">

<div class="box-two" style="float:left;width:200px;height:auto">

<div class="box" dir="">


<h2 class="s0"><a href="/download.jsp">Category</a></h2>
<div class="box-inner" style="height:auto">
<ul>
<li><h2 class="s1"><a href="/searchcat.jsp?q=browsers and plugins">Browsers and
Plugins</a></h2></li>
<li><h2 class="s1"><a href="/searchcat.jsp?q=file sharing">File Sharing</a></h2></li>
<li><h2 class="s1"><a href="/searchcat.jsp?q=messaging and chat">Messaging and
Chat</a></h2></li>
<li><h2 class="s1"><a href="/searchcat.jsp?q=file transfer">File
Transfer</a></h2></li>
<li><h2 class="s1"><a href="/searchcat.jsp?q=office and news">Office and
News</a></h2></li>

11
<li><h2 class="s2"><a href="/searchcat.jsp?q=antispyware">Anti-
Spyware</a></h2></li>
<li><h2 class="s2"><a href="/searchcat.jsp?q=firewalls and security">Firewalls and
Security</a></h2></li>
<li><h2 class="s2"><a href="/searchcat.jsp?q=antivirus">Anti-Virus</a></h2></li>
<li><h2 class="s2"><a href="/searchcat.jsp?q=cleaning and tweaking">Cleaning and
Tweaking</a></li>
<li><h2 class="s2"><a href="/searchcat.jsp?q=compression and backup">Compression
and Backup</a></h2></li>
<li><h2 class="s3"><a href="/searchcat.jsp?q=audio and video">Audio and
Video</a></h2></li>
<li><h2 class="s3"><a href="/searchcat.jsp?q=cd and dvd tools">CD and DVD
Tools</a></h2></li>
<li><h2 class="s3"><a href="/searchcat.jsp?q=desktop">Desktop</a></h2></li>
<li><h2 class="s3"><a href="/searchcat.jsp?q=imaging">Imaging</a></h2></li>
<li><h2 class="s3"><a href="/searchcat.jsp?q=drivers">Drivers</a></h2></li>
<li><h2 class="s3"><a href="/searchcat.jsp?q=education">education</a></h2></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>

<div class="more"></a></div>
</div>
</div>

<div class="box-two" style="float:right;width:670px">

</div>

<div class="box-two" style="float:right;width:670px;height:auto">


<div class="box" style="height:auto">
<h2 class="s0"><a href="/download.jsp">Most popular downloads</a></h2>
<div class="box-inner" style="height:auto">
<ol>
<%

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

12
Connection con = DriverManager.getConnection(connectionUrl,"","");

try {

String SQL = "select top 4 * from software order by totaldownload desc";


Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
String title1,version1,license1,company1;

while(rs.next())
{
title1=rs.getString("title");
version1=rs.getString("version");
license1=rs.getString("license");
company1=rs.getString("company");
out.print("<li>");
out.print("<u><a href=\"/download1.jsp");
out.print("?title=" + title1 + "&version="+version1);

out.print("\">");
//out.print(rs.getString("date"));
//out.print("-");
out.print("<img src=\"/logo/");
out.print(title1);
out.print(".gif");
out.print("\">");
out.print(title1);
out.print(version1);
out.print("</a></u>");
out.print("<br>");

out.print("<u>License</u>:");
out.print(license1);

out.print("<br>");

out.print("<u>Company</u>:");
out.print(company1);

out.print("</li>");

13
out.print("<hr>");
}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}

%>
</ol>
</div>
<div class="more"><a href="">View more »</a></div>
</div>
</div>

</div>

<div class="box-three">
<div class="box"><h2 class="s1"><a href="/searchcat.jsp?q=browsers and
plugins">Browsers and Plugins</a></h2><div class="box-inner"><ul><li><img
src="homepage_files/new.gif" alt="New" width="28" height="11"><a href="/download.jsp?
title=firefox mozilla&version=3.5.4">Firefox mozilla 3.5.4</a></li>
<li><a href="/download.jsp?title=internet explorer&version=8.0">Internet Explorer
8.0</a></li>
<li><a href="/download.jsp?title=flash player&verion=10.1.3">flash player 10.1.3</a></li>
<li><a href="/download.jsp?title=lanikai&version=3.2">Lankikai 3.2</a></li>
<li><a href="/download.jsp?title=filebird&version=3.5.2">Filebird 3.5.2</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=browsers and plugins">View


more »</a></div></div><div class="box"><h2 class="s1"><a href="/searchcat.jsp?q=file
sharing">File Sharing</a></h2><div class="box-inner"><ul><li><a href="/download.jsp?
title=teracopy&version=1.2">Teracopy 1.2</a></li>
<li><a href="/download.jsp?title=burstcopy&version=3.2">Burstcopy 3.2</a></li>
<li><a href="/download.jsp?title=frostwire&version=4.20.3">Frostwire 4.20.3</a></li>
<li><a href="/download.jsp?title=idm&version=3.3.2">idm 3.3.2</a></li>

14
</ul></div><div class="more"><a href="/searchcat.jsp?q=file sharing">View more
»</a></div></div><div class="box"><h2 class="s1"><a href="/searchcat.jsp?q=messaging
and chat">Messaging and Chat</a></h2><div class="box-inner"><ul><li>
<li><a href="/download.jsp?title=aim&version=7.2.2">Aim 7.2.2</a></li>
<li><a href="/download.jsp?title=yahoomsg&version=4.4.2">Yahoo msg 4.4.2</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=messaging and chat">View more


»</a></div></div><div class="box"><h2 class="s1"><a href="/searchcat.jsp?q=file
transfer">File Transfer</a></h2><div class="box-inner"><ul><li>
<li><img src="homepage_files/new.gif" alt="New" width="28" height="11"><a
href="/download.jsp?title=filezilla&version=3.3.2">FileZilla 3.3.2</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=messaging and chat">View more


»</a></div></div><div class="box"><h2 class="s1"><a href="/searchcat.jsp?q=office and
news">Office and News</a></h2><div class="box-inner"><ul><li><a href="/download.jsp?
title=typing master&version=3.3.3">Typing master 3.3.3</a></li>
<li><a href="/download.jsp?title=foxit reader&version=3.0.2">Foxit Reader 3.0.2</a></li>
<li><a href="/download.jsp?title=cute writer&version=1.1.2">Cute writer 1.12</a></li>
</ul></div><div class="more"><a href="/searchcat.jsp?q=office and news">View more
»</a></div></div><div class="box"><h2 class="s1"><a href="/searchcat.jsp?q=developer
tools">Developer Tools</a></h2><div class="box-inner"><ul><li><a href="/download.jsp?
title=npp&version=2.3">Notepad++ 2.3</a></li>
<li><a href="/download.jsp?title=silverlight developer&version=3.2.1">silverlight developer
3.2.1</a></li>
</ul></div><div class="more"><a href="/searchcat.jsp?q=developer tools">View more
»</a></div></div></div>

<div class="box-three"><div class="box"><h2 class="s2"><a href="/searchcat.jsp?


q=antispyware">Anti-Spyware</a></h2><div class="box-inner"><ul><li><a
href="/download.jsp?title=avg antispyware&version=7.5.1.43">Avg antispyware
7.5.1.43</a></li>
<li><a href="/download.jsp?title=superantispyware&version=1.1.2">Superantispyware
1.1.2</a></li>
<li><a href="/download.jsp?title=spywareblaster&version=4.2">Spywareblaster
4.2</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=antispyware">View more


»</a></div></div><div class="box"><h2 class="s2"><a href="/searchcat.jsp?q=firewalls
and security">Firewalls and Security</a></h2><div class="box-inner"><ul><li><a
href="/download.jsp?title=window defender&version=4.4.4">Window defender
4.4.4</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=firewalls and security">View


more »</a></div></div><div class="box"><h2 class="s2"><a href="/searchcat.jsp?

15
q=antivirus">Anti-Virus</a></h2><div class="box-inner"><ul><li><a
href="/download.jsp?title=avg free edition&version=9.0.698">Avg free edition
9.0.698</a></li>
<li><a href="/dowload.jsp?title=cloud antivirus&version=0.08.83">Cloud antivirus
0.08.83</a></li>
<li><a href="/download.jsp?title=norton antivirus&version=16.5.0.134">Norton antivirus
16.5.0.134</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=antivirus">View more


»</a></div></div><div class="box"><h2 class="s2"><a href="/searchcat.jsp?q=cleaning
and tweaking">Cleaning and Tweaking</a></h2><div class="box-inner"><ul><li><a
href="/download.jsp?title=ccleaner&version=4.2.1">ccleaner 4.2.1</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=cleaning and tweaking">View


more »</a></div></div><div class="box"><h2 class="s2"><a href="/searchcat.jsp?
q=compression and backup">Compression and Backup</a></h2><div class="box-
inner"><ul><li><a href="/download.jsp?title=7z&version=4.2">7z 4.2</a></li>
<li><a href="/download.jsp?title=winzip&version=140">winzip 140</a></li>
<li><a href="/download.jsp?title=wrar&version=393">wrar 393</a></li>
</ul></div><div class="more"><a href="/searchcat.jsp?q=compression and backup">View
more »</a></div></div></div>

<div class="box-three"><div class="box"><h2 class="s3"><a href="/searchcat.jsp?q=audio


and video">Audio and Video</a></h2><div class="box-inner"><ul><li><img
src="homepage_files/new.gif" alt="New" width="28" height="11"><a href="/download.jsp?
title=window media player&version=11.0.1">window media player 11.0.1</a></li>
<li><a href="/download.jsp?title=video convertor&version=4.3.3">video convertor
4.3.3)</a></li>
<li><a href="/download.jsp?title=itunes&version=3.2.1">itunes 3.2.1</a></li>
<li><a href="/download.jsp?title=avi mpeg converter&version=3.3.1">avi mpeg converter
3.3.1</a></li>
<li><a href="/download.jsp?title=qmp&version=5.12.3">qmp 5.12.3</a></li>
<li><a href="/download.jsp?title=realplayer&version=5.0.2">realplayer 5.0.2</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=audio and video">View more


»</a></div></div><div class="box"><h2 class="s3"><a href="/searchcat.jsp?q=cd and dvd
tools">CD and DVD Tools</a></h2><div class="box-inner"><ul><li><img
src="homepage_files/new.gif" alt="New" width="28" height="11"><a href="/download.jsp?
title=dvdcutter&version=6.0.11">dvdcutter 6.0.11</a></li>
<li><a href="/download.jsp?title=deepburner&version=1.1.3">deepburner 1.1.3</a></li>
<li><a href="/download.jsp?title=imgburner&version=3.3.2">imgburner 3.3.2</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=cd and dvd tools">View more


»</a></div></div><div class="box"><h2 class="s3"><a href="/searchcat.jsp?

16
q=desktop">Desktop</a></h2><div class="box-inner"><ul><li><a href="/download.jsp?
title=google earth&version=2.2.2">google earth 2.2.2</a></li>
<li><a href="/download.jsp?title=pack vista&version=2.2.3">pack vista 2.2.3</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=desktop">View more


»</a></div></div><div class="box"><h2 class="s3"><a href="/searchcat.jsp?
q=imaging">Imaging</a></h2><div class="box-inner"><ul>
<li><a href="/download.jsp?title=dap&version=9.3">dap 9.3</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=imaging">View more


»</a></div></div><div class="box"><h2 class="s3"><a href="/searchcat.jsp?
q=drivers">Drivers</a></h2><div class="box-inner"><ul>

<li><a href="/download.jsp?title=jdk&version=6.0.18">jdk 6.0.18</a></li>


<li><a href="/download.jsp?title=dotnetfx&version=3.5">dotnetfx 3.5</a></li>

</ul></div><div class="more"><a href="/searchcat.jsp?q=drivers">View more


»</a></div></div>
</div>

</div>

</div>
<div class="bottombar"><a href="homepage.jsp">Homepage</a>-<a href="about
us.jsp">About</a>-<a href="/terms and conditions.jsp">Terms and Conditions</a>-<a
href="/contactus.jsp">Contact Us</a> </div>
</div>
<div class="copybar">
<div class="copy-left"></div>
<div class="copy-right"></div>
</div>
<p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script>
<script src="homepage_files/ga.js" type="text/javascript"></script>
<script src="homepage_files/ga_002.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</p>

17
</body></html>

3.2 Login Page Code

18
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<meta content="Fast downloads of the latest free software!" name="description">
<meta content="download software freeware shareware program filehippo file hippo"
name="keywords"><link href="login_files/main4.css" type="text/css"
rel="stylesheet"><link title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type="application/rss+xml"
rel="alternate"><link title="FileHippo.com" href="file:///inc/opensearch.xml"
type="application/opensearchdescription+xml" rel="search"><link
href="http://cache.filehippo.com/favicon.ico" type="image/x-icon" rel="icon">
<script src="login_files/main2.txt" type="text/javascript"></script>
<link href="login_files/form.css" type="text/css" rel="stylesheet">
<meta content="MSHTML 6.00.2900.2096" name="GENERATOR">
<script type="text/javascript">

</script>
</head><body><div style="overflow: visible; z-index: 10000; background-color:
transparent; position: fixed; top: 0px; display: none; text-align: center; left: 0px; height:
576px; width: 1024px; padding-top: 125px;" class="rpx_popup_overlay"><div
style="position: absolute; top: 0pt; left: 0pt; width: 100%; height: 100%; background-
color: black; opacity: 0.4;"></div><table style="margin: auto; border-collapse: collapse;
background-color: transparent; width: 440px;" class="rpx_popup_table"><tbody
style="background-color: transparent;"><tr style="background-color: transparent;"><td
style="border: 0px none rgb(255, 255, 255); margin: 0px; padding: 0px; border-collapse:
collapse; border-spacing: 0pt; color: rgb(255, 255, 255); background-color:
transparent;"><div style="background-image:
url(http://cdn.rpxnow.com/images/popup_bg.png/a7565f92533a6bdf05617e311e4a9833.
png); background-color: transparent; position: relative; width: 440px;"
class="rpx_popup_container"><span></span><div style="color: rgb(17, 17, 17); font-
weight: bold; font-size: 13px; font-family: arial,sans-serif; text-align: right; height: 16px;
cursor: pointer; position: absolute; right: 20px; top:
20px;">X</div></div></td></tr></tbody></table></div><div style="overflow: visible;
z-index: 10000; background-color: transparent; position: fixed; top: 0px; display: none;
text-align: center; left: 0px; height: 576px; width: 1024px; padding-top: 125px;"
class="rpx_popup_overlay"><div style="position: absolute; top: 0pt; left: 0pt; width:
100%; height: 100%; background-color: black; opacity: 0.4;"></div><table
style="margin: auto; border-collapse: collapse; background-color: transparent; width:
440px;" class="rpx_popup_table"><tbody style="background-color: transparent;"><tr
style="background-color: transparent;"><td style="border: 0px none rgb(255, 255, 255);
margin: 0px; padding: 0px; border-collapse: collapse; border-spacing: 0pt; color:
rgb(255, 255, 255); background-color: transparent;"><div style="background-image:
url(http://cdn.rpxnow.com/images/popup_bg.png/a7565f92533a6bdf05617e311e4a9833.

19
png); background-color: transparent; position: relative; width: 440px;"
class="rpx_popup_container"><span></span><div style="color: rgb(17, 17, 17); font-
weight: bold; font-size: 13px; font-family: arial,sans-serif; text-align: right; height: 16px;
cursor: pointer; position: absolute; right: 20px; top:
20px;">X</div></div></td></tr></tbody></table></div>
<div id="upperbar">
<div id="links"><a href="/login.jsp">Login</a></div>
<div id="searchbox">
<form name="f" action="/search.jsp"><input id="q" maxlength="150" name="q">
<input id="search-submit" value="Search" type="submit"> </form></div></div>
<div id="header">

</div>
<div id="entire">
<div id="content">
<div class="pathbar">
<div style="float: left;"><a href="/homepage.jsp">Home</a>
<strong>»</strong> Login </div></div>
<div id="content-full">
<form id="Form1" name="Form1" method="post" action="/checklogin.do">
<center>
<p>Enter your account information </p>
<div class="loginbox">
<h1>Login</h1>
<p>&nbsp;</p>
<center>
<table border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td width="67" align="right"><label for="txtUsername">Username&nbsp;</label>
</td>
<td width="149" align="left"><input class="textfield" id="txtUsername"
name="txtUsername">
</td></tr>
<tr>
<td align="right"><label for="txtPassword">Password&nbsp;</label> </td>
<td align="left"><input class="textfield" id="txtPassword" name="txtPassword"
type="password"> </td></tr>
<tr>
<td colspan="2"><br></td></tr></tbody></table></center>
<hr>
<input class="submit" id="btnLogin" value="Submit" name="btnLogin" type="submit">
</div></center></form>
<script language="javascript" type="text/javascript">
<!--
document.Form1.txtUsername.focus();

20
//-->
</script>

<script src="login_files/widget.txt" type="text/javascript"></script>

<script type="text/javascript">
RPXNOW.overlay = true;
RPXNOW.language_preference = "en";
RPXNOW.default_provider = "openid";
</script>
</div></div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and
Conditions</a></div></div>
<div class="copybar">
<div class="copy-left">.<br>
</div>
<div class="copy-right"><a href=""></a></div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="login_files/ga_002.js" type="text/javascript"></script><script
src="login_files/ga.js" type="text/javascript"></script>

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</body></html>

3.3 AdminLogin Code

21
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<meta content="Fast downloads of the latest free software!" name="description">
<meta content="download software freeware shareware program filehippo file hippo"
name="keywords"><link href="login_files/main4.css" type="text/css"
rel="stylesheet"><link title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type="application/rss+xml"
rel="alternate"><link title="FileHippo.com" href="file:///inc/opensearch.xml"
type="application/opensearchdescription+xml" rel="search"><link
href="http://cache.filehippo.com/favicon.ico" type="image/x-icon" rel="icon">
<script src="login_files/main2.txt" type="text/javascript"></script>
<link href="login_files/form.css" type="text/css" rel="stylesheet">
<meta content="MSHTML 6.00.2900.2096" name="GENERATOR">
<script type="text/javascript">

</script>
</head><body><div style="overflow: visible; z-index: 10000; background-color:
transparent; position: fixed; top: 0px; display: none; text-align: center; left: 0px; height:
576px; width: 1024px; padding-top: 125px;" class="rpx_popup_overlay"><div
style="position: absolute; top: 0pt; left: 0pt; width: 100%; height: 100%; background-
color: black; opacity: 0.4;"></div><table style="margin: auto; border-collapse: collapse;
background-color: transparent; width: 440px;" class="rpx_popup_table"><tbody
style="background-color: transparent;"><tr style="background-color: transparent;"><td
style="border: 0px none rgb(255, 255, 255); margin: 0px; padding: 0px; border-collapse:
collapse; border-spacing: 0pt; color: rgb(255, 255, 255); background-color:
transparent;"><div style="background-image:
url(http://cdn.rpxnow.com/images/popup_bg.png/a7565f92533a6bdf05617e311e4a9833.
png); background-color: transparent; position: relative; width: 440px;"
class="rpx_popup_container"><span></span><div style="color: rgb(17, 17, 17); font-
weight: bold; font-size: 13px; font-family: arial,sans-serif; text-align: right; height: 16px;
cursor: pointer; position: absolute; right: 20px; top:
20px;">X</div></div></td></tr></tbody></table></div><div style="overflow: visible;
z-index: 10000; background-color: transparent; position: fixed; top: 0px; display: none;
text-align: center; left: 0px; height: 576px; width: 1024px; padding-top: 125px;"
class="rpx_popup_overlay"><div style="position: absolute; top: 0pt; left: 0pt; width:
100%; height: 100%; background-color: black; opacity: 0.4;"></div><table
style="margin: auto; border-collapse: collapse; background-color: transparent; width:
440px;" class="rpx_popup_table"><tbody style="background-color: transparent;"><tr
style="background-color: transparent;"><td style="border: 0px none rgb(255, 255, 255);
margin: 0px; padding: 0px; border-collapse: collapse; border-spacing: 0pt; color:
rgb(255, 255, 255); background-color: transparent;"><div style="background-image:
url(http://cdn.rpxnow.com/images/popup_bg.png/a7565f92533a6bdf05617e311e4a9833.
png); background-color: transparent; position: relative; width: 440px;"

22
class="rpx_popup_container"><span></span><div style="color: rgb(17, 17, 17); font-
weight: bold; font-size: 13px; font-family: arial,sans-serif; text-align: right; height: 16px;
cursor: pointer; position: absolute; right: 20px; top:
20px;">X</div></div></td></tr></tbody></table></div>
<div id="upperbar">
<div id="links"></div>
<div id="searchbox">
<form name="f" action="/search.jsp"><input id="q" maxlength="150" name="q">
<input id="search-submit" value="Search" type="submit"> </form></div></div>
<div id="header">

</div>
<div id="entire">
<div id="content">
<div class="pathbar">
<div style="float: left;"><a href="/homepage.jsp">Home</a>
<strong>»</strong> Login </div></div>
<div id="content-full">
<form id="Form1" name="Form1" method="post" action="/checkadminlogin.do">
<center>
<p>Enter your account information </p>
<div class="loginbox">
<h1>Login</h1>
<p>&nbsp;</p>
<center>
<table border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td width="67" align="right"><label for="txtUsername">Username&nbsp;</label>
</td>
<td width="149" align="left"><input class="textfield" id="txtUsername"
name="txtUsername">
</td></tr>
<tr>
<td align="right"><label for="txtPassword">Password&nbsp;</label> </td>
<td align="left"><input class="textfield" id="txtPassword" name="txtPassword"
type="password"> </td></tr>
<tr>
<td colspan="2"><br></td></tr></tbody></table></center>
<hr>
<input class="submit" id="btnLogin" value="Submit" name="btnLogin" type="submit">
</div></center></form>
<script language="javascript" type="text/javascript">
<!--
document.Form1.txtUsername.focus();
//-->

23
</script>

<script src="login_files/widget.txt" type="text/javascript"></script>

<script type="text/javascript">
RPXNOW.overlay = true;
RPXNOW.language_preference = "en";
RPXNOW.default_provider = "openid";
</script>
</div></div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and
Conditions</a></div></div>
<div class="copybar">
<div class="copy-left">.<br>
</div>
<div class="copy-right"><a href=""></a></div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="login_files/ga_002.js" type="text/javascript"></script><script
src="login_files/ga.js" type="text/javascript"></script>

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</body></html>

3.4 Signup Page Code

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

<title>FileHippo.com - Download Free Software</title>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Fast downloads of the latest free software!">
<meta name="keywords" content="download software freeware shareware program
filehippo file hippo">
<link rel="stylesheet" type="text/css" href="contactus_files/main5.css">
<link rel="alternate" type="application/rss+xml" title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo">
<link rel="search" type="application/opensearchdescription+xml"
href="http://filehippo.com/inc/opensearch.xml" title="">

<script src="contactus_files/main2.js" type="text/javascript"></script>


<script type="text/javascript">
function validate1()
{
var a=yourname.getElementById();
var b=code1.getElement ById();
alert(hello please fill this field";
if(a.value ==null)
alert("hello please fill this field";

function validate2()
{
var a=password.getElementById();
var b=code2.getElement ById();
if(a.value ==null)
b.innerHTML="please fill this is field";

function validate3()
{
var a=Pincode.getElementById();
var b=code3.getElement ById();
if(a.value ==null)
b.innerHTML="please fill this is field";

}
</script>
</head><body>

25
<div id="upperbar">
<div id="links"><a href="/login.jsp">Login</a></div>
<div id="searchbox">
<form name="f" action="/search.jsp">
<input id="q" name="q" maxlength="150" type="text">
<input id="search-submit" value="Search" type="submit">
</form></div></div>
<div id="header"></div>
<div id="entire">
<div id="content">
<div class="pathbar"> <a href="/homepage.jsp">Home</a> <strong>»</strong>
Contact us </div>
<div id="content-full">
<div class="sitetext">
<h1>sign up</h1>
<form method="post" action="/createuser.do">
<div style="padding-top: 13px;">
<table>
<tbody>
<tr>
<td width="491"><p> Your Full Name<font color="red" size="4">*</font>
<input id="yourname" onblur="validate1()" name="yourname"
type="text" /><code id="code1"></code>
</p>
<p></p>
<p> Your Password <font color="red" size="4">*
<input name="password" type="password" id="password"
onblur="validate2()"/><code id="code2"></code>
</font></p>
<p></p>
<p>Pin Code <font color="red" size="4">*

</font><font color="red" size="4">


<input name="Pincode" type="text" id="Pincode"
onblur="validate3()"/><code id="code3"></code>
</font><br />
</p>
<P>
<input name="Submit" type="submit" value="create account" />
<input name="reset" type="reset" id="reset" value="Reset " />
</p>
<p>&nbsp;</p>
<p align="center">&nbsp;</p></td>
</tr>
</tbody>
</table>

26
</div>
</form>
</div>
</div>
</div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and Conditions</a></div>
</div>
<div class="copybar"></div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="contactus_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</body></html>

3.5 Download.jsp Code

27
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0043)http://filehippo.com/download_firefox/tech/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Fast downloads of the latest free software!" name=description>
<META
content="download software freeware shareware program filehippo file hippo"
name=keywords><LINK
href="download_files/main4.css"
type=text/css rel=stylesheet><LINK title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type=application/rss+xml
rel=alternate><LINK title=FileHippo.com href="/inc/opensearch.xml"
type=application/opensearchdescription+xml rel=search><LINK
href="http://cache.filehippo.com/favicon.ico" type=image/x-icon rel=icon>
<SCRIPT
src="download_files/main2"
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.2096" name=GENERATOR></HEAD>


<% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");


%>

<BODY>
<DIV id=upperbar>
<DIV id=links><A href="/login.jsp">Login</A></DIV>
<DIV id=searchbox>
<FORM name=f action=/search.jsp><INPUT id=q maxLength=150 name=q> <INPUT
id=search-submit type=submit value=Search> </FORM></DIV></DIV>
<DIV id=header>

<DIV id=head-right>
</DIV>
<DIV id=entire>
<DIV id=content>

28
<DIV class=pathbar>
<DIV style="FLOAT: left"><A href="/homepage.jsp">Home</A>
<STRONG>»</STRONG>

<%
try {

String title=request.getParameter("title");
String version=request.getParameter("version");
String SQL = "select * from software where title='" + title + "' AND version='" +
version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);

while(rs.next())
{
String st=rs.getString("category");
out.print("<a href=\"");
out.print("searchcat.jsp");
out.print("?q=");
out.print(st);
out.print("\">");
out.print(st);
out.print("</a>");
rs.close();
stmt.close();
}
}
catch (Exception e) {
e.printStackTrace();
}
%>

<STRONG>»</STRONG> Firefox 3.6 Beta 1 </DIV>


</DIV>
<DIV id=setarea></DIV>
<DIV id=content-3col>
<DIV class=left>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "8976982018";
google_color_border = "ffffff";

29
google_color_bg = "ffffff";
google_color_link = "8c3421";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>
</DIV>
<DIV class=middle>

<DIV id=head-nav>
<UL>
<LI></LI>
<LI id=current></LI>
<LI></LI>
</UL></DIV>
<DIV class="desc">
<TABLE>
<TBODY id="version">

<%
try {

String title=request.getParameter("title");
String version=request.getParameter("version");

String SQL = "select * from software where title='" + title + "' AND version='" +
version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);

while(rs.next())
{
String title1=rs.getString("title");
out.print("<TR><TD><p><h1>");
out.print("<img src=\"/logo/");
out.print(title1);
out.print(".gif");
out.print("\">");
out.print(title1 + " " +version);
out.print("</h1></p></TD></TR>");
out.print("<TR><TD><u><b>Title</u>:");
out.print(title1);
out.print("</b></TD></TR><TR> <TD><u><b>Version</u>:");
out.print(rs.getString("version"));
out.println("</b></TD></TR><TR> <TD><u><b>Description</u>:");
out.print(rs.getString("description"));

30
out.print("</b></TD></TR><TR> <TD><u><b>Technical</u>:");
out.print(rs.getString("technical"));
out.println("</b></TD></TR><TR> <TD><u><b>Total
download</u>:");
out.print(rs.getString("totaldownload"));
out.println("</b></TD></TR><TR> <TD><u><b>License</u>:");
out.print(rs.getString("license"));
out.println("</b></TD></TR><TR> <TD><u><b>Requirements</u>:");
out.print(rs.getString("requirements"));
out.println("</b></TD></TR><TR> <TD><u><b>Filesize</u>:");
out.print(rs.getString("filesize"));
out.println("</b></TD></TR><TR> <TD><u><b>Home page</u>:");
out.print(rs.getString("homepage"));
out.print("</b></tr>");
out.print("</tbody></table>");
rs.close();
stmt.close();
}
}
catch (Exception e) {
e.printStackTrace();
}
%>

<div id="comment">
<%

String str=(String)session.getAttribute("username");
if(str !=null)
{
out.print("<form name=\"formofcomment\" action=\"commentform.do\"");
out.print("<br/><br/>Comment:(max 250 characters)");
out.print("<br/>");
out.print("<textarea name=\"comment\" rows=\"5\" cols=\"60\">");
out.print("</textarea><br/>");
out.print("<input type=\"submit\" value=\"comment\">");
out.print("</form>");

%>
<p><h2><b><u>Comments</u></b></h2><p>
<%

try {

31
String title=request.getParameter("title");
String version=request.getParameter("version");
session.setAttribute("title",title);
session.setAttribute("version",version);
String SQL = "select * from comment where title='" + title + "' AND version='"
+ version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
String cmmt,nameofuser;

while(rs.next())
{
cmmt=rs.getString("comment");
nameofuser=rs.getString("username");
out.print("<p>");
out.print("<b><u>Comment</u>:</b>");
out.print(cmmt);
out.print("<br>");
out.print("<b><u>username</u>:</b>");
out.print(nameofuser);
out.print("<br/>");
out.print("</p>");
}
rs.close();
stmt.close();
}
catch (Exception e)
{
e.printStackTrace();
}

%>
<p></P>
</div>

</DIV><!-- AddThis Button BEGIN -->


<DIV align=right>
<DIV class="addthis_toolbox addthis_default_style"
style="MARGIN-BOTTOM: 8px; WIDTH: 170px"><A
class=addthis_button_email></A><A
class=addthis_button_facebook></A><A class=addthis_button_twitter></A><A
class=addthis_button_digg></A><A class=addthis_button_delicious></A></DIV>
</DIV>

32
<SCRIPT
src="download_files/addthis_widget"
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>


var addthis_share = { url: 'http://www.filehippo.com/download_firefox/tech/6469/', title:
'Download Firefox 3.6 Beta 1 - Technical Details - FileHippo.com' }
</SCRIPT>
<!-- AddThis Button END -->
<DIV class=progbox>
<H2><A href=" ">Screenshots</A></H2>
<DIV class=box-inner>
<br/>
<br/>
<%
try {

String title=request.getParameter("title");
String version=request.getParameter("version");

String SQL = "select * from software where title='" + title + "' AND version='" +
version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);

while(rs.next())
{
String title1=rs.getString("title");
out.print("<TR><TD><p><h1>");
out.print("<img src=\"/screenshots/");
out.print(title1 + " " +version);
out.print(".png");
//out.print("alt=\"not avialable\"");
out.print("\">");
out.print("</h1></p></TD></TR>");
rs.close();
stmt.close();
}
}
catch (Exception e) {
e.printStackTrace();
}
%>

</DIV></DIV>

33
</DIV>
<DIV class=right>
<DIV id=dlbox>

<%
try {
String title1=request.getParameter("title");
String version1=request.getParameter("version");
String sql = "select * from software where title='" +title1+ "'" + "AND
version='" + version1 + "'" + " AND grade='a'" ;
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);

String title,version;

while (rs.next()) {

out.print("<a href=\"/soft/");
out.print(title1 + " " + version1);
out.print(".exe");
out.print("\">");
out.print("<IMG alt=Download src=\"download_files/down5.png\">");
out.print("<b>Download");
out.print("<br/>Latest Version</b>");
out.println("<br/>");
out.print("</a>");
out.println(rs.getString("filesize"));
out.print("mb");

}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}
%>

<DIV class=hr> </DIV>


<CENTER>
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD align=left><SMALL><BR><B>
</B><BR><BR>Old Versions<BR><br>

34
<%
try {
String title1=request.getParameter("title");
String sql = "select * from software where title='" +title1+ "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);
String title,version;

while (rs.next()) {

title=rs.getString("title");
version=rs.getString("version");
out.print("<a href=\"/soft/");
out.print(title + " " + version);
out.print(".exe");
out.print("\">");
out.print(title);
out.print(version);
out.println("<br/>");
out.print("</a>");
}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}
%>

</SMALL></TD></TR></TBODY></TABLE></CENTER><BR>
<CENTER>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_channel = "4799851943";
google_color_border = "ffffff";
google_color_bg = "ffffff";

35
google_color_link = "025EB3";
google_color_url = "025EB3";
google_color_text = "333333";
//--></SCRIPT>
</CENTER></DIV></DIV>
<DIV style="CLEAR: both"></DIV></DIV></DIV>
<DIV class=bottombar><A href="http://filehippo.com/">Homepage</A>-<A
href="http://filehippo.com/info/about/">About</A>-<A
href="http://filehippo.com/info/disclaimer/">Terms and Conditions</A>-<a
href="/contactus.jsp">Contact Us </a></DIV>
</DIV>

<DIV class=copy-left></DIV>
<SCRIPT type=text/javascript>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<SCRIPT type=text/javascript>
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</SCRIPT>
</BODY></HTML>

3.6 Download1.jsp Code

36
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0043)http://filehippo.com/download_firefox/tech/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Fast downloads of the latest free software!" name=description>
<META
content="download software freeware shareware program filehippo file hippo"
name=keywords><LINK
href="download_files/main4.css"
type=text/css rel=stylesheet><LINK title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type=application/rss+xml
rel=alternate><LINK title=FileHippo.com href="/inc/opensearch.xml"
type=application/opensearchdescription+xml rel=search><LINK
href="http://cache.filehippo.com/favicon.ico" type=image/x-icon rel=icon>
<SCRIPT
src="download_files/main2"
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.2096" name=GENERATOR></HEAD>


<% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");


%>

<BODY>
<DIV id=upperbar>
<DIV id=links><A href="/login.jsp">Login</A></DIV>
<DIV id=searchbox>
<FORM name=f action=/search.jsp><INPUT id=q maxLength=150 name=q> <INPUT
id=search-submit type=submit value=Search> </FORM></DIV></DIV>
<DIV id=header>

<DIV id=head-right>
</DIV>
<DIV id=entire>
<DIV id=content>
<DIV class=pathbar>

37
<DIV style="FLOAT: left"><A href="/homepage.jsp">Home</A>
<STRONG>»</STRONG>

<%
try {

String title=request.getParameter("title");
String version=request.getParameter("version");
String SQL = "select * from software where title='" + title + "' AND version='" +
version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);

while(rs.next())
{
String st=rs.getString("category");
out.print("<a href=\"");
out.print("searchcat.jsp");
out.print("?q=");
out.print(st);
out.print("\">");
out.print(st);
out.print("</a>");
rs.close();
stmt.close();
}
}
catch (Exception e) {
e.printStackTrace();
}
%>

<STRONG>»</STRONG> Firefox 3.6 Beta 1 </DIV>


</DIV>
<DIV id=setarea></DIV>
<DIV id=content-3col>
<DIV class=left>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "8976982018";
google_color_border = "ffffff";
google_color_bg = "ffffff";

38
google_color_link = "8c3421";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>

</DIV>
<DIV class=middle>

<DIV id=head-nav>
<UL>
<LI></LI>
<LI id=current></LI>
<LI></LI>
</UL></DIV>
<DIV class=desc>
<TABLE>
<TBODY id="version">

<%
try {

String title=request.getParameter("title");
String version=request.getParameter("version");

String SQL = "select * from software where title='" + title + "' AND version='" +
version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);

while(rs.next())
{
String title1=rs.getString("title");
out.print("<TR><TD><p><h1>");
out.print("<img src=\"/logo/");
out.print(title1);
out.print(".gif");
out.print("\">");
out.print(title1 + " " +version);
out.print("</h1></p></TD></TR>");
out.print("<TR><TD><B><u>Title</u>:");
out.print(title1);
out.print("</TD></TR><TR> <TD><B><u>Version</u>:");
out.print(rs.getString("version"));
out.println("</TD></TR><TR> <TD><B><u>Description</u>:");
out.print(rs.getString("description"));

39
out.print("</TD></TR><TR> <TD><B><u>Technical</u>:");
out.print(rs.getString("technical"));
out.println("</TD></TR><TR> <TD><B><u>Total download</u>:");
out.print(rs.getString("totaldownload"));
out.println("</TD></TR><TR> <TD><B><u>License</u>:");
out.print(rs.getString("license"));
out.println("</TD></TR><TR> <TD><B><u>Requirements</u>:");
out.print(rs.getString("requirements"));
out.println("</TD></TR><TR> <TD><B><u>Filesize</u>:");
out.print(rs.getString("filesize"));
out.println("</TD></TR><TR> <TD><B><u>Home page</u>:");
out.print(rs.getString("homepage"));
out.print("</tr>");
out.print("</tbody></table>");
rs.close();
stmt.close();
}
}
catch (Exception e) {
e.printStackTrace();
}
%>

<div id="comment">
<%

String str=(String)session.getAttribute("username");
if(str !=null)
{
out.print("<form name=\"formofcomment\" action=\"commentform.do\"");
out.print("<br/><br/>Comment:(max 250 characters)");
out.print("<br/>");
out.print("<textarea name=\"comment\" rows=\"5\" cols=\"60\">");
out.print("</textarea><br/>");
out.print("<input type=\"submit\" value=\"comment\">");
out.print("</form>");

%>
<p><h2><b><u>Comments</u></b></h2><p>
<%

try {

String title=request.getParameter("title");

40
String version=request.getParameter("version");
session.setAttribute("title",title);
session.setAttribute("version",version);
String SQL = "select * from comment where title='" + title + "' AND version='"
+ version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
String cmmt,nameofuser;

while(rs.next())
{
cmmt=rs.getString("comment");
nameofuser=rs.getString("username");
out.print("<p>");
out.print("<b><u>Comment</u>:</b>");
out.print(cmmt);
out.print("<br>");
out.print("<b><u>username</u>:</b>");
out.print(nameofuser);
out.print("<br/>");
out.print("</p>");
}
rs.close();
stmt.close();
}
catch (Exception e)
{
e.printStackTrace();
}

%>
<p></P>
</div>

</DIV><!-- AddThis Button BEGIN -->


<DIV align=right>
<DIV class="addthis_toolbox addthis_default_style"
style="MARGIN-BOTTOM: 8px; WIDTH: 170px"><A
class=addthis_button_email></A><A
class=addthis_button_facebook></A><A class=addthis_button_twitter></A><A
class=addthis_button_digg></A><A class=addthis_button_delicious></A></DIV>
</DIV>
<SCRIPT
src="download_files/addthis_widget"

41
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>


var addthis_share = { url: 'http://www.filehippo.com/download_firefox/tech/6469/', title:
'Download Firefox 3.6 Beta 1 - Technical Details - FileHippo.com' }
</SCRIPT>
<!-- AddThis Button END -->
<DIV class=progbox>

<H2><A href="">Screenshots</A></H2>

<DIV class=box-inner>
<%
try {

String title=request.getParameter("title");
String version=request.getParameter("version");

String SQL = "select * from software where title='" + title + "' AND version='" +
version + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);

while(rs.next())
{
String title1=rs.getString("title");
out.print("<TR><TD><p><h1>");
out.print("<img src=\"/screenshots/");
out.print(title1 + " " +version);
out.print(".png");
//out.print("alt=\"not avialable\"");
out.print("\">");
out.print("</h1></p></TD></TR>");
rs.close();
stmt.close();
}
}
catch (Exception e) {
e.printStackTrace();
}
%>
</DIV></DIV>

<DIV class=box-latest>
<DIV class=more></DIV>
</DIV>

42
</DIV>
<DIV class=right>
<DIV id=dlbox>

<%
try {
String title1=request.getParameter("title");
String version1=request.getParameter("version");
String sql = "select * from software where title='" +title1+ "'" + "AND
version='" + version1 + "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);

String title,version;

while (rs.next()) {

out.print("<a href=\"/soft/");
out.print(title1 + " " + version1);
out.print(".exe");
out.print("\">");
out.print("<IMG alt=Download src=\"download_files/down5.png\">");
out.print("<b>Download</b>");
out.println("<br/>");
out.print("</a>");
out.println(rs.getString("filesize"));
out.print("mb");

}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}
%>

<DIV class=hr>

</DIV>
<CENTER>
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD align=left><SMALL><BR><B>

43
</B><BR><BR>Old Versions<BR><br>

<%
try {
String title1=request.getParameter("title");
String sql = "select * from software where title='" +title1+ "'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);
String title,version;

while (rs.next()) {

title=rs.getString("title");
version=rs.getString("version");
out.print("<a href=\"/soft/");
out.print(title + " " + version);
out.print(".exe");
out.print("\">");
out.print(title);
out.print(version);
out.println("<br/>");
out.print("</a>");
}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}
%>

</SMALL></TD></TR></TBODY></TABLE></CENTER><BR>
<CENTER>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_channel = "4799851943";
google_color_border = "ffffff";

44
google_color_bg = "ffffff";
google_color_link = "025EB3";
google_color_url = "025EB3";
google_color_text = "333333";
//--></SCRIPT>

</CENTER></DIV></DIV>
<DIV style="CLEAR: both"></DIV></DIV></DIV>
<DIV class=bottombar><A href="http://filehippo.com/">Homepage</A>-<A
href="http://filehippo.com/info/about/">About</A>-<A
href="http://filehippo.com/info/disclaimer/">Terms and Conditions</A>
</DIV>
</DIV>

<DIV class=copy-left></DIV>
<DIV class=copy-right></DIV>
<SCRIPT type=text/javascript>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<SCRIPT type=text/javascript>
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</SCRIPT>
</BODY></HTML>

3.7 Search.jsp Code

45
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0047)http://www.filehippo.com/search?q=avg+antivirus -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Fast downloads of the latest free software!" name=description>
<META
content="download software freeware shareware program filehippo file hippo"
name=keywords><LINK
href="search_files/main4.css" type=text/css
rel=stylesheet><LINK title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type=application/rss+xml
rel=alternate><LINK title=FileHippo.com href="/inc/opensearch.xml"
type=application/opensearchdescription+xml rel=search><LINK
href="http://cache.filehippo.com/favicon.ico" type=image/x-icon rel=icon>
<SCRIPT src="search_files/main2"
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.2096" name=GENERATOR></HEAD>


<BODY>
<DIV id=upperbar>
<DIV id=links><A href="/login.jsp">Login</A></DIV>
<DIV id=searchbox>
<FORM name=f action=/search.jsp><INPUT type="text" id=q maxLength=150
name=q> <INPUT id=search-submit type=submit value=Search>
</FORM></DIV></DIV>
<DIV id=header>
</DIV>
<DIV id=entire>
<DIV id=content>
<DIV class=pathbar>
<DIV style="FLOAT: left"><A href="homepage.jsp">Home</A>
<STRONG>»</STRONG> Search </DIV>
</DIV>
<DIV id=setarea></DIV>
<DIV id=content-2col>
<DIV class=left>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";

46
google_ad_channel = "8861484080";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "8c3421";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>

</DIV>
<DIV class=right>
<DIV align=center>
<FORM name=f2 action="/search.jsp"><INPUT id=q maxLength=150 name=q>
<INPUT name="Submit" type=submit value=Search>
</FORM></DIV>
<H1>Search Results</H1>
<%

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");

out.print("<table><tbody>");

try {
String s=request.getParameter("q");

String SQL = "select * from software where title like '%" + s + "%'" + " AND" +
" grade='a'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
String title1;
String version1;

while(rs.next())
{
title1=rs.getString("title");
version1=rs.getString("version");

47
out.print("<table><tbody>");
out.print("<tr>");
out.print("<td>");
out.print("<h2>");
out.print("<img src=\"/logo/");
out.print(title1);
out.print(".gif");
out.print("\">");
out.print("<u>");
out.print("<a href=\"");
out.print("/download.jsp");
out.print("?title=" + title1+ "&version=" + version1);
out.print("\"");
out.print(">");
out.print(title1);

out.print("</a>");
out.print("</u>");
out.print("</h2>");
out.print("<br/>");
out.print("<div>");
out.print("<Strong>Description: </Strong>");
out.print(rs.getString("description"));
out.print("</div>");
out.print("<div>");
out.print("<Strong>Total download: </Strong>");
out.print(rs.getString("totaldownload"));
out.print("</div>");
out.print("<div>");
out.print("<Strong>Homepage: </Strong>");
out.print(rs.getString("homepage"));
out.print("</div>");
out.print("</tr>");
out.print("<tr>");
out.print("<DIV class=catdiv></DIV>");
out.print("</tr>");
out.print("</tbody>");
out.print("</table>");
out.print("<DIV class=catdiv></DIV>");
out.print("<hr>");

48
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}

out.print("</tbody>");
out.print("</table>");

%>

<DIV align=center><BR>
</DIV>
<CENTER>
</CENTER>
<DIV class=catdiv></DIV>
<CENTER>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel = "9984661435";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "0000CC";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>

</CENTER></DIV></DIV>
<SCRIPT language=javascript type=text/javascript>
<!--
window.onload=function sf(){document.f2.q.focus();}
// -->
</SCRIPT>
</DIV>
<DIV class=bottombar><A href="/homepage.jsp">Homepage</A>-<A
href="/about us.jsp">About</A>-<A
href="/terms and conditions.jsp">Terms and Conditions</A>-<A
href="/contactus.jsp">contact us</A>

49
</DIV></DIV>
<DIV class=copybar>
<DIV class=copy-left><!-- 20031WPWEB01 --></DIV>
<DIV class=copy-right><A href=""></A></DIV>
<p>&nbsp;</p>
</DIV>
<SCRIPT type=text/javascript>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<SCRIPT type=text/javascript>
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</SCRIPT>
</BODY></HTML>

3.8 Searchcat.jsp code

50
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0047)http://www.filehippo.com/search?q=avg+antivirus -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Fast downloads of the latest free software!" name=description>
<META
content="download software freeware shareware program filehippo file hippo"
name=keywords><LINK
href="search_files/main4.css" type=text/css
rel=stylesheet><LINK title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type=application/rss+xml
rel=alternate><LINK title=FileHippo.com href="/inc/opensearch.xml"
type=application/opensearchdescription+xml rel=search><LINK
href="http://cache.filehippo.com/favicon.ico" type=image/x-icon rel=icon>
<SCRIPT src="search_files/main2"
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.2096" name=GENERATOR></HEAD>


<BODY>
<DIV id=upperbar>
<DIV id=links><A href="/login.jsp">Login</A></DIV>
<DIV id=searchbox>
<FORM name=f action=/search.jsp><INPUT type="text" id=q maxLength=150
name=q> <INPUT id=search-submit type=submit value=Search>
</FORM></DIV></DIV>
<DIV id=header>
</DIV>
<DIV id=entire>
<DIV id=content>
<DIV class=pathbar>
<DIV style="FLOAT: left"><A href="homepage.jsp">Home</A>
<STRONG>»</STRONG> Search category</DIV>
</DIV>
<DIV id=setarea></DIV>
<DIV id=content-2col>
<DIV class=left>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel = "8861484080";

51
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "8c3421";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>

</DIV>
<DIV class=right>
<DIV align=center>
<FORM name=f2 action="/search.jsp">
</FORM></DIV>

<%

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");

String s=request.getParameter("q");

out.print("<table><tbody>");

try {
out.print("<H1><u>");
out.print(s);
out.print("</u></H1>");

String SQL = "select * from software where category='" + s + "' AND


grade='a'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
String title1;
String version1;

while(rs.next())
{

52
title1=rs.getString("title");
version1=rs.getString("version");
out.print("<table><tbody>");
out.print("<tr>");
out.print("<td>");
out.print("<div>");
out.print("<h2>");
out.print("<img src=\"/logo/");
out.print(title1);
out.print(".gif");
out.print("\">");
out.print("<u>");
out.print("<a href=\"");
out.print("/download.jsp");
out.print("?title=" + title1+ "&version=" + version1);
out.print("\"");
out.print(">");

out.print(title1);

out.print("</a></u>");
out.print("</h2></div>");
out.print("<br/>");
out.print("<div>");
out.print("<Strong>Description: </Strong>");
out.print(rs.getString("description"));
out.print("</div>");
out.print("<div>");
out.print("<Strong>Total download: </Strong>");
out.print(rs.getString("totaldownload"));
out.print("</div>");
out.print("<div>");
out.print("<Strong>Homepage: </Strong>");
out.print(rs.getString("homepage"));
out.print("</div>");
out.print("</tr>");
out.print("<tr>");
out.print("<DIV class=catdiv></DIV>");
out.print("</tr>");
out.print("</tbody>");
out.print("</table>");
out.print("<DIV class=catdiv></DIV>");
out.print("<hr>");

53
}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}

out.print("</tbody>");
out.print("</table>");

%>

<DIV align=center><BR>
</DIV>
<CENTER>
</CENTER>
<DIV class=catdiv></DIV>
<CENTER>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel = "9984661435";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "0000CC";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>

</CENTER></DIV></DIV>
<SCRIPT language=javascript type=text/javascript>
<!--
window.onload=function sf(){document.f2.q.focus();}
// -->
</SCRIPT>
</DIV>
<DIV class=bottombar><A href="/homepage.jsp">Homepage</A>-<A
href="/about us.jsp">About</A>-<A

54
href="/terms and conditions.jsp">Terms and Conditions</A>-<A
href="/contactus.jsp">contact us</A>
</DIV></DIV>
<DIV class=copybar>
<DIV class=copy-left><!-- 20031WPWEB01 --></DIV>
<DIV class=copy-right><A href=""></A></DIV>
<p>&nbsp;</p>
</DIV>
<SCRIPT type=text/javascript>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<SCRIPT type=text/javascript>
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</SCRIPT>
</BODY></HTML>

3.9 Upload.jsp Code

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

<title>Download Free Software</title>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Fast downloads of the latest free software!">
<meta name="keywords" content="download software freeware shareware program
filehippo file hippo">
<link rel="stylesheet" type="text/css" href="contactus_files/main5.css">
<link rel="alternate" type="application/rss+xml" title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo">
<link rel="search" type="application/opensearchdescription+xml"
href="http://filehippo.com/inc/opensearch.xml" title="FileHippo.com">

<script src="contactus_files/main2.js" type="text/javascript"></script>


</head><body>
<div id="upperbar">
<div id="links"><a href="/login.jsp">Login</a></div>
<div id="searchbox">
<form name="f" action="/search.jsp">
<input id="q" name="q" maxlength="150" type="text">
<input id="search-submit" value="Search" type="submit">
</form></div></div>
<div id="header"></div>
<div id="entire">
<div id="content">
<div class="pathbar"> <a href="/homepage.jsp">Home </a> >>upload </div>
<div id="content-full">
<div class="sitetext">
<h1>UPload file </h1>
<p> Please only write in English, we can't read any other language. </p>
<form method="post" action="/uploadhandle.jsp" enctype="multipart/form-data" >
<div style="padding-top: 13px;">
<table>
<tbody>
<tr>
<td width="521"><p> Your name<font color="red" size="4">*</font>
<input id="yourname" name="yourname" type="text" />
</p>
<p>Your email<font color="red" size="4">*</font>
<input id="youremail" name="youremail" type="text" />
</p>
<p>Software Title:<font color="red" size="4">*</font>
<input id="title" name="title" type="text" />

56
</p>
<p>Version:<font color="red" size="4" >*</font>
<input id="version" name="version"
type="text" />
</p>
<p>Description:<font color="red" size="4">*</font><br/>
<textarea id="description" name="description"
style="width:300px;height:120px;" rows="8" cols="47"></textarea>
</p>
<p></p>
<p>Technical Description:<font color="red" size="4">*</font><br />
<textarea id="technical" name="technical" style="width: 300px; height:
120px;" rows="8" cols="47"></textarea>
</p>
<p>License:<font color="red" size="4">*</font>
<label>
<select name="license">
<option value="open source">open
source</option>
<option value="freeware">freeware</option>
<option value="trial version">trial
version</option>
</select>
</label>
</p>
<p>Requirement:<font color="red" size="4"*></font>
<br/>
<textarea name="requirement" id="requirements"
style="width:300px; height:80px;" rows="7" cols="47"></textarea>
</p>
<p>Filesize:
<label for="textfield"></label>
<input name="filesize" type="text"
id="filesize" />
</p>
<p>Home page:
<label for="textfield"></label>
<input name="homepage" type="text" id="homepage" />
</p>
<p>category:
<label for="select"></label>
<select name="select" id="select">
<option value="browsers and plugins">browsers and plugins</option>
<option value="file sharing">file sharing</option>
<option value="messaging and chats">messaging and chats</option>
<option value="file transfer">file transfer</option>

57
<option value="office and news">office and news</option>
<option value="developer and tools">developer and tools</option>
<option value="antispyware">antispyware</option>
<option value="firewalls and security">firewalls and security</option>
<option value="antivirus">antivirus</option>
<option value="cleaning and tweaking">cleaning and tweaking</option>
<option value="compression and backup">compression and
backup</option>
<option value="benchmarking">benchmarking</option>
<option value="networking and admin">networking and admin</option>
<option value="audio and video">audio and video</option>
<option value="cd and dvd tools">cd and dvd tools</option>
<option value="desktop">desktop </option>
<option value="imaging">imaging</option>
<option value="drivers">drivers </option>
<option value="education">education</option>
</select>
</p>
<p>company:
<label for="textfield"></label>
<input type="text" name="company" id="company" />
</p>
<p>Software File:
<input type="file" name="file" value="file path" />
</p>
<p>Logo:
<input type="file" name="logo" value="file path" />
</p>
<p>Screenshot: <input type="file" name="screenshot" value="file path"
/></p>
<p align="center">
<input name="submit" type="submit" value="Upload File" />
</p></td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and Conditions</a></div>
</div>
<div class="copybar"></div>
<script type="text/javascript">

58
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="contactus_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</body></html>

3.10 Uploadhandle.jsp Code

59
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*"%>
<%@ page import="org.apache.commons.fileupload.*" %>
<%@ page import="org.apache.commons.fileupload.servlet.*" %>
<%@ page import="org.apache.commons.fileupload.disk.*" %>
<%@ page import="org.apache.commons.io.*" %>
<%@ page import="java.io.File" %>

<%@ page contentType="text/html; charset=iso-8859-1" language="java"


import="java.sql.*" errorPage="" %>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>

<%

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");

int i=0;
String strname[]=new String[14];
String strvalue[]=new String[14];
%>

<%

if (ServletFileUpload.isMultipartContent(request))
{

60
ServletFileUpload servletFileUpload = new ServletFileUpload(new
DiskFileItemFactory());
List fileItemsList = servletFileUpload.parseRequest(request);

FileItem fileItem = null;

Iterator it = fileItemsList.iterator();
while (it.hasNext())
{
FileItem fileItemTemp = (FileItem)it.next();
if (fileItemTemp.isFormField())
{

strname[i]=fileItemTemp.getFieldName();
strvalue[i]=fileItemTemp.getString();
i++;
}
else
{
fileItem = fileItemTemp;

}
if (fileItem!=null)
{
String fileName = fileItem.getName();

/* Save the uploaded file if its size is greater than 0. */


if (fileItem.getSize() > 0)
{
if(fileName !=null)
fileName = FilenameUtils.getName(fileName);
String dirName = "/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/ROOT/file_uploads/" + fileName;

//File saveTo = new File(dirName + fileName);


File saveTo = new File(dirName);

try
{
fileItem.write(saveTo);

61
catch (Exception e)
{
e.printStackTrace();
}
}
}
}
}

%>

<%
try {

session.setAttribute("name",strvalue[0]);
session.setAttribute("email",strvalue[1]);
session.setAttribute("title",strvalue[2]);
session.setAttribute("version",strvalue[3]);
session.setAttribute("description",strvalue[4]);
session.setAttribute("technical",strvalue[5]);
session.setAttribute("license",strvalue[6]);
session.setAttribute("requirements",strvalue[7]);
session.setAttribute("filesize",strvalue[8]);
session.setAttribute("homepage",strvalue[9]);
session.setAttribute("category",strvalue[10]);
session.setAttribute("company",strvalue[11]);

RequestDispatcher view=request.getRequestDispatcher("/upload.do");
view.forward(request,response);

}
catch (Exception e) {
e.printStackTrace();
}

62
%>

</body>
</html>

3.11 Adminwork.jsp Code

63
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<meta content="Fast downloads of the latest free software!" name="description">
<meta content="download software freeware shareware program filehippo file hippo"
name="keywords"><link href="login_files/main4.css" type="text/css"
rel="stylesheet"><link title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type="application/rss+xml"
rel="alternate"><link title="FileHippo.com" href="file:///inc/opensearch.xml"
type="application/opensearchdescription+xml" rel="search"><link
href="http://cache.filehippo.com/favicon.ico" type="image/x-icon" rel="icon">
<script src="login_files/main2.txt" type="text/javascript"></script>
<link href="login_files/form.css" type="text/css" rel="stylesheet">
<meta content="MSHTML 6.00.2900.2096" name="GENERATOR">
<script type="text/javascript">

</script>
</head><body><div style="overflow: visible; z-index: 10000; background-color:
transparent; position: fixed; top: 0px; display: none; text-align: center; left: 0px; height:
576px; width: 1024px; padding-top: 125px;" class="rpx_popup_overlay"><div
style="position: absolute; top: 0pt; left: 0pt; width: 100%; height: 100%; background-
color: black; opacity: 0.4;"></div><table style="margin: auto; border-collapse: collapse;
background-color: transparent; width: 440px;" class="rpx_popup_table"><tbody
style="background-color: transparent;"><tr style="background-color: transparent;"><td
style="border: 0px none rgb(255, 255, 255); margin: 0px; padding: 0px; border-collapse:
collapse; border-spacing: 0pt; color: rgb(255, 255, 255); background-color:
transparent;"><div style="background-image:
url(http://cdn.rpxnow.com/images/popup_bg.png/a7565f92533a6bdf05617e311e4a9833.
png); background-color: transparent; position: relative; width: 440px;"
class="rpx_popup_container"><span></span><div style="color: rgb(17, 17, 17); font-
weight: bold; font-size: 13px; font-family: arial,sans-serif; text-align: right; height: 16px;
cursor: pointer; position: absolute; right: 20px; top:
20px;">X</div></div></td></tr></tbody></table></div><div style="overflow: visible;
z-index: 10000; background-color: transparent; position: fixed; top: 0px; display: none;
text-align: center; left: 0px; height: 576px; width: 1024px; padding-top: 125px;"
class="rpx_popup_overlay"><div style="position: absolute; top: 0pt; left: 0pt; width:
100%; height: 100%; background-color: black; opacity: 0.4;"></div><table
style="margin: auto; border-collapse: collapse; background-color: transparent; width:
440px;" class="rpx_popup_table"><tbody style="background-color: transparent;"><tr
style="background-color: transparent;"><td style="border: 0px none rgb(255, 255, 255);
margin: 0px; padding: 0px; border-collapse: collapse; border-spacing: 0pt; color:

64
rgb(255, 255, 255); background-color: transparent;"><div style="background-image:
url(http://cdn.rpxnow.com/images/popup_bg.png/a7565f92533a6bdf05617e311e4a9833.
png); background-color: transparent; position: relative; width: 440px;"
class="rpx_popup_container"><span></span><div style="color: rgb(17, 17, 17); font-
weight: bold; font-size: 13px; font-family: arial,sans-serif; text-align: right; height: 16px;
cursor: pointer; position: absolute; right: 20px; top:
20px;">X</div></div></td></tr></tbody></table></div>
<div id="upperbar">
<div id="links"></div>
<div id="searchbox">
<form name="f" action="/search.jsp"><input id="q" maxlength="150" name="q">
<input id="search-submit" value="Search" type="submit"> </form></div></div>
<div id="header">

</div>
<div id="entire">
<div id="content">
<div class="pathbar">
<div style="float: left;"><a href="/homepage.jsp">Home</a>
<strong>»</strong> Login </div></div>
<div class="loginbox" id="content-full" align="left">
<h1> Messages</h1>

<hr>
<div class="loginbox" style="width:auto" align="left">

<%

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");

try {

String SQL = "select * from contact";


Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
String name,email,message;

while(rs.next())
{

65
name=rs.getString("name");
email=rs.getString("email");
message=rs.getString("message");
out.print("<br/>Name:");
out.print(name);
out.print("<br/>Email:");
out.print(email);
out.print("<br/>Message:");
out.print(message);
out.print("<br/><hr>");
}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}

%>

</div>

<script language="javascript" type="text/javascript">


<!--
document.Form1.txtUsername.focus();
//-->
</script>

<script src="login_files/widget.txt" type="text/javascript"></script>

<script type="text/javascript">
RPXNOW.overlay = true;
RPXNOW.language_preference = "en";
RPXNOW.default_provider = "openid";
</script>
</div></div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and
Conditions</a></div></div>
<div class="copybar">
<div class="copy-left">.<br>
</div>

66
<div class="copy-right"><a href=""></a></div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="login_files/ga_002.js" type="text/javascript"></script><script
src="login_files/ga.js" type="text/javascript"></script>

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</body></html>

3.12 Aboutus.jsp Code

67
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<meta content="Fast downloads of the latest free software!" name="description">
<meta content="download software freeware shareware program filehippo file hippo"
name="keywords"><link href="about%20us_files/main4.css" type="text/css"
rel="stylesheet">
<script src="about%20us_files/main2.txt" type="text/javascript"></script>

<meta content="MSHTML 6.00.2900.2096" name="GENERATOR"></head><body>


<div id="upperbar">
<%
String str=(String)session.getAttribute("username");
if(str ==null)
{
out.print("<div id=\"links\"><a href=\"/login.jsp\">");
out.print("Login</a></div>");
}
else
out.print(str);

%>
<div id="searchbox">
<form name="f" action="/search.jsp"><input name="q" id="q" maxlength="150" >
<input id="search-submit" value="Search" type="submit"> </form></div></div>
<div id="header"></div>
<div id="entire">
<div id="content">
<div class="pathbar"><a href="/homepage.jsp">Home</a> <strong>»</strong>
About us </div>
<div id="content-full">
<div class="sitetext">
<h1>About us</h1>
<div style="padding: 13px 0px;"><b>Purpose</b>
</div>
<div style="padding-left: 20px;">our aim is to provide you
with the simplest method of downloading the newest versions of the best software
- without the usual excessive popups or spyware and without the low quality
software. </div>
<div style="padding: 13px 0px 2px;"><b>Features</b>
</div>
<ul>
<li>Only the best software, we focus on quality not quantity.

68
</li><li>Very fast servers with 100Mb connections, to make your downloads as fast
as possible.
</li><li>We keep the old versions of programs, so if you update and don't like the
new version, you can always return to the old one.
</li><li>All software is 100% spyware and virus free.
</li><li>Filtering feature to allow you to only show Freeware and/or Non-beta
software.
</li><li>Full support for resuming downloads and download managers.
</li><li>Change log and technical details for downloads.
</li><li>RSS feeds for all updates, categories and for individual programs.
</li><li>New European and US download servers.
</li><li><img alt="" src="about%20us_files/new.gif">
Dynamic pages for faster browsing.
</li></ul>

<div style="padding: 13px 0px;"><b>Software


Submissions</b> </div>
<div style="padding-left: 20px;">We do not take software submissions from
publishers. The site is user focused, we analyse the software market daily for
popular software to add. </div>
<div style="padding: 13px 0px;"><b>Contact
Us</b> </div>
<div style="padding-left: 20px;">We value your ideas and thoughts about
us, we rely on our users to help us make the site better. If you have
any thoughts, problems or suggestions then <a href="/contactus.jsp">click here to contact
us</a>
</div></div></div></div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and
Conditions</a></div></div>
<div class="copybar">
<div class="copy-left"><br><!-- 20031WPWEB01 --></div>
<div class="copy-right"></div></div>
<script type="text/javascript">
type='text/javascript'%3E%3C/script%3E"));
</script><script src="about%20us_files/ga.js" type="text/javascript"></script><script
src="about%20us_files/ga_002.js" type="text/javascript"></script>

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script></body></html>
3.13 Contactus.jsp Code

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

<title>FileHippo.com - Download Free Software</title>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Fast downloads of the latest free software!">
<meta name="keywords" content="download software freeware shareware program
filehippo file hippo">
<link rel="stylesheet" type="text/css" href="contactus_files/main5.css">
<link rel="alternate" type="application/rss+xml" title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo">
<link rel="search" type="application/opensearchdescription+xml"
href="http://filehippo.com/inc/opensearch.xml" title="">

<script src="contactus_files/main2.js" type="text/javascript"></script>


</head><body>

<div id="upperbar">
<%
String str=(String)session.getAttribute("username");
if(str ==null)
{
out.print("<div id=\"links\"><a href=\"/login.jsp\">");
out.print("Login</a></div>");
}
else
out.print(str);

%>
<div id="searchbox">
<form name="f" action="/search.jsp">
<input id="q" name="q" maxlength="150" type="text">
<input id="search-submit" value="Search" type="submit">
</form></div></div>
<div id="header"></div>
<div id="entire">
<div id="content">
<div class="pathbar"> <a href="/homepage.jsp">Home</a> <strong>»</strong>
Contact us </div>
<div id="content-full">
<div class="sitetext">
<h1>Contact us</h1>
<p> Please only write in English, we're sorry but we can't read any other language.
</p>

70
<%
HttpSession sess=request.getSession();
%>
<form method="post" action="/feedburner.jsp">
<div style="padding-top: 13px;">
<table>
<tbody>
<tr>
<td><p> Your name<font color="red" size="4">*</font>
<input id="yourname" name="yourname" type="text" />
</p>
<p></p>
<p> Your email<font color="red" size="4">*</font>
<input id="youremail" name="youremail" type="text" />
</p>
<p></p>
<p> Message<font color="red" size="4">*</font><br />
<textarea id="yourmessage" name="yourmessage" style="width: 400px;
height: 192px;" rows="12" cols="47"></textarea>
</p>
<P>&nbsp;</p>
<p> <small>We receive a large number of messages and may not be able to
respond to every one.</small> </p>
<p align="center">
<input name="submit" type="submit" value="Send Message" />
</p></td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and Conditions</a></div>
</div>
<div class="copybar"></div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="contactus_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();

71
</script>
</body></html>

3.14 Feedburner.jsp Code

72
<%@ page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<HTML><HEAD>
<META content=noindex,nofollow name=robots>
<META http-equiv=Content-Type content=text/html;charset=utf-8>
<META http-equiv=Content-Style-Type content=text/css><LINK
href="feedburner_files/base-070909.css" type=text/css
rel=stylesheet>
<SCRIPT src="feedburner_files/prototype-1.4.0[1]"
type=text/javascript></SCRIPT>

<SCRIPT src="feedburner_files/scriptaculous"
type=text/javascript></SCRIPT>

<SCRIPT src="feedburner_files/behaviour"
type=text/javascript></SCRIPT>

<SCRIPT src="feedburner_files/base"
type=text/javascript></SCRIPT>

<SCRIPT src="feedburner_files/tab_ui"
type=text/javascript></SCRIPT>

<SCRIPT src="feedburner_files/popups"
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.2096" name=GENERATOR></HEAD>


<BODY class=narrow id="">

<DIV id=pageHolder><!-- header div -->


<H1>&nbsp;</H1>
<!-- END header div --><!-- main body area -->
<DIV class=action>
<H2>Email Subscription Request</H2>
<P>Thank you for your request.</P>
<P style="FONT-SIZE: 15px; FONT-FAMILY: Arial"><STRONG></STRONG></P>

<%
try
{
String str[]=new String[3];

str[0]=request.getParameter("yourname");

73
str[1]=request.getParameter("youremail");
str[2]=request.getParameter("yourmessage");
HttpSession sess=request.getSession();

if(str[0] !=null)
{
for(int i=0;i<3;i++)
{
out.print("<br/>");
out.println(str[i]);
}

sess.setAttribute("yourname",str[0]);
sess.setAttribute("youremail",str[1]);
sess.setAttribute("yourmessage",str[2]);

else
{
out.print("<br/>");
out.println(sess.getAttribute("yourname"));
out.print("<br/>");
out.println(sess.getAttribute("youremail"));
out.print("<br/>");
out.println(sess.getAttribute("yourmessage"));
}
}
catch(Exception e)
{
e.printStackTrace();
}
%>

<FORM name=emailSyndicationVerificationForm action=/validate.jsp


method=post>
<P>you will receive a verification message once you submit this form. your account will be
activated once you respond to
this verification message.</P><INPUT type=hidden value=filehippo name=uri>
<INPUT type=hidden name=email> <INPUT type=hidden
value=3QcosyQBAAA=.6ZUpGTaoB601Rg0oqmvOxABUemi+xtU5CX7htiDmcymrxXnJiArB
LaTw2p+fdFvK.l6Tc4ZPUZEroIvaxGQPFnQ==
name=token>
<P align=center><IMG

74
style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-LEFT:
#ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid"
alt="spammers begone" src="Cap_Img.jsp">
<P>To help prevent spam, please type the text you see in the box
above:<BR><INPUT class=textInput id=verifyBox style="WIDTH: 120px" name=number>
<INPUT class=button type=submit value="Complete Subscription Request">
</P></FORM></DIV><!-- END main body area --><!-- footer -->
<DIV id=footer></DIV>
<SCRIPT type=text/javascript>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<SCRIPT type=text/javascript>
try {
var pageTracker = _gat._getTracker("UA-3162504-2");
pageTracker._trackPageview();
} catch(err) {}</SCRIPT>
<!-- END footer --></DIV><!-- end pageHolder --></BODY></HTML>

3.16 Cap_Img.jsp Code

75
<%@ page import="java.io.*"
%><%@ page import="java.awt.*"
%><%@ page import="java.awt.image.*"
%><%@ page import="javax.imageio.ImageIO"
%><%@ page import="java.util.*"
%><%
int width=75;
int height=35;
Random rdm=new Random();
int rl=rdm.nextInt();

String hash1 = Integer.toHexString(rl);

String capstr=hash1.substring(0,5);

session.setAttribute("key",capstr);

Color background = new Color(204,204,204);

Color fbl = new Color(0,100,0);

Font fnt=new Font("SansSerif",1,17);

BufferedImage cpimg =new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB);

Graphics g = cpimg.createGraphics();

g.setColor(background);

g.fillRect(0,0,width,height);

g.setColor(fbl);

g.setFont(fnt);

g.drawString(capstr,10,25);

g.setColor(background);

g.drawLine(10,17,80,17);

g.drawLine(10,22,80,22);

response.setContentType("image/jpeg");

OutputStream strm = response.getOutputStream();

76
ImageIO.write(cpimg,"jpeg",strm);
strm.close();
%>

3.16 Validate.jsp Code

77
<%@ page import="java.util.*" %>
<form name="form1" method="post" action="/feedburner.jsp">
<div align="center">
<input name="Submit" type="submit" value="back"></div>
</form>
<div align="center">
<%
String key=(String)session.getAttribute("key");
String user = request.getParameter("number");
String url = request.getHeader("referer");
String spath=request.getServerName();
int val=0;
val= spath.indexOf("www.");

if(val != -1)
{
spath=spath.replaceFirst("www.","");
}
int domain=url.indexOf(spath);

if(domain != -1)
{
if(key.compareTo(user)==0)
{

RequestDispatcher view=request.getRequestDispatcher("/filldetail.do");
view.forward(request,response);
}
else{

RequestDispatcher view=request.getRequestDispatcher("/feedburner.jsp");
view.forward(request,response);

//RequestDispatcher view=request.getRequestDispatcher("/feedburner.jsp");
}
}
else
{%>
// <div align=center style='color: red;'><b>Not a Vaild Domain</b></div>

<% }
%>
</div>

3.17 Logout.jsp Code

78
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*"
errorPage="" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<%

session.removeAttribute("username");
RequestDispatcher view=request.getRequestDispatcher("/homepage.jsp");
view.forward(request,response);
%>
</body>
</html>

3.18 Sign up.jsp

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

<title>FileHippo.com - Download Free Software</title>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Fast downloads of the latest free software!">
<meta name="keywords" content="download software freeware shareware program filehippo
file hippo">
<link rel="stylesheet" type="text/css" href="contactus_files/main5.css">
<link rel="alternate" type="application/rss+xml" title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo">
<link rel="search" type="application/opensearchdescription+xml"
href="http://filehippo.com/inc/opensearch.xml" title="">

<script src="contactus_files/main2.js" type="text/javascript"></script>


<script type="text/javascript">
function validate1()
{
var a=yourname.getElementById();
var b=code1.getElement ById();
alert(hello please fill this field";
if(a.value ==null)
alert("hello please fill this field";

function validate2()
{
var a=password.getElementById();
var b=code2.getElement ById();
if(a.value ==null)
b.innerHTML="please fill this is field";

function validate3()
{
var a=Pincode.getElementById();
var b=code3.getElement ById();
if(a.value ==null)
b.innerHTML="please fill this is field";

}
</script>
</head><body>

80
<div id="upperbar">
<div id="links"><a href="/login.jsp">Login</a></div>
<div id="searchbox">
<form name="f" action="/search.jsp">
<input id="q" name="q" maxlength="150" type="text">
<input id="search-submit" value="Search" type="submit">
</form></div></div>
<div id="header"></div>
<div id="entire">
<div id="content">
<div class="pathbar"> <a href="/homepage.jsp">Home</a> <strong>»</strong> Contact us
</div>
<div id="content-full">
<div class="sitetext">
<h1>sign up</h1>
<form method="post" action="/createuser.do">
<div style="padding-top: 13px;">
<table>
<tbody>
<tr>
<td width="491"><p> Your Full Name<font color="red" size="4">*</font>
<input id="yourname" onblur="validate1()" name="yourname" type="text"
/><code id="code1"></code>
</p>
<p></p>
<p> Your Password <font color="red" size="4">*
<input name="password" type="password" id="password"
onblur="validate2()"/><code id="code2"></code>
</font></p>
<p></p>
<p>Pin Code <font color="red" size="4">*

</font><font color="red" size="4">


<input name="Pincode" type="text" id="Pincode" onblur="validate3()"/><code
id="code3"></code>
</font><br />
</p>
<P>
<input name="Submit" type="submit" value="create account" />
<input name="reset" type="reset" id="reset" value="Reset " />
</p>
<p>&nbsp;</p>
<p align="center">&nbsp;</p></td>
</tr>
</tbody>
</table>

81
</div>
</form>
</div>
</div>
</div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and Conditions</a></div>
</div>
<div class="copybar"></div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="contactus_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</body></html>

3.19 notfounderror.jsp code

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

<title>FileHippo.com - Download Free Software</title>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Fast downloads of the latest free software!">
<meta name="keywords" content="download software freeware shareware program filehippo
file hippo">
<link rel="stylesheet" type="text/css" href="contactus_files/main5.css">
<link rel="alternate" type="application/rss+xml" title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo">
<link rel="search" type="application/opensearchdescription+xml"
href="http://filehippo.com/inc/opensearch.xml" title="">

<script src="contactus_files/main2.js" type="text/javascript"></script>


</head><body>

<div id="upperbar">
<%
String str=(String)session.getAttribute("username");
if(str ==null)
{
out.print("<div id=\"links\"><a href=\"/login.jsp\">");
out.print("Login</a></div>");
}
else
out.print(str);

%>
<div id="searchbox">
<form name="f" action="/search.jsp">
<input id="q" name="q" maxlength="150" type="text">
<input id="search-submit" value="Search" type="submit">
</form></div></div>
<div id="header"></div>
<div id="entire">
<div id="content">
<div class="pathbar"> <a href="/homepage.jsp">Home</a> <strong>»</strong> Contact us
</div>
<div id="content-full">
<div class="sitetext">
<h1 align="center">Page not found </h1>
<%
HttpSession sess=request.getSession();
%>

83
</div>
</div>
</div>
<div class="bottombar"><a href="/homepage.jsp">Homepage</a>-<a href="/about
us.jsp">About</a>-<a href="terms and conditions.jsp">Terms and Conditions</a></div>
</div>
<div class="copybar"></div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script src="contactus_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</script>
</body></html>

3.20 Terms and conditions.jsp

84
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0047)http://www.filehippo.com/search?q=avg+antivirus -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Fast downloads of the latest free software!" name=description>
<META
content="download software freeware shareware program filehippo file hippo"
name=keywords><LINK
href="search_files/main4.css" type=text/css
rel=stylesheet><LINK title="FileHippo.com RSS"
href="http://feeds2.feedburner.com/filehippo" type=application/rss+xml
rel=alternate><LINK title=FileHippo.com href="/inc/opensearch.xml"
type=application/opensearchdescription+xml rel=search><LINK
href="http://cache.filehippo.com/favicon.ico" type=image/x-icon rel=icon>
<SCRIPT src="search_files/main2"
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.2096" name=GENERATOR></HEAD>


<BODY>
<DIV id=upperbar>
<%
String str=(String)session.getAttribute("username");
if(str ==null)
{
out.print("<div id=\"links\"><a href=\"/login.jsp\">");
out.print("Login</a></div>");
}
else
out.print(str);

%>
<DIV id=searchbox>
<FORM name=f action=/search.jsp><INPUT type="text" id=q maxLength=150 name=q>
<INPUT id=search-submit type=submit value=Search> </FORM></DIV></DIV>
<DIV id=header>
</DIV>
<DIV id=entire>
<DIV id=content>
<DIV class=pathbar>
<DIV style="FLOAT: left"><A href="homepage.jsp">Home</A>
<STRONG>»</STRONG> Terms and Conditions </DIV>
</DIV>
<DIV id=setarea></DIV>

85
<DIV id=content-2col>
<DIV class=left>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel = "8861484080";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "8c3421";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>

</DIV>
<DIV class=right>
<DIV align=center>
<FORM name=f2 action="/search.jsp">
</FORM></DIV>
<H1>Terms and Conditions </H1>
<%

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");

out.print("<table><tbody>");

try {
String s=request.getParameter("q");

String SQL = "select * from software


where title like '%" + s + "%'" + " AND" + " grade='a'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
String title1;

86
String version1;

while(rs.next())
{
title1=rs.getString("title");
version1=rs.getString("version");
out.print("<table><tbody>");
out.print("<tr>");
out.print("<td>");
out.print("<h2>");
out.print("<a href=\"");
out.print("/download.jsp");
out.print("?title=" + title1+
"&version=" + version1);
out.print("\"");
out.print(">");
out.print(title1);

out.print("</a>");
out.print("</h2>");
out.print("<br/>");
out.print("<div>");
out.print("<Strong>Description:
</Strong>");
out.print(rs.getString("description"));
out.print("</div>");
out.print("<div>");
out.print("<Strong>Total download:
</Strong>");

out.print(rs.getString("totaldownload"));
out.print("</div>");
out.print("<div>");
out.print("<Strong>Homepage:
</Strong>");
out.print(rs.getString("homepage"));
out.print("</div>");
out.print("</tr>");
out.print("<tr>");
out.print("<DIV
class=catdiv></DIV>");
out.print("</tr>");
out.print("</tbody>");
out.print("</table>");

87
out.print("<DIV
class=catdiv></DIV>");

}
rs.close();
stmt.close();
}
catch (Exception e) {
e.printStackTrace();
}

out.print("</tbody>");
out.print("</table>");

%>

<DIV align=center><BR>
</DIV>
<CENTER>
</CENTER>
<DIV class=catdiv>
<h2><a name="_Toc26969078">Performance Requirements</a></h2>
<p>Generally a web browser is used to access to this website. Website surfing and software
downloading speed depend upon load on server and internet bandwidth available.</p>
<h2><a name="_Toc26969079"></a><a name="_Toc439994691">Safety
Requirements</a></h2>
<h3>Viruses, spyware, and malware</h3>
<p>We will not list software that contains viruses, Trojan horses, malicious adware, spyware,
or other potentially harmful components. We will not list products known to contain such items
in instances outside FREESOFT Downloads, and we may disallow products from publishers our
editors feel violate the spirit of this policy.<br>
The following are types of software we will not accept:</p>
<ul>
<li>Software that installs viruses, Trojan horses, malicious adware, spyware, or other
malware at any point during or after installation.</li>
<ul>
<li>Software that installs the above items via links to other software or Web sites.</li>
<li>Links on publishers' Web sites that may enable the installation of the above items.</li>
</ul>
<li>Software that installs without notice and the user's consent.</li>

88
<li>Software that serves intrusive advertisements through a Web browser, a pop-up window,
or Web sites outside the software's primary interface.</li>
<li>Software that includes or uses surreptitious data collection.</li>
<li>Software that collects and transmits information about end users or end users' computer
usage without adequate prior notification.</li>
<li>Software that diverts or modifies end users' default browsers, search-engine home pages,
providers, security, or privacy-protection settings.</li>
<li>Software that interferes with users' control and privacy.</li>
</ul>
<h2>Security, privacy and control</h2>
<p>We test all software products submitted to us against a comprehensive set of criteria. In
addition to screening for common viruses and spyware, we also look for other threats that might
interfere with our users' security, privacy, and control. We consider publisher Web sites,
publisher conduct, and our own experience with a particular product.</p>
<h3>EULA and installation prompts</h3>
<p>All products in our library must present users with a clear and easy-to-read license
agreement, and provide users with an opportunity to cancel the installation if they do not agree
to the terms. End-user license agreements are a contract with the user, and in keeping with that
spirit they must be truthful, accurate, comprehensive, and easy to read and understand.<br>
Following are types of software we will not accept:</p>
<ul>
<li>Software that installs in a concealed manner or denies users an opportunity to read the
license agreement and/or to knowingly consent to the installation.</li>
<li>Software that induces installation by making false or misleading claims about the
software or the software publisher.</li>
<li>Software with license agreements that do not clearly or adequately disclose critical
information about the software or additional items included with the installation.</li>
</ul>
<h3>Software bundling</h3>
<p>Any additional programs or third-party items included with the downloadable file must be
clearly disclosed in the FREESOFT Downloads product description and during the installation
process. Users must be given a way to opt out of all additional items during installation, or they
must be given an opportunity to cancel the installation completely.<br>
We will not accept software that exhibits any of the following:</p>
<ul>
<li>Additional programs or third-party items that are not clearly disclosed in the FREESOFT
Downloads product description, end-user license agreement, or installation screens.</li>
<li>The inability for users to opt out of or cancel the installation of additional items included
with the installation.</li>
<li>Icons or shortcuts placed on a user's desktop without adequate prior disclosure or
permission.</li>
</ul>
<h3>Advertising-supported software</h3>
<p>We allow certain types of advertising-supported software, including a small number of
adware components we evaluate on a case-by-case basis. Ad-serving behavior must be restricted

89
to the program's actual user interface, and may not include pop-ups or other forms of intrusive
advertising.</p>
<ul>
<li>Software that serves intrusive advertisements through a Web browser, a pop-up window,
or Web sites outside the software's primary interface.</li>
<li>Software that includes bundled adware considered harmful, malicious, or intrusive.</li>
</ul>
<h3>Removal and uninstallation</h3>
<p>We respect the user's right to control software that is installed on their computers, and we
require that all software in our library provide users with a clear and simple method for removal.
We may disallow products we feel are unnecessarily difficult to uninstall, are obscured, or are
resistant to removal.<br>
Following are types of software we will not accept:</p>
<ul>
<li>Software that prevents its own uninstallation or disablement.</li>
<li>Software that requires users to give up personal information to uninstall.</li>
<li>Software that cannot be properly or safely removed due to errors or other programming
issues.</li>
</ul>
<h2><a name="_Toc26969081"></a><a name="_Toc439994693">Software Quality
Attributes</a></h2>
<p>Given the rapid advances in technology and user control, we are here to demystify what
may seem to be a confusing array of downloadable content. We try to explain technical
requirements, legal issues, and performance standards in a manner that is clear and concise. In
order to maintain the quality of our download library, we may decline to list software with
stability problems, offensive content, or general quality issues as determined by our editors.</p>
<h3>Software quality</h3>
<p>We will not list applications with reliability or stability issues, and in most cases we will
only accept submissions for nonbeta versions of software. We also may decline products our
editors feel do not meet the general quality standards of the library or do not offer significant
value to users. Additionally, we may decline to list products that generate a significant volume
of negative feedback or complaints from our users.<br>
Following are types of software we will not accept:</p>
<ul>
<li>Software with obvious quality or stability issues (crashing, error screens).</li>
<li>Products that generate a significant volume of negative feedback or complaints from
users.</li>
<li>Software that does not meet the general quality standards of the library as determined by
the editors.</li>
</ul>
<h3>Prohibited software</h3>
<p>Our editors have determined that certain types of software are not appropriate for the
FREESOFT Downloads software library. We will remove products or publishers who violate
this policy by either directly or indirectly distributing FREESOFT Downloads-prohibited
software.</p>
<ul>

90
<li>Casino, gambling, or betting software with real wagering.</li>
<li>Pornography-focused applications (for example, &quot;porn media managers&quot;) or
programs containing graphic nudity.</li>
<li>Hacking and spamming tools.</li>
<ul>
<li>E-mail-extraction programs, anonymous bulk mailers, and mass-messaging IM utilities.
</li>
<li>Search-engine-manipulation and doorway-page-creation tools. </li>
</ul>
<li>Products that enable users to cheat in online games.</li>
<li>Products that enable users to copy encrypted commercial DVDs.</li>
<li>PC-monitoring applications with remote-install capabilities.</li>
<li>Illegal software products.</li>
</ul>
<h3>Content</h3>
<p>We do not allow products that contain or promote inappropriate, offensive, or sexually
explicit content. This policy may extend to content delivered by the application, links from the
application interface or publisher's Web site, and content found on the publisher's Web site.</p>
<h3>Product information</h3>
<p>To help ensure the processing of submissions correctly and within the estimated processing
time, all submitted products must adhere to the Upload.com Submission Instructions. These
requirements are designed to inform publishers about the information needed to successfully
submit products to our software library.</p>
<h3>Copyright and trademark</h3>
<p>If we determine someone other than the legal copyright or trademark holder (or his or her
official agent) has submitted a product, we will suspend the product listing. If you would like us
to investigate an alleged breach of copyright, please follow the instructions contained in our
Copyright Notice.</p>
</DIV>
<CENTER>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2649314828492070";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel = "9984661435";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "0000CC";
google_color_url = "666666";
google_color_text = "333333";
//--></SCRIPT>

</CENTER></DIV></DIV>
<SCRIPT language=javascript type=text/javascript>

91
<!--
window.onload=function sf(){document.f2.q.focus();}
// -->
</SCRIPT>
</DIV>
<DIV class=bottombar><A href="/homepage.jsp">Homepage</A>-<A
href="/about us.jsp">About</A>-<A
href="/terms and conditions.jsp">Terms and Conditions</A>-<A
href="/contactus.jsp">contact us</A>
</DIV></DIV>
<DIV class=copybar>
<DIV class=copy-left><!-- 20031WPWEB01 --></DIV>
<DIV class=copy-right><A href=""></A></DIV>
<p>&nbsp;</p>
</DIV>
<SCRIPT type=text/javascript>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<SCRIPT type=text/javascript>
var pageTracker = _gat._getTracker("UA-5815250-1");
pageTracker._trackPageview();
</SCRIPT>
</BODY></HTML>

3.21 Web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

92
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software


distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>

<!-- JSPC servlet mappings start -->

<error-page>
<error-code>404</error-code>
<location>/notfounderror.jsp</location>
</error-page>

<welcome-file-list>
<welcome-file>homepage.jsp</welcome-file>
</welcome-file-list>

<servlet>
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<servlet-class>org.apache.jsp.index_jsp</servlet-class>
</servlet>

<servlet-mapping>

93
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<url-pattern>/index.jsp</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>filldetail</servlet-name>
<servlet-class>filldetail</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>filldetail</servlet-name>
<url-pattern>/filldetail.do</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>createuser</servlet-name>
<servlet-class>createuser</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>createuser</servlet-name>
<url-pattern>/createuser.do</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>checklogin</servlet-name>
<servlet-class>checklogin</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>checklogin</servlet-name>
<url-pattern>/checklogin.do</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>checkadminlogin</servlet-name>
<servlet-class>checkadminlogin</servlet-class>
</servlet>

<servlet-mapping>

94
<servlet-name>checkadminlogin</servlet-name>
<url-pattern>/checkadminlogin.do</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>createuser1</servlet-name>
<servlet-class>createuser1</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>createuser1</servlet-name>
<url-pattern>/createuser1.do</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>uploadhandler</servlet-name>
<servlet-class>uploadhandler</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>uploadhandler</servlet-name>
<url-pattern>/uploadhandler.do</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>commentform</servlet-name>
<servlet-class>commentform</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>commentform</servlet-name>
<url-pattern>/commentform.do</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>upload</servlet-name>
<servlet-class>upload</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>upload</servlet-name>
<url-pattern>/upload.do</url-pattern>
</servlet-mapping>

95
<!-- JSPC servlet mappings end -->

</web-app>

3.22 Checkadminlogin.class
import java.sql.*;

96
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class checkadminlogin extends HttpServlet


{
public void doPost(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException
{

response.setContentType("text/html");
PrintWriter out=response.getWriter();
String x=request.getParameter("txtUsername");
String y=request.getParameter("txtPassword");

try {

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");

String sql="select * from user where name='" + x + "'" + "AND password='" + y +


"'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);
int rowcount = 0;
while ( rs.next() )
{
// Process the row.
rowcount++;
}

if(rowcount ==0)
{
RequestDispatcher view=request.getRequestDispatcher("/adminlogin.jsp");
view.forward(request,response);
}

else

97
{
HttpSession sess=request.getSession();
sess.setAttribute("username",x);
Cookie cookie=new Cookie("username",x);
response.addCookie(cookie);

RequestDispatcher view=request.getRequestDispatcher("/adminwork.jsp");
view.forward(request,response);

}
catch (Exception e) {
e.printStackTrace();
}

public void doGet(HttpServletRequest request,HttpServletResponse response) throws


IOException,ServletException
{
doPost(request,response);
}
}

3.23 Checklogin.class
import java.sql.*;

98
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class checklogin extends HttpServlet


{
public void doPost(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException
{

response.setContentType("text/html");
PrintWriter out=response.getWriter();
String x=request.getParameter("txtUsername");
String y=request.getParameter("txtPassword");

try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");

String sql="select * from user where name='" + x + "'" + "AND password='" + y +


"'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);
int rowcount = 0;
while ( rs.next() )
{
// Process the row.
rowcount++;
}

if(rowcount ==0)
{
RequestDispatcher view=request.getRequestDispatcher("/login.jsp");
view.forward(request,response);
}

else
{

99
HttpSession sess=request.getSession();
sess.setAttribute("username",x);
Cookie cookie=new Cookie("username",x);
response.addCookie(cookie);

RequestDispatcher view=request.getRequestDispatcher("/homepage.jsp");
view.forward(request,response);

}
catch (Exception e) {
e.printStackTrace();
}

public void doGet(HttpServletRequest request,HttpServletResponse response) throws


IOException,ServletException
{
doPost(request,response);
}
}

3.24 Commentform.class
import java.util.*;

100
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class commentform extends HttpServlet


{
public void doPost(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();

try {

HttpSession session=request.getSession();
String[] str=new String[4];
str[0]=(String)request.getParameter("comment");
str[1]=(String)session.getAttribute("username");
str[2]=(String)session.getAttribute("title");
str[3]=(String)session.getAttribute("version");

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");


PreparedStatement ps=con.prepareStatement("INSERT INTO
comment(title,version,comment,username) VALUES (?,?,?,?)");
ps.setString(1,str[2]);
ps.setString(2,str[3]);
ps.setString(3,str[0]);
ps.setString(4,str[1]);
ps.executeUpdate();
}

catch(Exception e) {
e.printStackTrace();
}

RequestDispatcher view=request.getRequestDispatcher("/homepage.jsp");

101
view.forward(request,response);

public void doGet(HttpServletRequest request,HttpServletResponse response) throws


IOException,ServletException
{
doPost(request,response);
}
}

3.25 Createuser.class

102
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class createuser extends HttpServlet


{
public void doPost(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();
String x=request.getParameter("yourname");
String y=request.getParameter("password");
String z=request.getParameter("Pincode");

try {

// String str1[]=(String[])request.getAttribute("strpass");

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");


PreparedStatement ps=con.prepareStatement("INSERT INTO
user(name,password,pincode) VALUES (?,?,?)");
ps.setString(1,x);
ps.setString(2,y);
ps.setString(3,z);
ps.executeUpdate();

RequestDispatcher view=request.getRequestDispatcher("/login.jsp");
view.forward(request,response);
}
catch (Exception e) {
e.printStackTrace();
}

103
public void doGet(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException
{
doPost(request,response);
}
}

3.26 Filldetail.class

104
import java.util.*;
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class filldetail extends HttpServlet


{
public void doPost(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();

try {

HttpSession session=request.getSession();
String[] str=new String[3];
str[0]=(String)session.getAttribute("yourname");
str[1]=(String)session.getAttribute("youremail");
str[2]=(String)session.getAttribute("yourmessage");

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

Connection con = DriverManager.getConnection(connectionUrl,"","");


PreparedStatement ps=con.prepareStatement("INSERT INTO
contact(name,email,message) VALUES (?,?,?)");
ps.setString(1,str[0]);
ps.setString(2,str[1]);
ps.setString(3,str[2]);
ps.executeUpdate();
}

catch(Exception e) {
e.printStackTrace();
}

RequestDispatcher view=request.getRequestDispatcher("/homepage.jsp");

105
view.forward(request,response);

public void doGet(HttpServletRequest request,HttpServletResponse response) throws


IOException,ServletException
{
doPost(request,response);
}
}

106
3.27 Upload.class
import java.util.*;
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class upload extends HttpServlet


{
public void doPost(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();

try {

HttpSession session=request.getSession();
String[] str1=new String[12];
str1[0]=(String)session.getAttribute("name");
str1[1]=(String)session.getAttribute("email");
str1[2]=(String) session.getAttribute("title");
str1[3]=(String) session.getAttribute("version");
str1[4]=(String) session.getAttribute("description");
str1[5]=(String) session.getAttribute("technical");
str1[6]=(String) session.getAttribute("license");
str1[7]=(String) session.getAttribute("requirements");
str1[8]=(String) session.getAttribute("filesize");
str1[9]=(String) session.getAttribute("homepage");
str1[10]=(String) session.getAttribute("category");
str1[11]=(String) session.getAttribute("company");

for(int i=0;i<12;i++)
{
out.print("<br/>");
out.print(str1[i]);
}
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\ROOT\\software.mdb";

107
Connection con = DriverManager.getConnection(connectionUrl,"","");

String sql="insert into


upload(name,email,title,version,description,technical,license,requirements,filesize,homep
age,category,company) values('" + str1[0] + "'," + "'" + str1[1] + "',"+ "'" + str1[2] + "',"+
"'" + str1[3] + "',"+ "'" + str1[4] + "',"+ "'" + str1[5] + "',"+ "'" + str1[6] + "',"+ "'" +
str1[7] + "',"+ "'" + str1[8] + "',"+ "'" + str1[9] + "',"+ "'" + str1[10] + "',"+ "'" + str1[11] +
"')";
Statement st=con.createStatement();
ResultSet rs=st.executeQuery(sql);

while(rs.next())
{

catch(Exception e) {
e.printStackTrace();
}

RequestDispatcher view=request.getRequestDispatcher("/homepage.jsp");
view.forward(request,response);

public void doGet(HttpServletRequest request,HttpServletResponse response) throws


IOException,ServletException
{
doPost(request,response);
}
}

4.1 Homepage

108
4.2 Signup Screen Short

109
4.3 Login

110
4.4 Browsers and plugins

111
4.5 Download page

112
113
4.6 Comment page

114
4.7 Searchpage

115
4.8 Uploadpage

116
117
118
4.9 About us

119
4.10 Contact us

120
4.11 Terms and conditions

121
4.12 Admin login

122
5. Regression Testing
Any time you modify an implementation within a program, you should also do regression
testing. You can do so by rerunning existing tests against the modified code to determine
whether the changes break anything that worked prior to the change and by writing new tests
where necessary. Adequate coverage without wasting time should be a primary consideration
when conducting regression tests. Try to spend as little time as possible doing regression testing
without reducing the probability that you will detect new failures in old, already tested code.

Some strategies and factors to consider during this process include the following:

• Test fixed bugs promptly. The programmer might have handled the symptoms but not
have gotten to the underlying cause.
• Watch for side effects of fixes. The bug itself might be fixed but the fix might create
other bugs.
• Write a regression test for each bug fixed.
• If two or more tests are similar, determine which is less effective and get rid of it.
• Identify tests that the program consistently passes and archive them.
• Focus on functional issues, not those related to design.
• Make changes (small and large) to data and find any resulting corruption.
• Trace the effects of the changes on program memory.

5.1 Building a Library

The most effective approach to regression testing is based on developing a library of tests made
up of a standard battery of test cases that can be run every time you build a new version of the
program. The most difficult aspect involved in building a library of test cases is determining
which test cases to include. The most common suggestion from authorities in the field of
software testing is to avoid spending excessive amounts of time trying to decide and err on the
side of caution. Automated tests, as well as test cases involving boundary conditions and timing
almost definitely belong in your library. Some software development companies include only
tests that have actually found bugs. The problem with that rationale is that the particular bug may
have been found and fixed in the distant past.

Periodically review the regression test library to eliminate redundant or unnecessary tests. Do
this about every third testing cycle. Duplication is quite common when more than one person is
writing test code. An example that causes this problem is the concentration of tests that often
develop when a bug or variants of it are particularly persistent and are present across many
cycles of testing. Numerous tests might be written and added to the regression test library. These
multiple tests are useful for fixing the bug, but when all traces of the bug and its variants are
eliminated from the program, select the best of the tests associated with the bug and remove the
rest from the library.

123
6. Conclusion
Our aim was to construct a live project . We have devoted everything to make this project a reality,
which is really user friendly and very easy to work with. This project was not just limited in
making a program and using it, but this project is like a live project in which we had to spend a lot
of time in gathering information, studying material. We started off with the feasibility of the
project encompassing a lot of discussions with my well wishers. It was followed by accumulating
resources of all kinds from everywhere in every possible way. During my implementation phase,
we had to deal with a lot of obstacles and sometimes whole day passed without a single line of
code being added. But, in limited time with limited resources, what was aimed in the beginning has
been achieved to a large extent in the end. But there still can be further improvements in my work.
It was really a dream come true. We really thank God, the Almighty for this success.
Friendsvila.com makes feasible for people to communicate when they are large distance apart. It is
very easy to join it .It have some important features which are as:

• Support of Captcha at the time of feedback

• Facility to receive user feedback by user

• Searching of any software

• Storing of user information in permanent database

• Software downloading and uploading

• comment on any software

• contact us information

• login facility

• admin login to see all messages

124
7. Bibliography & References
Webliography:
www.download.com
www.filehippo.com
www.download3000.com
www.softzilla.com
www.tucows.com
www.brothersoft.com
www.w3schools.com

Bibliography:
First Head to Servlets and JSP by O’reilly.
Sql the complete reference by O’reilly.

125

You might also like