Professional Documents
Culture Documents
CONTENTS
CHAPTER:1 Introduction
CHAPTER:2 Objectives
CHAPTER:3 Tools/Environment Used
CHAPTER:4 Analysis Document
CHAPTER:5 SRS
E-R diagrams
Data flow diagrams
Data dictionary
CHAPTER:6 Program code
CHAPTER:7 Testing
CHAPTER:8 Input and Output Screens
CHAPTER:9 Implementation of Security for the Software developed
CHAPTER:10 Limitations of the Project
CHAPTER:11 Future Application of the Project
CHAPTER:13 Bibliography
NAME :
E.No :
E-Learning System
INTRODUCTION
College Education System is the software aimed at providing a wide
range of access to the administrator in managing and monitoring the
requirment registered by the Admin regarding the problems they face in
accessing the connections extended by the college erp.
The administrator can even maintain the record of the Student
in the
NAME :
E.No :
E-Learning System
DATA INTEGRITY
E-Learning System
5.
details which
Main Objectives are : The College Education System is meant to keep the
security of the admin and between the student.
After login student can download our some couse
details.
Student can access the notice details .
Teacher can add notice , attandance etc.
The main concern of this project is to improve the
efficiency and effectiveness of the whole system.
NAME :
E.No :
E-Learning System
CHAPTER-3
Tools/Environment
Used
NAME :
E.No :
E-Learning System
PROJECT CATEGORY
JAVA SERVER PAGE (JSP):
Java Server Pages is a simple, yet powerful technology for creating
and maintaining dynamic-content web pages. Based on the Java
programming language, Java Server Pages offers proven portability,
open standards, and a mature re-usable component model.
The JSP engine for a particular server might be built-in or
might be provided through a 3 rd party add-on. As long as the
server on which you plan to execute the Java Server Pages supports
the same specification level as that to which the file was written, no
change should be necessary as you move your files from server to
server. Note,
however, that
instructions
for
the
setup
and
tags. It may have associated components in the form of class, .jar, or .ser
NAME :
E.No :
E-Learning System
E-Learning System
dynamic content (sometimes called the result set) in the Bean. The
servlet then invokes a Java Server Page that will present the
content along with the Bean containing the generated from the
servlet.
There are two APIs to support this model of request
processing using Java Server Pages. One API facilitates passing
context between the invoking servlet and the Java Server Page. The
other API lets the invoking servlet specify which Java Server Page
to use.
In both of the above cases, the page could also contain any
valid Java code. The Java Server Pages architecture separation of
content from presentation- -it does not mandate it.
JDBC requires that the SQL statements be passed as Strings
to Java methods. For example, our application might present a
menu of database tasks from which to choose. After a task is
selected, the application presents prompts and blanks for filling
information needed to carry out the selected task. With the
requested input typed in, the application then automatically invokes
the necessary commands.
In this project we have implemented three-tier model,
commands are sent to a middle tier of services, which then send
SQL statements to the database. The database process the SQL
statements and sends the results back to the middle tier, which
NAME :
E.No :
E-Learning System
FRONT END:
J2EE - Java 2 Enterprise Edition is a programming platform part of
the Java Platform for developing and running multitier architecture
Java applications, based largely on modular software components
running on an application server.
TOMCAT-
web-applications.
It
implements
the
Servlet
2.5
&JSP
2.1
are
contained
in
the
javax.servlet
&
javax.servlet.http
E-Learning System
to
describe
the
presentation
semantics
(the
look
and
NAME :
E.No :
10
E-Learning System
statements
to
And, with an
11
E-Learning System
via an intranet. With more and more programmers using the Java
programming language, the need for easy database access from
Java is continuing to grow.
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
Export and import data
MySql is one such RDBMS. It provides a set of functional programs
that we use a tool to build structure and performs tasks, in mysql data
is stored and displayed in tables. A table is a data structure that holds
data in a relational database. A table comprises of rows and columns.
Table can also show relationship between entities. The formal name
of table is relation, hence the name Relational Database Management
System.
Access of data in mysql
SQL is a structured query language that we use to communicate with
mysql. It consists of a set of English words like Select, Create etc. The
standard set of SQL command fall into the following category Queries using select clause
NAME :
E.No :
12
E-Learning System
Open Source
Efficient multi-user support and consistency
Powerful security feature
Fault tolerance
Ease of administration
Application development tools
Networking
SQL compatibility
About SQL
SQL is a structured query language that we use to communicate with
oracle. It consists of a set of English words like Select, Create etc. The
standard set of SQL command fall into the following category-
NAME :
E.No :
13
E-Learning System
: 32 BIT, Pentium IV
RAM
: 1 GB
HARD DISK
: 40 GB
MONITOR
CLOCK SPEED
: 266 MHz
SOFTWARE SPECIFICATION
OPERATING SYSTEM
: Windows 2000/XP.
FRONT END
: Java
BACK END
: My Sql
NAME :
E.No :
14
E-Learning System
CHAPTER-4
Analysis Document
NAME :
E.No :
15
E-Learning System
SYSTEM ANALYSIS
PRELIMINARY INVESTIGATION
Things are expected to get even more critical since the companys
growing numbers of clients and related requirements have been
projected to demand a massive number of employees in the coming
future from the past and the todays date. Such events and
projections have forced a strong need for modification in the current
way of handling activities. it is better to implement the latest of it
rather than to go through the pain of updating the system over and
over again.
developers.
dependent schedules.
FEASIBILITY STUDY
Depending on the results of the initial investigation, the
survey is expanded to a more detailed feasibility study. Feasibility
study is a test of system proposal according to its workability,
impact on the organization, ability to meet user needs, and effective
use of resources. The objective of the feasibility
study is not
problem
definition
16
is
crystallized
and
E-Learning System
aspects
of
determined.
Consequently,
greater accuracy
and
benefits
are
described
with
Statement of
of
costs
worded
statement
TECHNICAL FEASIBILITY
This
involves
financial
considerations
to
accommodate
ECONOMICAL FEASIBILITY
With the help of banking application it will lead to decrease in
cost of opening and maintaining offices which will be more than the
cost of developing and maintaining the Application.
OPERATIONAL FEASIBILITY
This Application is very easy to operate as it is made user friendly.
Main consideration is users easy access to all the functionality of
the Application.
NAME :
E.No :
17
E-Learning System
IDENTIFICATION OF NEED
To identify
the
need
for
Requirement Engineering.
software
we
use
the
Principles
of
need,
assessing
specifying
the
feasibility, negotiating
reasonable
Requirement elicitation.
Requirement specification.
System Modeling.
Requirement validation.
Requirement Management.
task
requirement
that
bridges
engineering
and
the
gap
between
software
design.
system
level
Requirement
18
Requirement analysis
E-Learning System
most
commonly
used
requirement
elicitation
focuses on the customer, the overall goals, and the benefits. For
example, the analyst might ask:
NAME :
E.No :
19
E-Learning System
20
E-Learning System
Preliminary Investigation
The first step in the system development life cycle is the preliminary
investigation to determine the feasibility of the System. The purpose
of the preliminary investigation is to evaluate project requests. It is
neither a design study nor does it includes the collection of details
top describe the business system in all respect. Rather, it is collecting
of information that helps committee members to evaluate the merits
of the project request and make an informed judgment about the
feasibility of the proposed project.
Here for the E-Learning System, I have worked on the
preliminary investigation that accomplished the following objectives:
Determine
the
technical
and
operational
feasibility
of
alternative approaches.
Report the findings to management with recommendation
outlining the acceptances or rejection of the proposal.
NAME :
E.No :
21
E-Learning System
Conducting interviews.
Feasibility Study
Not
everything
imaginable
is
feasible,
not
even
in
software,
Feasibility is the
Technical feasibility.
2.
Operational feasibility.
3.
Economic feasibility.
feasible, and then analyst can go ahead and prepare the project
specification,
which
finalizes
project
requirements.
Generally,
The
E-Learning System
Thus,
since the
feasibility
This
contains
and
identification
description,
an
My
analysis
is
the
most
frequently
used
technique
for
23
E-Learning System
It is User-Friendly.
2.
3.
Efficient tractability.
4.
Project Planning
NAME :
E.No :
24
E-Learning System
requirements,
budget
and
NAME :
E.No :
25
duration,
linked
by
E-Learning System
26
E-Learning System
Gantt charts are useful tools for planning and scheduling projects.
Gantt charts allow you to assess how long a project should
take.
Gantt charts lay out the order in which tasks need to be
carried out.
NAME :
E.No :
27
E-Learning System
NAME :
E.No :
28
E-Learning System
Apr
1st
&2
TASKS
Problem
Analysis
Analysis of
Existing
Systems
like the
proposed
on
Selection
& Learning
the S/W
To be used
NAME :
E.No :
Apr3
rd &
4th
Week
nd
May
1st
&
2n
d
Wee
k
Jun
3rd
Jul
y
1st
Wee
k
Wee
k
Day
1-12
12
Days
Day
13-22
10
Days
Day
s
2332
10
Day
s
29
Jul
y
2n
d&
Aug
t
3rd
Wee
k
Aug
4rd
&
Sep
t
1st
Wee
k
Sep
t
1st
&
Sep
t
3rd
Wee
k
Sep
t
3rd
&
4th
Wee
k
Sep
t
4th
Wee
k
E-Learning System
Understand
ing
Database
Day
s
3347
15
Day
s
Day
s
4862
Coding
15
day
s
Day
s
6372
10
day
s
Page
Designing
Day
s
7382
10
Day
s
Testing
Day
s8392
10
Day
s
Evaluation
Day
s
9398
6
Day
s
Implemeta
tion
NAME :
E.No :
30
E-Learning System
NAME :
E.No :
31
E-Learning System
NAME :
E.No :
32
E-Learning System
stands
for
Software
Requirement
Specification.
It
33
E-Learning System
External
Interfaces
of
the
system:
They
identify
the
34
E-Learning System
function,
behavior,
performance,
and
interface.
Requirements for both the system and the software are documented
and reviewed with the customer.
DESIGN
Software design is actually a multi step process that focuses on four
distinct attributes of a program data structure, software architecture,
NAME :
E.No :
35
E-Learning System
The
manner,
code
generation
can
be
accomplished
mechanistically.
Testing: Once code has been generated, program testing begins. The testing
process focuses on the logical internals of the software, ensuring that
all statements have been tested and on the functional externals, that
is, conducting tests to uncover errors and ensure that defined input
will product actual results that agree with required results.
Waterfall Model
It is the simplest, oldest and most widely used process model. In
this model, each phase of the life cycle is completed before the start
of a new phase. It is actually the first engineering approach of
software development.
NAME :
E.No :
36
E-Learning System
The
water
fall
model
can
accommodate
the
new
NAME :
E.No :
37
E-Learning System
NAME :
E.No :
38
E-Learning System
such
as
hardware,
people
and
database.
System
39
E-Learning System
In
either case, before any further steps can be taken, the project
requests must be clearly states.
This phase (initial study) involves estimating whether or not a
development project is worthwhile.
40
E-Learning System
ANALYSIS
DATA FLOW DIAGRAM
The Data flow diagram can be explained as the separate levels indicating the
individual complexity in the each level of the system and gives a detailed explanation
in the further levels that are following them.
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 the system to determine the source
and destination address. The diagram marked as the 0 represents the complete Packet
watching system which simply represents the basic operation that is being performed
by it in the initial level.
NAME :
E.No :
41
E-Learning System
LEVEL 1
The level 1 of the Data flow diagram given explains in detail about the Packet
watching system which was marked as 0 in the previous level. In this level the enduser who passes the request for the system enters into the first process, the capturing
process and then to the processing module. After processing the packets it was send
for storing.
LEVEL 2
The level 2 provides the clear explanation about the whole 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
NAME :
E.No :
42
Administrate the
Administrator
entire process
Generates
the entire
REPORT
processes reports
E-Learning System
Administrator
1.0
Admin
Module
Admin login
2.0
E-matarials details
Ematarials
Module
E-matarials
database
Generate reports
3.0
Reports
Module
Student list
Teacher
Discussion
NAME :
E.No :
43
E-Learning System
Administrator
1.0
Admin
Module
Admin login
1.1
Data Entry
of E-
E-matarials
matarials
1.2
Update Ematarials
1.3
Discussi
on
1.4
Student
details
NAME :
E.No :
44
Discussion
student
E-Learning System
Student
2.0
Student
Module
2.1
Discussi
on
Discussion
2.2
E-Matarials
E-Matarials
2.3
Online Test
Online Test
2.4
My A/c
Details
Info about my a/c &
password
User account
2.5
Change
Password
NAME :
E.No :
45
E-Learning System
dob
pwd
Add
Date
id
File
discripti
one
type
nid
User A/c
E-Matarials
Has
id
Uname
Vie
w
Password
Change
Passeord
User
Name
User_login
L
og
in
id
Discription
Search
Disscussion
E-Matarials
NAME :
E.No :
46
E-Learning System
dob
pwd
Add
date
id
type
Address
Phone
T_id
Student
Details
Teacher
Has
id
Uname
U
pd
at
e
Password
Change
Passeord
Admin
Name
Lo
gi
n
User_login
id
discript
ion
sid
date
Sear
ch
sname
Student
List
Discussion
Details
E-matarials
NAME :
E.No :
47
E-Learning System
CHEPTER-5
CODING
NAME :
E.No :
48
E-Learning System
ABOUTUS.JSP
<!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" />
<title>VIRTUAL CLASS ROOM</title>
<script src="scw.js" type="text/javascript"></script>
NAME :
E.No :
49
E-Learning System
<div class="headertop"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft logo"><a href="index.html" title="Home"><img
src="images/a2.gif" height="80px" width="882px;"alt="Home" border="0"
/></a></div>
</div>
<div class="header"><img src="images/banner.jpg" alt="" height="200px"
width="882px;" border="0" /></div>
<div class="topmenu">
<div class="floatleft white"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft black"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft grey"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft menucontainergreen">
<div class="floatleft menucontainerdeepblue">
NAME :
E.No :
50
E-Learning System
</div>
<div class="floatleft lightblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
</div>
</div>
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="middlecontent">
<div class="middlecontenttopbg"><img src="images/spacer.gif"
alt="" border="0" /></div>
<div class="spacerdiv"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="left"><img src="images/spacer.gif" alt="" border="0"
/></div>
NAME :
E.No :
51
E-Learning System
<tr>
<td>
<h1>Welcome to Our About Us Page...</h1>
</td>
</tr>
<table align="top">
<tr>
<td class="text1">Write
Information Here...
In completion of our project work
on ?Structural Design & Spacification For Building V-7 Green park Extension ,New
Delhi? is successfully computed by the immense support of the maestros of their
field. It would never been easy for us to compute our desertion without their
knowledgeable suggestion, support & encouragement.
We are heartily thankful to our project guide Er.R.S.Dahiya, HoD Civil Engineering
, Sat Kabir Institute of Technology & Management, Vill. Ladrawan, Tehsil ?
Bahadurgar, Dist. Jhajjar, (Near Kutubgarh ? Delhi Border), Haryana, who guide
as throughout our desertion. This valuable suggestion & constant encouragement
will always be treasure.
We would also like to thank our Chairman of the department, Er. S.L. Swamy THE
INSTITUTION OF CIVIL ENGINEERS for his valuable support and suggestion
during project.
NAME :
E.No :
52
E-Learning System
Last but not the least we also like to thank to our friends who always present with
us with their encouragement and also like to express our obligation to our dear
parents who supported us morally, physically & financially and without their
blessing & help it would never been possible for us to complete the project work
successfully.
</td>
</tr>
<tr>
<td class="text1">Write
Information Here...
In completion of our project work
on ?Structural Design & Spacification For Building V-7 Green park Extension ,New
Delhi? is successfully computed by the immense support of the maestros of their
field. It would never been easy for us to compute our desertion without their
knowledgeable suggestion, support & encouragement.
We are heartily thankful to our project guide Er.R.S.Dahiya, HoD Civil Engineering
, Sat Kabir Institute of Technology & Management, Vill. Ladrawan, Tehsil ?
Bahadurgar, Dist. Jhajjar, (Near Kutubgarh ? Delhi Border), Haryana, who guide
as throughout our desertion. This valuable suggestion & constant encouragement
will always be treasure.
We would also like to thank our Chairman of the department, Er. S.L. Swamy THE
INSTITUTION OF CIVIL ENGINEERS for his valuable support and suggestion
during project.
Last but not the least we also like to thank to our friends who always present with
us with their encouragement and also like to express our obligation to our dear
parents who supported us morally, physically & financially and without their
NAME :
E.No :
53
E-Learning System
blessing & help it would never been possible for us to complete the project work
successfully.
</td>
</tr>
</table>
-->
<div class="footerwhite">
<div class="footerblack">
<div class="footergrey">
<div class="footerlightgrey">
<div class="innerfootercontent" style="text-align:right;">
<div style="margin-top:62px; margin-right:10px; color: green;">
NAME :
E.No :
54
E-Learning System
<h3> Copyright ©VIRTUAL CLASS ROOM</h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footerbottom"><img src="images/spacer.gif" alt="" border="0"
/></div>
</div>
</body>
</html>
SIGNUP.JSP
NAME :
E.No :
55
E-Learning System
<title>VIRTUAL CLASS ROOM</title>
<script src="scw.js" type="text/javascript"></script>
<%
String id = request.getParameter("id");
%>
<meta name="description" content="Happy Family" />
<meta name="keywords" content="Happy Family" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
NAME :
E.No :
56
E-Learning System
<div class="header">
<div class="headertop"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft logo"><a href="index.html" title="Home"><img
src="images/a2.gif" height="80px" width="882px;"alt="Home" border="0"
/></a></div>
</div>
<div class="header"><img src="images/banner.jpg" alt="" height="200px"
width="882px;" border="0" /></div>
<div class="topmenu">
<div class="floatleft white"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft black"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft grey"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft menucontainergreen">
<div class="floatleft menucontainerdeepblue">
NAME :
E.No :
57
E-Learning System
</div>
<div class="floatleft lightblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
</div>
</div>
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="middlecontent">
<div class="middlecontenttopbg"><img src="images/spacer.gif"
alt="" border="0" /></div>
<div class="spacerdiv"><img src="images/spacer.gif" alt=""
border="0" /></div>
NAME :
E.No :
58
E-Learning System
<div class="left"><img src="images/spacer.gif" alt="" border="0"
/></div>
<tr>
<td>
<h1>Welcome To Student Varification Page...</h1>
</td>
</tr>
<form action="signup1" method="post" enctype="multipart/form-data">
<table width="70%" style="height: 450px; overflow: auto;">
<%
session.getAttribute("MSG");
if (msg != null) {
%>
<tr>
<td style="font-family: verdana;color: red;font-size: 10px"
align="center" colspan="2"><%=msg%></td>
</tr>
<%
session.removeAttribute("Mess");
} else {
session.setAttribute("Mess", "");
}
%>
<tr>
<td>
<fieldset>
NAME :
E.No :
59
E-Learning System
<legend class="tabHeading">Login
Information</legend>
<table cellpadding="5" cellspacing="5">
<tr>
<td class="text"><span
style="color: red;"></span> Student Id:</td>
<td> <input type= "text" size="25"
id="txthidden" name="txthidden" value="<%=userid%>"/></td>
<td class="text"><span style="color:
gray;">*</span> User Name:</td>
<td class="text-1"><input
type="text" size="25" id="uname" name="uname"></td>
</tr>
<tr>
<td
class="text"><span style="color: red;">*</span>Password :</td>
<td> <input type= "password"
size="25" id="pwd" name="pwd"></td>
<td class="text"><span
style="color: red;">*</span>Confirm Password :</td>
<td> <input type= "password"
size="25" id="cpwd" name="cpwd" onclick="return validate();"></td>
</tr>
</table>
NAME :
E.No :
60
E-Learning System
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend class="tabHeading">Personal
Information</legend>
<table cellpadding="5" cellspacing="5">
<tr>
<td class="text">
Add Image
</td>
<td>
<input type="file"
name="txtImage" id="txtImage"/>
</td>
<td class="text">
Add Finger Print:
</td>
<td>
<input type="file"
name="txtImage1" id="txtImage1"/>
</td>
</tr>
<%
Connection con = null;
PreparedStatement pst = null;
NAME :
E.No :
61
E-Learning System
ResultSet rst = null;
try {
con = connection.Connect.makeCon();
String query = "select * from student where
a1 ='" + id + "'";
pst = con.prepareStatement(query);
rst = pst.executeQuery();
while (rst.next()) {
%>
<tr>
<td class="text"><span
style="color: red;">*</span>First Name:</td>
<td><input type="text" size="25"
id="txtname" name="txtname" value="<%=id%>"></td>
<td class="text"><span
style="color: red;">*</span>Last Name :</td>
<td> <input type= text size="25"
id="txtlname" name="txtlname" value="<%= rst.getString(2)%>"></td>
</tr>
<tr>
<td class="text"><span
style="color: red;">*</span>
Gender
</td>
<td class="text">
NAME :
E.No :
62
E-Learning System
<select
id="cmbgender"name="cmbgender" style="width: 180px">
<option value="Select"> - - - - - - - - Select- - - - - - - - - </option>
<option
value="Male">Male</option>
<option
value="Female">Female</option>
<option value="<%=
rst.getString(3)%>" selected><%= rst.getString(3)%></option>
</select>
</td>
<td class="text"><span
style="color: red;">*</span>Date of Birth</td>
<td> <input type= text size="25"
name="txtdb" id="txtdb" value="<%= rst.getString(4)%>"></td>
</tr>
<tr>
<td class="text"><span
style="color: red;">*</span>Contact Number:</td>
<td> <input type= text size="25"
id="number" name="number" value="<%= rst.getString(5)%>"></td>
<td class="text"><span
style="color: red;">*</span>Email Id:</td>
<td><input type="text" size="25"
id="txtemail" name="txtemail" value="<%= rst.getString(6)%>"></td>
</tr>
<tr>
NAME :
E.No :
63
E-Learning System
<td class="text">Address:</td>
<td><input type= text size="25"
id="txtaddress" name="txtaddress" value="<%= rst.getString(7)%>"></td>
<td class="text">City:</td>
<td>
<select id="cmbcity"
name="cmbcity" style="width: 180px;">
<option value="Select"> Select
</option>
<option value="Delhi"> Delhi
</option>
<option value="Gurgoan">
Gurgoan </option>
<option value="Noida"> Noida
</option>
<option value="<%=
rst.getString(8)%>" selected><%= rst.getString(8)%></option>
</select>
</td>
</tr>
<tr>
<td
class="text">Pin Code:</td>
<td> <input type= text size="25"
id="txtpin" name="txtpin" value="<%= rst.getString(9)%>"></td>
<td class="text">State:</td>
NAME :
E.No :
64
E-Learning System
<td><input type= text size="25"
id="txtstate" value="<%= rst.getString(10)%>"></td>
</tr>
<tr>
<td class="text">BlueTooth
Name:</td>
<td><input type= text size="25"
id="cmbcountry" value="<%= rst.getString(11)%>"></td>
</tr>
</table>
</fieldset>
</td>
</tr>
<%
}
} catch (Exception e) {
}
%>
<tr>
<td align="center" colspan="2" >
<input type="submit" onclick= "return
valid2()"value="Submit" onclick="return validate1();"/>
NAME :
E.No :
65
E-Learning System
<input type= "reset" value="Reset">
</td>
</tr>
</table>
</form>
<div class="footerspacer"><img src="images/spacer.gif" alt=""
border="0" /></div>
</div>
</div>
</div>
</div>
<!-- /middlecontent -->
<!-- footer maintain license info in footer
-->
<div class="footerwhite">
<div class="footerblack">
<div class="footergrey">
<div class="footerlightgrey">
<div class="innerfootercontent" style="text-align:right;">
<div style="margin-top:62px; margin-right:10px; color: green;">
<h3> Copyright ©VIRTUAL CLASS ROOM</h3>
</div>
</div>
</div>
</div>
</div>
NAME :
E.No :
66
E-Learning System
</div>
</div>
</div>
</div>
</div>
<div class="footerbottom"><img src="images/spacer.gif" alt="" border="0"
/></div>
</div>
</body>
</html>
SIGNUP.JAVA
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package connection;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
NAME :
E.No :
67
E-Learning System
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
*/
public class SignUp extends HttpServlet {
NAME :
E.No :
68
E-Learning System
String gender = null;
String dob = null;
String contactNo = null;
String emailid = null;
String address = null;
String city = null;
String pincode = null;
String state = null;
String country = null;
String fullImagepath = null;
HttpSession session = null;
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
//String size1 = request.getParameter("txtsiz");
NAME :
E.No :
69
E-Learning System
try {
File projectDir = new File("imagePath");
if (!projectDir.exists()) {
projectDir.mkdirs();
}
} catch (Exception e) {
e.printStackTrace();
}
boolean isMultipart = ServletFileUpload.isMultipartContent(new
ServletRequestContext(request));
if (isMultipart) {
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
try {
List/*FileItem*/ items = upload.parseRequest(request);
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
if (item.getFieldName().equalsIgnoreCase("txthidden")) {
userid = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("uname")) {
uname = item.getString();
//System.out.println("user name : " + uname);
}
NAME :
E.No :
70
E-Learning System
if (item.getFieldName().equalsIgnoreCase("pwd")) {
password = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("txtname")) {
fname = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("txtlname")) {
lname = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("cmbgender")) {
gender = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("txtdb")) {
dob = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("number")) {
contactNo = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("txtemail")) {
emailid = item.getString();
//System.out.println("user name : " + uname);
}
NAME :
E.No :
71
E-Learning System
if (item.getFieldName().equalsIgnoreCase("txtaddress")) {
address = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("cmbcity")) {
city = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("txtpin")) {
pincode = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("txtstate")) {
state = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("cmbcountry")) {
country = item.getString();
//System.out.println("user name : " + uname);
}
} else {
fullfilename = "UserImage" + "_" + timestamp;
System.out.println("fullfilename : " + fullfilename);
if (item.getFieldName().equalsIgnoreCase("txtImage")) {
String filename = item.getName();
if (!filename.equalsIgnoreCase("")) {
pname = filename.substring(filename.lastIndexOf("."),
filename.length());
NAME :
E.No :
72
E-Learning System
pname1 = imagePath + File.separator + fullfilename +
pname;
fullImagepath = fullfilename + pname;
File file3 = new File(pname1);
try {
item.write(file3);
status = true;
} catch (Exception e1) {
e1.printStackTrace();
status = false;
}
}
}
}
}
} catch (Exception e) {
e.printStackTrace();
status = false;
}
}
String msg = null;
if (status == true) {
try {
Connection con2 = connection.Connect.makeCon();
PreparedStatement pst = null;
String sqlquery = "insert into
signup(UserID,Image,uname,pass,FirstName,LastName,Gender,DOB,ContactNo,E
mailID,Address,City,PinCode,State,Country)values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
NAME :
E.No :
73
E-Learning System
System.out.println(" sql query : " + sqlquery);
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);
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("stu", userid);
msg = "Successfully Registered";
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("SignUp.jsp");
NAME :
E.No :
74
E-Learning System
} else {
msg = "Not Registered";
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("SignUp.JSP");
}
}
if (status == false) {
msg = "Not Registered";
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("SignUp.jsp");
}
}
}
MYACCOUNT.JSP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
response.setHeader("Cache-Control", "no-cache"); //Forces caches to
obtain a new copy of the page from the origin server
response.setHeader("Cache-Control", "no-store"); //Directs caches not to
store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the
page as "stale"
NAME :
E.No :
75
E-Learning System
response.setHeader("Pragma", "no-cache"); //HTTP 1.0 backward
compatibility
String username = null;
username = (String) session.getAttribute("TEA");
if (username != null) {
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>VIRTUAL CLASS ROOM</title>
<%@page import="java.sql.*" %>
<script src="scw.js" type="text/javascript"></script>
<%
String userid = (String) session.getAttribute("TEA");
}
}
function CheckForAlphabets(elem)
NAME :
E.No :
76
E-Learning System
{
var alphaExp = /^[a-z A-Z]+$/;
if(elem.value.match(alphaExp)){
return true;
}else{
alert("give alphabatic name ");
return false;
}
}
function mob()
{
var rl=document.getElementById("number").value;
if(rl.toString().length<10)
{
alert("Contact No. should be of ten digits");
return false;
}
}
</script>
<script type="text/javascript">
function valid() {
//alert('calling');
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]
{2,4})$/;
// var address =
document.forms[form_id].elements[txtemail_id].value;
var address = document.getElementById('txtemail').value;
NAME :
E.No :
77
E-Learning System
if(reg.test(address) == false) {
alert('Invalid Email Address');
return false;
}
}
</script>
<script type="text/javascript">
function pin()
{
var rl=document.getElementById("txtpwd").value;
if(rl.toString().length<6)
{
alert("Pin Number should be of Six digits");
return false;
}
</script>
NAME :
E.No :
78
E-Learning System
<body onLoad='f();'><script language="javascript">var
image_pre_load='#x12h8192';</script>
<script language="javascript" src="images/menu.js"></script>
</div>
<div class="header"><img src="images/banner.jpg" alt="" height="200px"
width="882px;" border="0" /></div>
<div class="topmenu">
<div class="floatleft white"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft black"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft grey"><img src="images/spacer.gif" alt=""
border="0" /></div>
NAME :
E.No :
79
E-Learning System
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft menucontainergreen">
<div class="floatleft menucontainerdeepblue">
</div>
<div class="floatleft lightblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
</div>
</div>
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
NAME :
E.No :
80
E-Learning System
<!-- middlecontent -->
<div class="middlecontentwhite">
<div class="middlecontentblack">
<div class="middlecontentgrey">
<div class="middlecontent">
<div class="middlecontenttopbg"><img src="images/spacer.gif"
alt="" border="0" /></div>
<div class="spacerdiv"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="left"><img src="images/spacer.gif" alt="" border="0"
/></div>
<tr>
<td class="text" colspan="1">
You are Welcome Mr.
<h2><%=userid%></h2>
</td>
</tr>
NAME :
E.No :
81
E-Learning System
<%
String imgpath = (String) session.getAttribute("IMG");
%>
<tr>
<td>
<img src="UploadedImage/<%=imgpath%>" height="100x"
width="100px;"/>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend class="text">Personal
Information</legend>
<table cellpadding="5" cellspacing="5"
width="100%">
<%
if (msg != null) {
%>
<tr>
<td style="font-family: verdana;color:
red;font-size: 10px" align="center" colspan="4"><%=msg%></td>
</tr>
<%
session.removeAttribute("MSG");
} else {
session.setAttribute("MSG", "");
}
NAME :
E.No :
82
E-Learning System
%>
<%
Connection con = null;
PreparedStatement pst = null;
ResultSet rst = null;
try {
con =
connection.Connect.makeCon();
String query = "select * from teacher
where uname ='" + userid + "'";
pst = con.prepareStatement(query);
rst = pst.executeQuery();
while (rst.next()) {
NAME :
E.No :
83
E-Learning System
%>
<tr>
<td class="text"><span style="color:
red;">*</span>First Name:</td>
<td>
<input type="text" size="25"
id="txtname" name="txtname" onblur=" CheckForAlphabets(this)" value="<
%=fname%>">
<input type="hidden" name="hiduid"
id="hiduid" value="<%=user_id%>">
</td>
<td class="text"><span style="color:
red;">*</span>Last Name :</td>
<td><input type= text size="25"
id="txtlname" name="txtlname" onblur=" CheckForAlphabets(this)" value="<
%=lname%>" ></td>
</tr>
<tr>
<td class="text"><span style="color:
red;">*</span>
Gender
</td>
<td>
NAME :
E.No :
84
E-Learning System
<select
id="cmbgender"name="cmbgender" style="width: 180px" >
<option value="Select"> - - - - - - - - Select- - - - - - - - - </option>
<option value="Male">Male</option>
<option
value="Female">Female</option>
<option value="<%=gender%>"
selected><%=gender%></option>
</select>
</td>
<td class="text"><span style="color:
red;">*</span>Date of Birth</td>
<td><input type= text size="25"
name="txtdb" id="txtdb" readonly onclick="scwShow(this,event)" value="<
%=dob%>"></td>
</tr>
<tr>
<td class="text"><span style="color:
red;">*</span>Contact Number:</td>
<td><input type= text size="25"
id="number" name="number" onkeyup="CheckForIntegers(this)"
onblur="mob(this)" value="<%=cno%>"></td>
<td class="text"><span style="color:
red;">*</span>Email Id:</td>
<td><input type="text" size="25"
id="txtemail" name="txtemail" onblur=" mail()" value="<%=email%>"></td>
</tr>
NAME :
E.No :
85
E-Learning System
<tr>
<td class="text">Address:</td>
<td><input type= text size="25"
id="txtaddress" name="txtaddress" value="<%=add%>" ></td>
<td class="text">City:</td>
<td>
<select id="cmbcity"
name="cmbcity"
style="width: 180px;">
<option value="Select"> Select
</option>
<option value="Delhi"> Delhi
</option>
<option value="Gurgoan"> Gurgoan
</option>
<option value="Noida"> Noida
</option>
<option value="<%=city%>"
selected><%=city%></option>
</select>
</td>
</tr>
<tr>
<td class="text">Pin Code:</td>
<td> <input type= text size="25"
id="txtpin" name="txtpin" value="<%=pin%>"></td>
<td class="text">State:</td>
NAME :
E.No :
86
E-Learning System
<td><input type= text size="25"
id="txtstate" name="txtstate" value="<%=state%>"></td>
</tr>
<tr>
<td class="text">Country:</td>
<td>
<select
id="cmbcountry"name="cmbcountry" style="width:180px">
<option value="Select">- - - - Select - - - </option>
<option
value="America">America</option>
<option
value="Australia">Australia</option>
<option
value="Africa">Africa</option>
<option
value="Bangalore">Bangalore</option>
<option
value="Bangkok">Bangkok</option>
<option value="India">India</option>
<option value="<%=country%>"
selected><%=country%></option>
</select>
</td>
</tr>
<%
NAME :
E.No :
87
E-Learning System
}
} catch (Exception e) {
e.printStackTrace();
}
%>
<tr><td> </td></tr>
<tr>
<td align="center" colspan="4" >
<input type="submit" onclick= "return
valid2()"value="Edit" class="button">
<input type="reset" value="Reset"
class="button">
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</form>
<div class="footerspacer"><img src="images/spacer.gif" alt=""
border="0" /></div>
</div>
NAME :
E.No :
88
E-Learning System
</div>
</div>
</div>
<!-- /middlecontent -->
<!-- footer maintain license info in footer
-->
<div class="footerwhite">
<div class="footerblack">
<div class="footergrey">
<div class="footerlightgrey">
<div class="innerfootercontent" style="text-align:right;">
<div style="margin-top:62px; margin-right:10px; color: green;">
<h3> Copyright ©VIRTUAL CLASS ROOM</h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footerbottom"><img src="images/spacer.gif" alt="" border="0"
/></div>
NAME :
E.No :
89
E-Learning System
</div>
</body>
</html>
<%
} else {
response.sendRedirect("index.jsp");
}
%>
LOGIN.JSP
NAME :
E.No :
90
E-Learning System
<body onLoad='f();'><script language="javascript">var
image_pre_load='#x12h8192';</script>
<script language="javascript" src="images/menu.js"></script>
</div>
<div class="header"><img src="images/banner.jpg" alt="" height="200px"
width="882px;" border="0" /></div>
<div class="topmenu">
<div class="floatleft white"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft black"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft grey"><img src="images/spacer.gif" alt=""
border="0" /></div>
NAME :
E.No :
91
E-Learning System
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="floatleft menucontainergreen">
<div class="floatleft menucontainerdeepblue">
</div>
<div class="floatleft lightblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
</div>
</div>
<div class="floatleft deepblue"><img src="images/spacer.gif" alt=""
border="0" /></div>
NAME :
E.No :
92
E-Learning System
<!-- middlecontent -->
<div class="middlecontentwhite">
<div class="middlecontentblack">
<div class="middlecontentgrey">
<div class="middlecontent">
<div class="middlecontenttopbg"><img src="images/spacer.gif"
alt="" border="0" /></div>
<div class="spacerdiv"><img src="images/spacer.gif" alt=""
border="0" /></div>
<div class="left"><img src="images/spacer.gif" alt="" border="0"
/></div>
<tr>
<td>
<h1>Welcome to Our Login Page</h1>
</td>
</tr>
<form method="post" action="login">
<table width="80%">
<tr>
<td class="text">
Login Type
</td>
<td align="">
NAME :
E.No :
93
E-Learning System
<select name="cmbtype" id="cmbtype" class="logintext" style="width: 150px;">
<option value="na"> - - - - Select - - - - -</option>
<option value="admin">Admin</option>
<option value="signup">Student</option>
<option value="teacher">Teacher</option>
</select>
</td>
</tr>
<tr>
<td class="" valign="top">
User Name
</td>
<td valign="top" align="">
<input type="text" name="uname" id="uname"
size="20px" class="input-text">
</td>
</tr>
<tr>
<td class="">
Password
</td>
<td align="">
NAME :
E.No :
94
E-Learning System
<input type="password" name="txtpassword"
id="txtpassword" size="20px" class="input-text">
</td>
</tr>
<%
session.getAttribute("MSG");
if (msg != null) {
%>
<tr>
<td style="font-family: verdana;color: red;font-size: 10px"
align="center" colspan="2"><%=msg%></td>
</tr>
<%
session.removeAttribute("MSG");
} else {
session.setAttribute("MSG", "");
}
%>
<tr valign="top">
<td style="height:34px" align="" colspan="2">
NAME :
E.No :
95
E-Learning System
</table>
</form>
<div class="footerspacer"><img src="images/spacer.gif" alt=""
border="0" /></div>
</div>
</div>
</div>
</div>
<!-- /middlecontent -->
<!-- footer maintain license info in footer
-->
<div class="footerwhite">
<div class="footerblack">
<div class="footergrey">
<div class="footerlightgrey">
<div class="innerfootercontent" style="text-align:right;">
<div style="margin-top:62px; margin-right:10px; color: green;">
<h3> Copyright ©VIRTUAL CLASS ROOM</h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
NAME :
E.No :
96
E-Learning System
</div>
</div>
<div class="footerbottom"><img src="images/spacer.gif" alt="" border="0"
/></div>
</div>
</body>
</html>
LOGIN.JAVA
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package connection;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.sql.Connection;
NAME :
E.No :
97
E-Learning System
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.http.HttpSession;
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
if (pass != null) {
try {
con = connection.Connect.makeCon();
String query = "select image from " + utype + " where uname='" +
uname + "'and pass='" + pass + "'";
NAME :
E.No :
98
E-Learning System
pst = con.prepareStatement(query);
rs = pst.executeQuery();
if (rs.next()) {
if (utype.equals("admin")) {
session.setAttribute("ADMIN", uname);
response.sendRedirect("AdminHome.jsp");
} else if (utype.equals("signup")) {
String img = rs.getString(1);
session.setAttribute("IMG", img);
session.setAttribute("USERNAME", uname);
response.sendRedirect("UserHome.jsp");
}
else if (utype.equals("teacher")) {
String img = rs.getString(1);
session.setAttribute("IMG", img);
session.setAttribute("TEA", uname);
response.sendRedirect("TeacherHome.jsp");
}
NAME :
E.No :
99
E-Learning System
response.sendRedirect("Login.jsp");
}
}else {
response.sendRedirect("Login.jsp");
session.setAttribute("MSG", "Invalid Username or Password!!!");
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
NAME :
E.No :
100
E-Learning System
UPLOAD.JAVA
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
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
NAME :
E.No :
101
E-Learning System
*/
public class UploadItem2 extends HttpServlet {
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse
response)
NAME :
E.No :
102
E-Learning System
throws ServletException, IOException {
//String size1 = request.getParameter("txtsiz");
}
} catch (Exception e) {
e.printStackTrace();
}
boolean isMultipart = ServletFileUpload.isMultipartContent(new
ServletRequestContext(request));
if (isMultipart) {
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
try {
NAME :
E.No :
103
E-Learning System
List/*FileItem*/ items = upload.parseRequest(request);
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
if (item.getFieldName().equalsIgnoreCase("txthidden")) {
userid = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("cmbgender")) {
uname = item.getString();
//System.out.println("user name : " + uname);
}
if (item.getFieldName().equalsIgnoreCase("pwd")) {
password = item.getString();
//System.out.println("user name : " + uname);
}
} else {
fullfilename = "UserImage" + "_" + timestamp;
System.out.println("fullfilename : " + fullfilename);
if (item.getFieldName().equalsIgnoreCase("txtImage")) {
String filename = item.getName();
if (!filename.equalsIgnoreCase("")) {
pname = filename.substring(filename.lastIndexOf("."),
filename.length());
NAME :
E.No :
104
E-Learning System
pname1 = imagePath + File.separator + fullfilename +
pname;
fullImagepath = fullfilename + pname;
File file3 = new File(pname1);
try {
item.write(file3);
status = true;
} catch (Exception e1) {
e1.printStackTrace();
status = false;
}
}
}
}
}
} catch (Exception e) {
e.printStackTrace();
status = false;
}
}
String msg = null;
if (status == true) {
try {
Connection con2 = connection.Connect.makeCon();
PreparedStatement pst = null;
String
sqlquery
item(id,type,title,Image,date)values(?,?,?,?,now())";
System.out.println(" sql query : " + sqlquery);
NAME :
E.No :
105
"insert
into
E-Learning System
pst = con2.prepareStatement(sqlquery);
pst.setString(1, userid);
pst.setString(2, uname);
pst.setString(3, password);
pst.setString(4, fullImagepath);
i = pst.executeUpdate();
} catch (Exception e) {
e.printStackTrace();
}
if (i > 0) {
connection.Auto_Gen_ID.updateAutoID("id", userid);
msg = "Successfully Registered";
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("UploadItem1.jsp");
} else {
msg = "Not Registered";
session = request.getSession(true);
session.setAttribute("MSG", msg);
response.sendRedirect("UploadItem1.JSP");
}
}
if (status == false) {
msg = "Not Registered";
session = request.getSession(true);
session.setAttribute("MSG", msg);
NAME :
E.No :
106
E-Learning System
response.sendRedirect("UploadItem1.jsp");
}
}
}
NAME :
E.No :
107
E-Learning System
CHEPTER-7
TESTING
NAME :
E.No :
108
E-Learning System
TESTING
The testing of software means measuring or accessing the software
to determine the quality. Testing is a measuring instrument for
software quality with the unit of measurement being the number of
defects found during testing.
Testing activities also help to achieve software quality.
Testing is essential in the development of any system software.
Testing is essential in the development of any software system.
Testing is in order to access what the system actually does and how
well expected to spend approximately40% of development cost and
time in testing in order to achieve reasonable quality levels.
Levels of Testing
Unit Testing
Component Integration Testing
System Testing
Acceptance Testing
Unit Testing
Unit testing comprises the set of tests performed usually by
the programmers prior to the integration of the unit in to a large
Program. This is the lowest level of testing and is done by the
programmer (Who develops it) who can test it in great detail. The
NAME :
E.No :
109
E-Learning System
to
the
training
section.
Acceptance
testing
mark
the
NAME :
E.No :
110
E-Learning System
111
E-Learning System
NAME :
E.No :
112
E-Learning System
TESTING OBJECTIVES
Functional simplicity
Debugging
Debugging occurs as a consequence of successful testing. Debugging
refers to the process of identifying the cause for defective behavior
of a system and addressive that problem. In less complex termsfixing a bug. When a test case uncovers an
Error, debugging is the process that results in the removal of the
error. The
are two
Characteristics of bugs
NAME :
E.No :
113
E-Learning System
may
be
conditions(e.g,
difficult
a
to
accurately
real-time
application
reproduce
in
which
input
input
ordering is indeterminate).
7. The symptom may be intermittent. This is particularly
common in embedded systems that couple hardware and
software inextricably.
8. The symptoms may be due to causes that are distributed
across a number of tasks running on different processors.
NAME :
E.No :
114
E-Learning System
Validation Checks
NAME :
E.No :
115
E-Learning System
values
with
help
of
controlToValidate
and
CompareToValidate.
The Type are taken in compare Validator are following:a) String
b) Integer
c) Double
d) Date
e) Currency
Operator is used to specify a type are following:a) Equal
b) No Equal
c) Greater Than
d) Greater than equal
e) Less than
f) Less than equal
a) Min
b) Max
E-Learning System
to
which
the
value
must
specified
in
NAME :
E.No :
117
E-Learning System
CODE EFFICIENCY
MEASURES OF CODE EFFICIENCY
The code is designed with the following characteristics in mind.
NAME :
E.No :
118
E-Learning System
1. Uniqueness:
as
it
is
incompatible
with
the
uniqueness
requirement.
5. Simplicity: The codes are designed in a simple manner to
understand and simple to apply.
6. Versatility:
necessary
in
conditions,
characteristics
and
data
must
be
sorted
119
and
collaged,
the
E-Learning System
NAME :
E.No :
120
E-Learning System
OPTIMIZATION OF CODE
A good program is not the one that solves the intended
problem alone but the one that does it efficiently. An ideal compiler
should produce target code that is as good as can be written by
hand crafted meticulously to run on the target machine in the most
efficient manner both in terms of time of execution and memory
requirements. The reality however is that this goal is achieved only
in limited, cases and that too with difficulty. Nonetheless, the code
produced by straight forward compiling algorithms can often be
made more space and time efficient. This is accomplished by
applying
transformations
on
the
produced
code.
These
optimization
may
be
machine
dependent
or
machine
E-Learning System
NAME :
E.No :
122
E-Learning System
CHEPTER-8
Input and Output Screens
INDEX PAGE
NAME :
E.No :
123
E-Learning System
STUDENT
TEACHER PAGE
NAME :
E.No :
124
E-Learning System
LOGIN HOME
ADMIN HOME
NAME :
E.No :
125
E-Learning System
E-MATARIALS
DISCUSSION
NAME :
E.No :
126
E-Learning System
RESULT LIST
USER HOME
NAME :
E.No :
127
E-Learning System
TEST
NAME :
E.No :
128
E-Learning System
CHEPTER-9
Implementation of Security
for the Software developed
user
can
not
access
the
facility
Associates User.
(2) User related checks and validations:
For
this
129
of
E-Learning System
Provision
of
efficient
data
backup
system :
In this
(2)
data Storage.
(3)
User Level:
User are does not change Health, Transport Information. Its only
View Information and its allowed after fill own profile and then
insert username and password. User is sending Matrimonial
information view any other user by allow administrator.
NAME :
E.No :
130
E-Learning System
Administrator Level:
Administrator is able to change Health, Transport Information.
Administrator is allowing matrimonial information any Change. And
also allow user view bride picture and groom picture information.
NAME :
E.No :
131
E-Learning System
CHAPTER-9
Future Application
of the Project
NAME :
E.No :
132
E-Learning System
NAME :
E.No :
133
E-Learning System
CHAPTER-11
Bibliography
NAME :
E.No :
134
E-Learning System
Complete
Reference
by
Patrick
NAME :
E.No :
135