Академический Документы
Профессиональный Документы
Культура Документы
Com
CONTENTS
CHAPTER:1 Introduction
CHAPTER:2 Objectives
CHAPTER:5 SRS
E-R diagrams
Data dictionary
CHAPTER:7 Testing
CHAPTER:13 Bibliography
1
Grenoweb.Com
INTRODUCTION
The administrator can even maintain the record of the website in the
organization in allocating the unique id and password to the user. This
intranet-based application provides the student of the system a centralized
view of the things maintained in the software depending on the privileges
assigned by the administrator accordingly.
In this, there are admin who solve problems which have occurred for
searching any data. In this application new user can register himself and
get a id and password through that he can login in our application.Now he
can search our website details and access it very quickly.Admin can
upload new website details also. He can view user records . Now admin
have the features for search his whole system in a browser. In this site we
can search user can search book details, Packers details,Grocery
Details,Cake details, Gym details, Hostel details, Hotel details, college
details etc. He can view and put enquiry on it.
2
Grenoweb.Com
OBJECTIVE
3
Grenoweb.Com
Other Objectives
4
Grenoweb.Com
CHAPTER-3
Tools/Environment
Used
5
Grenoweb.Com
SERVLET
FRONT END:
6
Grenoweb.Com
7
Grenoweb.Com
Introduction To MySql
Modern relational database management systems can perform a
wide range of tasks. It has got the following advantages-
Define a database
Query the database
Add, edit and delete data.
Modify the structure of the database
Secure data from public access.
Communicate within networks
8
Grenoweb.Com
9
Grenoweb.Com
HARDWARE SPECIFICATION
VIRTUAL MEMEORY
PROCESSOR : 32 BIT, Pentium IV
RAM : 1 GB
HARD DISK : 40 GB
MONITOR : SVGA Monitor (800 * 600RESOLUTIONS)
CLOCK SPEED : 266 MHz
SOFTWARE SPECIFICATION
10
Grenoweb.Com
CHAPTER-4
Analysis Document
SYSTEM ANALYSIS
11
Grenoweb.Com
PRELIMINARY INVESTIGATION
Things are expected to get even more critical since the companys
future from the past and the todays date. Such events and
rather than to go through the pain of updating the system over and
dependent schedules.
FEASIBILITY STUDY
determined.
12
Grenoweb.Com
TECHNICAL FEASIBILITY
ECONOMICAL FEASIBILITY
cost of opening and maintaining offices which will be more than the
OPERATIONAL FEASIBILITY
the Application.
13
Grenoweb.Com
IDENTIFICATION OF NEED
Requirement elicitation.
Requirement specification.
System Modeling.
Requirement validation.
Requirement Management.
14
Grenoweb.Com
knows what to say or ask, Both are worried that what they do say
get the think over with, but at the same time, both want it to be a
success.
focuses on the customer, the overall goals, and the benefits. For
solution?
15
Grenoweb.Com
need?
and met its staffs, management, and some persons related with the
16
Grenoweb.Com
Preliminary Investigation
The first step in the system development life cycle is the preliminary
objectives:
alternative approaches.
17
Grenoweb.Com
Conducting interviews.
Feasibility Study
1. Technical feasibility.
2. Operational feasibility.
3. Economic feasibility.
feasible, and then analyst can go ahead and prepare the project
18
Grenoweb.Com
define performance.
a) Technical Feasibility
much heavy configuration system for its run nor in its development.
b) Economical Feasibility
benefits and saving that are expected from a proposed system and
19
Grenoweb.Com
cycle.
c) Operational Feasibility
some control buttons in the easy way by which one can choose the
options on his desire. Though this is fully protected with the security
by word (Password and user name),If both are matched only then
one can get access of this software . Various Reports, Forms and
1. It is User-Friendly.
3. Efficient tractability.
Project Planning
20
Grenoweb.Com
Thus, project planning for any company has the following four
main steps:
Project Scheduling
chart.
evaluated.
22
Grenoweb.Com
Add equipment.
Change priorities.
between activities.
Gantt charts are useful tools for planning and scheduling projects.
take.
carried out.
23
Grenoweb.Com
Gantt charts allow you to see how remedial action may bring
24
Grenoweb.Com
Day
s
Selection
23-
& Learning
32
the S/W
10
To be used Day
s
Day
s
Understand 33-
ing 47
Database 15
Day
s
25
Grenoweb.Com
Day
s
48-
Coding 62
15
day
s
Day
s
63-
Page
72
Designing
10
day
s
Day
s
73-
Testing 82
10
Day
s
Day
s-
83-
Evaluation 92
10
Day
s
Day
s
93-
Implemeta
98
tion
6
Day
s
26
Grenoweb.Com
27
Grenoweb.Com
figure. The arrow length is not significant, but the sequence and
28
Grenoweb.Com
weeks
No. task on the critical path can be held up without delaying the
enough.
29
Grenoweb.Com
Design constraints:
1. Introduction
1.1 Purpose
1.2 Scope
1.4 References
1.5 Overview
2. Overall description
2.4 Constraints
3. Specific requirements
30
Grenoweb.Com
4. Supporting information
2.2 Appendixes
Requirements for both the system and the software are documented
DESIGN
software that can be accessed for quality before coding begins. Like
31
Grenoweb.Com
software configuration.
Code Generation: -
mechanistically.
Testing: -
Once code has been generated, program testing begins. The testing
all statements have been tested and on the functional externals, that
is, conducting tests to uncover errors and ensure that defined input
Waterfall Model
this model, each phase of the life cycle is completed before the start
software development.
32
Grenoweb.Com
phases.
33
Grenoweb.Com
Linear Sequential Model has been used in carrying out this project
work. The Linear Sequential Model is the oldest and the most widely
Support.
This system view is essential when software must interact with other
done in the social network system. When I had accepted this project
Enginee.
35
Grenoweb.Com
system provides information that how the work is being done and
how data are maintained which are useful for the user, what
Requirement specification
either case, before any further steps can be taken, the project
plans and schedules are drafted for making the system a reality.
36
Grenoweb.Com
DATAFLOW DIAGRAMS
LEVEL 0
Initially in the first level of the Data flow the level 0 explains
the basic outline of the system. The end-user sends the packets to
LEVEL 1
37
Grenoweb.Com
previous level. In this level the end-user who passes the request for
the system enters into the first process, the capturing process and
LEVEL 2
system. In this level first we have to select the packet and perform
test over that selected packets. Then identify the end address of the
packet and send that packet for processing. After processing the
packet it was send to the identity content. Then send the processed
packet for storing and display the source and destination addresses.
USER
38
Grenoweb.Com
Message
Grenoweb.C
om Website
Search
Enginee
1.0
Administrator Admin Admin
Module
Info about Admin
Give permission
2.0
Website Website
Module
39 3.0
Reports
Module
Generate reports
Grenoweb.Com
Website Details
Website List
User List
Enquiry
40
Grenoweb.Com
1.0
Administrator Admin Admin login
Module
1.1
New Website
Website
1.2
Update
database
1.3
User User Record
Record
1.4
Enquiry Enquiry
Details
41
Grenoweb.Com
Website
H
id Una a
me s
Vie
w
Change
Password Passwor
d User
Address
Date
Lo
gi
n Na
User me
login PId
Se
arc
h
Search
Personal Details
Website
Redire
wid Name ct
42
Grenoweb.Com
Link
dob
pwd
Add Date
discript
ion name
discriptio
id
name Date n
H
id Una a
me s
Vi Up
e dat
w e
Lo discrip
Admin_log gi Drive tion
in n
Date
Se
arc
h
Web Browser
Website
43
Grenoweb.Com
CHEPTER-5
CODING
Adminhome .jsp
44
Grenoweb.Com
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Grenoweb.Com </title>
/>
<script type="text/javascript"
src="layout/scripts/jquery.slidepanel.setup.js"></script>
<script type="text/javascript"
src="layout/scripts/jquery.cycle.min.js"></script>
<script type="text/javascript">
$(function() {
$('#featured_slide').after('<div id="fsn"><ul
id="fs_pagination">').cycle({
timeout: 5000,
fx: 'fade',
pager: '#fs_pagination',
pause: 1,
pauseOnPagerHover: 0
});
});
</script>
</head>
<body>
45
Grenoweb.Com
<div id="header">
<div id="logo">
<h1><a href="index.jsp">GrenoWeb.Com</a></h1>
</div>
<div id="topnav">
</div>
</div>
</div>
<!--
##################################################
##################################################
### -->
<div id="featured_slide">
</div>
</div>
</div>
<!--
##################################################
##################################################
### -->
<div id="homecontent">
46
Grenoweb.Com
data">
<table>
<h1>
</h1>
</table>
</form>
</div>
</div>
</div>
<!--
##################################################
##################################################
### -->
<!--
##################################################
##################################################
### -->
</body>
</html>
BookEnquiry.jsp
47
Grenoweb.Com
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Grenoweb.Com </title>
charset=iso-8859-1" />
type="text/css" />
<script type="text/javascript"
src="layout/scripts/jquery.min.js"></script>
<script type="text/javascript"
src="layout/scripts/jquery.slidepanel.setup.js"></script>
<script type="text/javascript"
src="layout/scripts/jquery.cycle.min.js"></script>
<script type="text/javascript">
$(function() {
$('#featured_slide').after('<div id="fsn"><ul
id="fs_pagination">').cycle({
timeout: 5000,
fx: 'fade',
pager: '#fs_pagination',
pause: 1,
pauseOnPagerHover: 0
48
Grenoweb.Com
});
});
</script>
<%
%>
<%
%>
</head>
<body>
<div id="header">
<div id="logo">
<h1><a
href="index.jsp">GrenoWeb.Com</a></h1>
Panel</p>
</div>
<div id="topnav">
49
Grenoweb.Com
</div>
</div>
</div>
<!--
##########################################
##########################################
################### -->
<div id="featured_slide">
<div><a href="#"><img
src="images/demo/23hbanner_Image1-Copy.jpg" height="300px;"
</div>
</div>
</div>
<!--
##########################################
##########################################
################### -->
<div id="homecontent">
50
Grenoweb.Com
auto;">
cellpadding="8" align="center">
<tr>
<td>
<h2>
<a href="BookList1.jsp">Book
Details</a>
</h2>
</td>
</tr>
session.getAttribute("MSG");
if (msg != null) {
%>
<tr>
%></td>
</tr>
<%
session.removeAttribute("Mess");
51
Grenoweb.Com
} else {
session.setAttribute("Mess", "");
%>
<tr>
<td>
<fieldset>
<legend class="tabHeading">Book
Information</legend>
<table cellpadding="5"
cellspacing="5">
<%
Statement st = null;
ResultSet rs = null;
int i = 0;
try {
con =
connection.Connect.makeCon();
st =
con.createStatement();
52
Grenoweb.Com
rs =
st.executeQuery(Query);
while (rs.next()) {
String a1 =
rs.getString(1);
String a2 =
rs.getString(9);
String a3 =
rs.getString(10);
i++;
%>
<tr>
<td
class="text"> Book Id:</td>
%>"></td>
53
Grenoweb.Com
<td
class="text">User Name:</td>
<td class="text-1"><input
%=userid%>"></td>
</tr>
<tr>
<td
class="text">Contact Details</td>
onblur="mob()" value="<%=a2%>"></td>
<td
class="text">Email Id:</td>
%=a3%>"></td>
</tr>
<%
54
Grenoweb.Com
} catch (Exception e) {
e.printStackTrace();
%>
</table>
</fieldset>
</td>
</tr>
<tr>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
55
Grenoweb.Com
</body>
</html>
Login.java
/*
*/
package connection;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.sql.PreparedStatement;
import java.sql.Connection;
import java.sql.ResultSet;
/**
* @author softavate
*/
56
Grenoweb.Com
int i = 0;
@Override
response)
response.setContentType("text/html;charset=UTF-8");
name = request.getParameter("txtemailid");
password = request.getParameter("txtpass");
try {
con = connection.Connect.makeCon();
pst = con.prepareStatement(query);
rst = pst.executeQuery();
if (rst.next()) {
session.setAttribute("user", name);
session.setAttribute("IMG", img);
response.sendRedirect("Citizen.jsp");
} else {
57
Grenoweb.Com
Password !");
response.sendRedirect("index.jsp");
} catch (Exception e) {
e.printStackTrace();
Signup.jsp
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Grenoweb.Com</title>
/>
<script type="text/javascript"
src="layout/scripts/jquery.slidepanel.setup.js"></script>
<script type="text/javascript"
src="layout/scripts/jquery.cycle.min.js"></script>
<script type="text/javascript">
$(function() {
$('#featured_slide').after('<div id="fsn"><ul
id="fs_pagination">').cycle({
58
Grenoweb.Com
timeout: 5000,
fx: 'fade',
pager: '#fs_pagination',
pause: 1,
pauseOnPagerHover: 0
});
});
</script>
<script type="text/javascript">
function contact(i)
if(i.value.length>0)
function CheckForAlphabets(elem)
if(elem.value.match(alphaExp)){
return true;
}else{
return false;
function mob()
59
Grenoweb.Com
var rl=document.getElementById("number").value;
if(rl.toString().length<10||rl.toString().length>10)
return false;
</script>
<script type="text/javascript">
function valid() {
//alert('calling');
$/;
if(reg.test(address) == false) {
return false;
</script>
<script type="text/javascript">
function pin()
var rl=document.getElementById("txtpwd").value;
if(rl.toString().length<6)
60
Grenoweb.Com
return false;
</script>
<script type="text/javascript">
function validate()
var uname=document.getElementById('uname');
if(uname.value.trim()=="")
return false;
var pwd=document.getElementById('pwd');
if(pwd.value.trim()=="")
return false;
var cpwd=document.getElementById('cpwd');
if(cpwd.value.trim()=="")
return false;
61
Grenoweb.Com
var name=document.getElementById('txtname');
if(name.value.trim()=="")
return false;
var lname=document.getElementById('txtlname');
if(lname.value.trim()=="")
return false;
var gender=document.getElementById('cmbgender');
if(gender.value.trim()=="")
return false;
var dob=document.getElementById('txtdb');
if(dob.value.trim()=="")
return false;
var number=document.getElementById('number');
62
Grenoweb.Com
if(number.value.trim()=="")
return false;
var mail=document.getElementById('txtemail');
if(mail.value.trim()=="")
return false;
var address=document.getElementById('txtaddress');
if(address.value.trim()=="")
return false;
var city=document.getElementById('cmbcity');
if(city.value.trim()=="")
return false;
var pin=document.getElementById('txtpin');
if(pin.value.trim()=="")
63
Grenoweb.Com
return false;
var state=document.getElementById('txtstate');
if(state.value.trim()=="")
return false;
var coun=document.getElementById('cmbcountry');
if(coun.value.trim()=="")
return false;
</script>
<script type="text/javascript">
function validate1(){
if(document.getElementById("uname").value==""){
return false;
64
Grenoweb.Com
if(document.getElementById("pwd").value==""){
return false;
if(document.getElementById("cpwd").value==""){
return false;
if(document.getElementById("txtname").value==""){
return false;
if(document.getElementById("txtid").value==""){
return false;
</script>
<%
"citizen1");
65
Grenoweb.Com
</head>
<body>
<div id="header">
<div id="logo">
<h1><a href="index.jsp">GrenoWeb.Com</a></h1>
</div>
<div id="topnav">
</div>
</div>
</div>
<!--
##################################################
##################################################
### -->
<div id="featured_slide">
</div>
</div>
</div>
<!--
##################################################
66
Grenoweb.Com
##################################################
### -->
<div id="homecontent">
data">
align="center">
session.getAttribute("MSG");
if (msg != null) {
%>
<tr>
align="center" colspan="2"><%=msg%></td>
</tr>
<%
session.removeAttribute("Mess");
} else {
session.setAttribute("Mess", "");
%>
<tr>
<td>
<fieldset>
<legend class="tabHeading">Login
Information</legend>
<tr>
67
Grenoweb.Com
red;"></span> Citizen Id:</td>
gray;">*</span> Citizen Name:</td>
</tr>
<tr>
red;">*</span>Password :</td>
red;">*</span>Confirm Password :</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset>
68
Grenoweb.Com
<legend class="tabHeading">Personal
Information</legend>
<tr>
<td class="text">
Add Profile Image
</td>
<td>
id="txtImage"/>
</td>
</tr>
<tr>
red;">*</span>First Name:</td>
red;">*</span>Last Name :</td>
</tr>
<tr>
red;">*</span>
Gender
</td>
<td class="text">
69
Grenoweb.Com
<select id="cmbgender"name="cmbgender"
style="width: 180px">
<option value="Select"> - - - - - - - - -
Select- - - - - - - - - </option>
<option value="Male">Male</option>
<option
value="Female">Female</option>
</select>
</td>
red;">*</span>Date of Birth</td>
</tr>
<tr>
red;">*</span>Contact Number:</td>
red;">*</span>Email Id:</td>
name="txtemail" onblur="valid()"></td>
</tr>
<tr>
<td class="text">Address:</td>
id="txtaddress" name="txtaddress"></td>
70
Grenoweb.Com
<td class="text">City:</td>
<td>
style="width: 180px;">
</option>
</select>
</td>
</tr>
<tr>
<td class="text">Pin Code:</td>
<td class="text">State:</td>
name="txtstate"></td>
</tr>
<tr>
id="cmbcountry" name="cmbcountry"></td>
</tr>
71
Grenoweb.Com
</table>
</fieldset>
</td>
</tr>
<tr>
validate();"/>
</td>
</tr>
</table>
</form>
</div>
</div>
<!--
##################################################
##################################################
### -->
<!--
##################################################
##################################################
### -->
</body>
</html>
72
Grenoweb.Com
Signup.java
/*
*/
package connection;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.*;
import java.io.*;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.servlet.*;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletConfig;
73
Grenoweb.Com
/**
* @author softavate
*/
PreparedStatement ps = null;
ResultSet rs = null;
74
Grenoweb.Com
@Override
response)
int i = 0;
response.setContentType("text/html");
try {
if (!projectDir.exists()) {
projectDir.mkdirs();
} catch (Exception e) {
e.printStackTrace();
ServletRequestContext(request));
75
Grenoweb.Com
if (isMultipart) {
try {
while (iter.hasNext()) {
if (item.isFormField()) {
if (item.getFieldName().equalsIgnoreCase("txthidden")) {
userid = item.getString();
if (item.getFieldName().equalsIgnoreCase("uname")) {
uname = item.getString();
if (item.getFieldName().equalsIgnoreCase("pwd")) {
password = item.getString();
if (item.getFieldName().equalsIgnoreCase("txtname")) {
fname = item.getString();
if (item.getFieldName().equalsIgnoreCase("txtlname")) {
lname = item.getString();
76
Grenoweb.Com
if (item.getFieldName().equalsIgnoreCase("cmbgender")) {
gender = item.getString();
if (item.getFieldName().equalsIgnoreCase("txtdb")) {
dob = item.getString();
if (item.getFieldName().equalsIgnoreCase("number")) {
contactNo = item.getString();
if (item.getFieldName().equalsIgnoreCase("txtemail")) {
emailid = item.getString();
if (item.getFieldName().equalsIgnoreCase("txtaddress")) {
address = item.getString();
if (item.getFieldName().equalsIgnoreCase("cmbcity")) {
city = item.getString();
if (item.getFieldName().equalsIgnoreCase("txtpin")) {
pincode = item.getString();
if (item.getFieldName().equalsIgnoreCase("txtstate")) {
77
Grenoweb.Com
state = item.getString();
if (item.getFieldName().equalsIgnoreCase("cmbcountry")) {
country = item.getString();
} else {
if (item.getFieldName().equalsIgnoreCase("txtImage")) {
if (!filename.equalsIgnoreCase("")) {
pname = filename.substring(filename.lastIndexOf("."),
filename.length());
pname;
try {
item.write(file3);
status = true;
e1.printStackTrace();
status = false;
78
Grenoweb.Com
} catch (Exception e) {
e.printStackTrace();
status = false;
if (status == true) {
try {
newcitizen(UserID,Image,uname,pass,FirstName,LastName,Gender,DOB,ContactN
o,EmailID,Address,City,PinCode,State,Country)values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
pst = con2.prepareStatement(sqlquery);
pst.setString(1, userid);
pst.setString(2, fullImagepath);
pst.setString(3, uname);
pst.setString(4, password);
pst.setString(5, fname);
pst.setString(6, lname);
pst.setString(7, gender);
pst.setString(8, dob);
pst.setString(9, contactNo);
pst.setString(10, emailid);
pst.setString(11, address);
79
Grenoweb.Com
pst.setString(12, city);
pst.setString(13, pincode);
pst.setString(14, state);
pst.setString(15, country);
i = pst.executeUpdate();
} catch (Exception e) {
e.printStackTrace();
if (i > 0) {
connection.Auto_Gen_ID.updateAutoID("citizen1", userid);
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("NewCitizen1.jsp");
} else {
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("NewCitizen1.JSP");
if (status == false) {
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("NewCitizen1.jsp");
80
Grenoweb.Com
College.jsp
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Grenoweb.Com</title>
/>
<script type="text/javascript"
src="layout/scripts/jquery.slidepanel.setup.js"></script>
<script type="text/javascript"
src="layout/scripts/jquery.cycle.min.js"></script>
<script type="text/javascript">
$(function() {
$('#featured_slide').after('<div id="fsn"><ul
id="fs_pagination">').cycle({
timeout: 5000,
fx: 'fade',
pager: '#fs_pagination',
pause: 1,
pauseOnPagerHover: 0
});
});
</script>
81
Grenoweb.Com
<script type="text/javascript">
function contact(i)
if(i.value.length>0)
function CheckForAlphabets(elem)
if(elem.value.match(alphaExp)){
return true;
}else{
return false;
function mob()
var rl=document.getElementById("contact").value;
if(rl.toString().length<10||rl.toString().length>10)
return false;
82
Grenoweb.Com
</script>
<script type="text/javascript">
function valid() {
//alert('calling');
{2,4})$/;
// var address =
document.forms[form_id].elements[txtemail_id].value;
if(reg.test(address) == false) {
return false;
</script>
<script type="text/javascript">
function pin()
var rl=document.getElementById("txtpwd").value;
if(rl.toString().length<6)
return false;
</script>
83
Grenoweb.Com
<%
"colle");
</head>
<body>
<div id="header">
<div id="logo">
<h1><a href="index.jsp">GrenoWeb.Com</a></h1>
</div>
<div id="topnav">
</div>
</div>
</div>
<!--
##################################################
##################################################
### -->
<div id="featured_slide">
84
Grenoweb.Com
</div>
</div>
</div>
<!--
##################################################
##################################################
### -->
<div id="homecontent">
data">
align="center">
<tr>
<td>
<h2>
</h2>
</td>
</tr>
<tr>
<td>
<h2>
Details</a>
</h2>
</td>
</tr>
85
Grenoweb.Com
if (msg != null) {
%>
<tr>
align="center" colspan="2"><%=msg%></td>
</tr>
<%
session.removeAttribute("Mess");
} else {
session.setAttribute("Mess", "");
%>
<tr>
<td>
<fieldset>
<legend class="tabHeading">College
Information</legend>
<tr>
<td class="text"> Id:</td>
<td class="text"> Name:</td>
id="uname" name="uname"></td>
</tr>
<tr>
<td class="text">
86
Grenoweb.Com
Address:
</td>
name="txtaddress" id="txtaddress">
</textarea>
</td> <td
class="text">Contact Details</td>
</tr>
<tr>
<td class="text">Email Id:</td>
name="txtemail" onblur="valid()"></td>
<td class="text">
Add Description
</td>
<td>
id="txtImage"/>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
87
Grenoweb.Com
<tr>
</td>
</tr>
</table>
</form>
</div>
</div>
<!--
##################################################
##################################################
### -->
<!--
##################################################
##################################################
### -->
</body>
</html>
COLLEGE.JAVA
/*
88
Grenoweb.Com
*/
package connection;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.*;
import java.io.*;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.servlet.*;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.ServletConfig;
/**
* @author softavate
89
Grenoweb.Com
*/
PreparedStatement ps = null;
ResultSet rs = null;
String a1 = null;
String a2 = null;
String a3 = null;
String a4 = null;
String a5 = null;
String a6 = null;
@Override
HttpServletResponse response)
90
Grenoweb.Com
int i = 0;
response.setContentType("text/html");
try {
if (!projectDir.exists()) {
projectDir.mkdirs();
} catch (Exception e) {
e.printStackTrace();
91
Grenoweb.Com
boolean isMultipart =
ServletFileUpload.isMultipartContent(new
ServletRequestContext(request));
if (isMultipart) {
try {
while (iter.hasNext()) {
if (item.isFormField()) {
if
(item.getFieldName().equalsIgnoreCase("txthidden")) {
a1 = item.getString();
if
(item.getFieldName().equalsIgnoreCase("uname")) {
a2 = item.getString();
if
(item.getFieldName().equalsIgnoreCase("txtaddress")) {
92
Grenoweb.Com
a3 = item.getString();
if
(item.getFieldName().equalsIgnoreCase("contact")) {
a4 = item.getString();
if
(item.getFieldName().equalsIgnoreCase("txtemail")) {
a5 = item.getString();
} else {
if
(item.getFieldName().equalsIgnoreCase("txtImage")) {
if (!filename.equalsIgnoreCase("")) {
pname =
filename.substring(filename.lastIndexOf("."), filename.length());
93
Grenoweb.Com
fullfilename + pname;
try {
item.write(file3);
status = true;
e1.printStackTrace();
status = false;
} catch (Exception e) {
e.printStackTrace();
status = false;
if (status == true) {
try {
94
Grenoweb.Com
collegedetails(a1,Image,a2,a3,a4,a5)values(?,?,?,?,?,?)";
pst = con2.prepareStatement(sqlquery);
pst.setString(1, a1);
pst.setString(2, fullImagepath);
pst.setString(3, a2);
pst.setString(4, a3);
pst.setString(5, a4);
pst.setString(6, a5);
i = pst.executeUpdate();
} catch (Exception e) {
e.printStackTrace();
if (i > 0) {
connection.Auto_Gen_ID.updateAutoID("colle", a1);
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("College.jsp");
95
Grenoweb.Com
} else {
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("College.JSP");
if (status == false) {
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("College.jsp");
CHEPTER-7
96
Grenoweb.Com
TESTING
TESTING
97
Grenoweb.Com
Testing is in order to access what the system actually does and how
Levels of Testing
Unit Testing
System Testing
Acceptance Testing
Unit Testing
programmer (Who develops it) who can test it in great detail. The
larger structure, the testing process should look for errors in two
ways:-
98
Grenoweb.Com
group
System Testing
specification are used to derive the test case. At this level the system
Acceptance Testing
errors.
working practices to ensure that the computer software will fit into
99
Grenoweb.Com
installed:
not use.
100
Grenoweb.Com
one.
TESTING OBJECTIVES
Functional simplicity
Debugging
101
Grenoweb.Com
Characteristics of bugs
situation.
error is connected.
round-Off inaccuracies).
easily traced.
102
Grenoweb.Com
ordering is indeterminate).
software inextricably.
Validation Checks
1) Intrinsic control: In this control text Box, label, drop down list
103
Grenoweb.Com
CompareToValidate.
a) String
b) Integer
c) Double
d) Date
e) Currency
a) Equal
b) No Equal
c) Greater Than
e) Less than
a) Min
b) Max
104
Grenoweb.Com
CODE EFFICIENCY
105
Grenoweb.Com
requirement.
structure.
sortable.
106
Grenoweb.Com
structure.
107
Grenoweb.Com
OPTIMIZATION OF CODE
problem alone but the one that does it efficiently. An ideal compiler
in limited, cases and that too with difficulty. Nonetheless, the code
108
Grenoweb.Com
per cent of their execution time in ten percent of the code. While
the actual percentages may vary, it is often the case that a small
while and for statements, the loops may be evident from the syntax
109
Grenoweb.Com
CHEPTER-8
110
Grenoweb.Com
Signup Form
Login
111
Grenoweb.Com
ADMIN HOME
Enquiry List
112
Grenoweb.Com
BOOK DETAILS
PACKERS DETAILS
113
Grenoweb.Com
ADD GYM
114
Grenoweb.Com
CHEPTER-9
Implementation of Security
115
Grenoweb.Com
needed.
Associates User.
of Users.
116
Grenoweb.Com
data Storage.
User Level:
User are does not change Health, Transport Information. Its only
View Information and its allowed after fill own profile and then
Administrator Level:
also allow user view bride picture and groom picture information.
117
Grenoweb.Com
CHAPTER-9
Future Application
& Conclusion of the
Project
118
Grenoweb.Com
does not support any help facility for the users of the
location.
word.
119
Grenoweb.Com
CONCLUSION
There was a lot of fun in making this project. This project was very useful
to us as it provided us the inside view of the planning and implementation
of the data base. In this project we had to think about the various options
which we can provide to user. The implementation was not easy as we
had to look into the minute details in order to achieve my goals. We have
tried to make this project user friendly and also interactive by providing
many features.
We are satisfied by achieving the goals for which we had planned. A lot
of experimental work can be done with this project. Looking forward for
any advice which can help us to improve the project.
120
Grenoweb.Com
CHAPTER-11
Bibliography
121
Grenoweb.Com
C Desai
Rambagh
122