You are on page 1of 42

www.na-yearpro|ect.

com
Vrtua Cassroom
INTRODUCTION
Architecturally, JSP may be viewed as a high-level abstraction of Java servlets. JSP pages are
loaded in the server and are operated from a structured special installed Java server packet called
a Java EE eb Application, often packaged as a .war or .ear file archive.
JSP allows Java code and certain pre-defined actions to be interleaved with static web markup
content, with the resulting page being compiled and e!ecuted on the server to deliver an "#$%
or &$% document. #he compiled pages and any dependent Java libraries use Java bytecode
rather than a native software format, and must therefore be e!ecuted within a Java virtual
machine 'J($) that integrates with the host operating system to provide an abstract platform-
neutral environment.
JSP synta! is a fluid mi! of two basic content forms* scriptlet elements and markup. $arkup is
typically standard "#$% or &$%, while scriptlet elements are delimited blocks of Java code
which may be intermi!ed with the markup. hen the page is re+uested the Java code is e!ecuted
and its output is added, in situ, with the surrounding markup to create the final page. JSP pages
must be compiled to Java bytecode classes before they can be e!ecuted, but such compilation is
needed only when a change to the source JSP file has occurred.
Java code is not re+uired to be complete 'self contained) within its scriptlet element block, but
can straddle markup content providing the page as a whole is syntactically correct 'for e!ample,
any Java if,for,while blocks opened in one scriptlet element must be correctly closed in a later
element for the page to successfully compile). #his system of split inline coding sections is
called step over scripting because it can wrap around the static markup by stepping over it.
$arkup which falls inside a split block of code is sub-ect to that code, so markup inside an if
block will only appear in the output when the if condition evaluates to true. likewise markup
inside a loop construct may appear multiple times in the output depending upon how many times
the loop body runs.
#he JSP synta! adds additional &$%-like tags, called JSP actions, to invoke built-in
functionality. Additionally, the technology allows for the creation of JSP tag libraries that act as
e!tensions to the standard "#$% or &$% tags. J($ operated tag libraries provide a platform
independent way of e!tending the capabilities of a web server. /ote that not all commercial Java
servers are Java EE specification compliant.
MySQL s a reatona database management system (RDBMS)
|2|
that runs as
a server provdng mut-user access to a number of databases. The SOL
phrase stands for Structured Ouery Language.
The software components used n our pro|ect are as under:
1. Ecpse
2. MySOL database
OVERVIEW OF THE PROJECT
1
www.na-yearpro|ect.com
Vrtua Cassroom
The Vrtua Cassroom s a coaboratve teachng too to assst the students to earn
n an nteractve manner. It ams to compement the ehorts of teachers to ntegrate
technoogy nto ther cassrooms and nk the students to the Internet n
educatonay productve ways and provde them a stmuatng, postve and
en|oyabe envronment to study.
It contans the foowng eements:-
1. Student Logn:
It enabes a person to ogn as a student or sgn up f he/she has not
regstered for the cassroom.
Once ogged n a student has the foowng features:-
a) Edt Proe:
It aows modfyng the detas
b) Study Matera & Vdeo Lectures:
It dspays a st of ppts & nteractve vdeo essons categorzed
by sub|ects as posted by the facuty
c) Ask doubts:
It enabes the students to ask questons
d) Answers:
It shows the answers by the teachers to the questons asked by
varous students
2. Facuty Logn:
It enabes a person to ogn as a facuty member or sgn up f he/she has not
regstered for the cassroom.
Once ogged n a facuty member has the foowng features:-
a) Edt Proe:
It aows modfyng the detas
2
www.na-yearpro|ect.com
Vrtua Cassroom
b) Study Matera & Vdeo Lectures:
It aows the facuty members to post & remove ppts & vdeo
essons c) Doubts:
It shows a the questons asked by the students
d) Answers:
It enabes teachers to answer the questons asked by the
students
3. Admnstrator Logn
The admnstrator s the utmate controer of the appcaton wth the hghest
authorty.
He/she has the foowng features:-
a) Student/Facuty:
It dspays a st of students/facuty members regstered for the
cassroom
b) Student/Facuty req:
It dspays a st of students/facuty members whose sgn up
request s st pendng
c) PPT (poad/de)/Vdeo(upoad/de):
It dspays a st of ppts & vdeos posted by the facuty members.
The admnstrator has the power to remove ppts/vdeos from the st
and upoad accordng to wsh
d) Oueston/Ans
It dspays a st of questons asked by students/answers to
questons by teachers. The admnstrator has the power to
deete questons/answers from the st.
ER DIAGRAM
3
www.na-yearpro|ect.com
Vrtua Cassroom
TABLE STRUCTURES
#he structure of all tables included in the pro-ect is as under*-
4
www.na-yearpro|ect.com
Vrtua Cassroom
1. STUDENT
+--------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+-------+
| user | varchar(!" | #ES | UN$ | NU%% | |
| pass | varchar(!" | #ES | | NU%% | |
| &a'e | varchar(!" | #ES | | NU%% | |
| ph(&) | varchar(!" | #ES | | NU%% | |
| year | varchar(" | #ES | | NU%% | |
| *ra&ch | varchar(+" | #ES | | NU%% | |
+--------+-------------+------+-----+---------+-------+
. F,-U%T#
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| user | varchar(!" | #ES | | NU%% | |
| pass | varchar(!" | #ES | | NU%% | |
| &a'e | varchar(!" | #ES | | NU%% | |
| ph(&) | varchar(1." | #ES | | NU%% | |
| su*/ect | varchar(!" | #ES | | NU%% | |
| *ra&ch | varchar(+" | #ES | | NU%% | |
+---------+-------------+------+-----+---------+-------+
0. STUDENTS$1NU2
+--------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+-------+
| user | varchar(!" | #ES | UN$ | NU%% | |
| pass | varchar(!" | #ES | | NU%% | |
| &a'e | varchar(!" | #ES | | NU%% | |
5
www.na-yearpro|ect.com
Vrtua Cassroom
| ph(&) | varchar(!" | #ES | | NU%% | |
| year | varchar(" | #ES | | NU%% | |
| *ra&ch | varchar(+" | #ES | | NU%% | |
+--------+-------------+------+-----+---------+-------+
+. F,-U%T#S$1NU2
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| user | varchar(!" | #ES | | NU%% | |
| pass | varchar(!" | #ES | | NU%% | |
| &a'e | varchar(!" | #ES | | NU%% | |
| ph(&) | varchar(1." | #ES | | NU%% | |
| su*/ect | varchar(!" | #ES | | NU%% | |
| *ra&ch | varchar(+" | #ES | | NU%% | |
+---------+-------------+------+-----+---------+-------+
!. ,D3$N
+-------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+------------+------+-----+---------+-------+
| pass | varchar(!" | #ES | | NU%% | |
+-------+------------+------+-----+---------+-------+
4. 22T
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| su*/ect | varchar(1." | #ES | | NU%% | |
| ppt | varchar(!." | #ES | | NU%% | |
+---------+-------------+------+-----+---------+-------+
5. 6$DE7
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| su*/ect | varchar(1." | #ES | | NU%% | |
| vide) | varchar(5." | #ES | | NU%% | |
+---------+-------------+------+-----+---------+-------+
8. 9UEST$7N
+---------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+--------------+------+-----+---------+-------+
| :ue | varchar(.." | #ES | | NU%% | |
| as;ed*y | varchar(!" | #ES | | NU%% | |
| su*/ect | varchar(1." | #ES | | NU%% | |
6
www.na-yearpro|ect.com
Vrtua Cassroom
| :id | i&t(11" | #ES | UN$ | NU%% | |
+---------+--------------+------+-----+---------+-------+
<. ,NS=E>
+----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+-------+
| :id | i&t(11" | #ES | UN$ | NU%% | |
| a&s?er | varchar(.." | #ES | | NU%% | |
| a&s?er*y | varchar(!" | #ES | | NU%% | |
+----------+--------------+------+-----+---------+-------+
CODE
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+pro=(le</t(tle+
</hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="ma(n.jsp" metho'="post" +
7
www.na-yearpro|ect.com
Vrtua Cassroom
<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8" Cgcolor="grey"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="$F9"he(ght="%99"
+</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="stu'log(n.jsp" t(tle="stu'ent"+Stu'ent log(n </a+ J
<a hre=="=aclog(n.jsp" t(tle="=aculty"+ Kaculty log(n </a+ J

</t'+</tr+
</taCle+
<taCle+
<tr+<t'+
<tr+<t'+L'm(n 3og(n
<tr+<t'+<(nput type="passwor'" value="" name="pass" +
<tr+<t'+<(nput type="suCm(t" value="3og(n" oncl(c@="=u>th(s.=orm?" +
</t'+</tr+
</taCle+
<%
Str(ng pass%=re)uest.get0arameter>"pass"?;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
Statement s= c.createStatement>?;
Str(ng s)l="select pass =rom a'm(n";
<esultSet rs= s.executeOuery>s)l?;
rs.next>?;
if> pass%.e)ualsIgnore.ase>rs.getStr(ng>%?? ?
A
%+
<jsp;=orwar' page="a'm(n.jsp"+</jsp;=orwar'+
<%
B
rs.close>?;
s.close>?;
c.close>?;
B
catch>&xcept(on e? AB
%+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
8
www.na-yearpro|ect.com
Vrtua Cassroom
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+7LI:</t(tle+
</hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<=orm act(on="stu'log(n.jsp" metho'="post" +
<mar)uee :71S&P&<="th(s.stop>?;" :71S&1T="th(s.start>?;"
scrollamount="H9" Cgcolor="wh(te" +
<65+ P(rtual .lass room </65+
</7L<O1&&+

<TL23& Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<T- w('th="58%"+
<TL23& Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<T-+
<mar)uee Cgcolor="re'" style="pos(t(on; relat(ve;" Cehav(or="scroll" "
'(rect(on="up" scrollamount=""" scroll'elay="H" onmouseover="th(s.stop>?"
onmouseout="th(s.start>?"w('th="5#9" he(ght="H99"+<Cr+
<(mg src="-;E:ew =ol'erE5'Qv(rtualQclassroom.jpg" w('th=H#9 he(ght=H#9
t(tle="a' " style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
<(mg src="-;E:ew =ol'erEe'ucat(on%.jpg" w('th=H#9 he(ght=H#9 t(tle="a'
" style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
<(mg src="-;E:ew =ol'erEv(rtual.jpg" w('th=H#9 he(ght=H#9 t(tle="a' "
style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
<(mg src="-;E:ew =ol'erEv(rtualQclassQroom.jpg" w('th=H#9 he(ght=H#9
t(tle="a' " style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
</mar)uee+
</T-+
</T<+
</TL23&+
</T-+
<T-+
<taCle cellpa''(ng=H cellspac(ng=9 Cor'er=9+

9
www.na-yearpro|ect.com
Vrtua Cassroom
<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ 3D I:</=ont+</C+</tr+
<tr+<t' Cgcolor="wh(te" style="pa''(ng;#"+<Cr+
<TL23& Cor'er=9 cellspac(ng=# cellpa''(ng=H w('th="F9%"
Cgcolor="wh(te"+
<T<+
<T-+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+
3og(nQType;</=ont+</t'+ <t'+<select name="type"+<opt(on
value="Stu'ent"+Stu'ent</opt(on+</select+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 3og(n;</=ont+</t'+
<t'+<(nput type="text" name="log(n" value=""+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+
0asswor';</=ont+</t'+ <t'+<(nput type="passwor'" name="passwor'%"+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+RnCsp;</=ont+</t'+
<t'+<=ont =ace="ver'anaNar(al" s(Ge=!%+<(nput type="suCm(t"
value="&nter"+</=ont+</t'+</tr+
<tr+<t' colspan=H+<=ont =ace="ver'anaNar(al" s(Ge=!
%+RnCsp;</=ont+</t'+ </tr+
<tr+<t' colspan=H+<=ont =ace="ver'anaNar(al" s(Ge=!%+3ost your
username or passwor'S K(n' (t <a
hre=="D;Estu'yEsem(narEpptEpptQ=orQ9#T.ppt"+here</a+,</=ont+</t'+</tr+
<tr+<t' colspan=H+<=ont =ace="ver'anaNar(al" s(Ge=!%+:ot memCer
yetS .l(c@ <Cutton style="w('th;%F9;he(ght;H8; Cac@groun'!color;I$Uc=c5"
oncl(c@= " locat(on.hre==Vs(gnup.jspV" +here</Cutton+ to
reg(ster.</=ont+</t'+</tr+

</TL23&+
</T-+
<T-+
</taCle+


</T-+
</T<+
</TL23&+
</T-+
</T<+
</TL23&+
<%
Str(ng str%=re)uest.get0arameter>"log(n"?;
Str(ng strH=re)uest.get0arameter>"passwor'%"?;
if>str%,=null RR strH,= null?
A
int =lag=9;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
10
www.na-yearpro|ect.com
Vrtua Cassroom
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
Statement s= c.createStatement>?;
out.pr(ntln>"user="Wstr%W" an' pass= "WstrH?;
Str(ng s)l="select user =rom stu'ent where user=V"Wstr%W"V an'
pass=V"WstrHW"V";
<esultSet rs= s.executeOuery>s)l?;
if>rs.next>??
=lag=%;
else
=lag=9;
if>=lag==%?
A
sess(on.setLttr(Cute>"user"Nstr%?;
%+
<jsp;=orwar' page="pro=(le.jsp" /+
<%
B
else
out.pr(ntln>"1ser:ame/0asswor' :ot Pal('"?;
rs.close>?;
s.close>?;
c.close>?;
Bcatch>&xcept(on e? A out.pr(ntln>e?;B
B

%+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+stu'ent</t(tle+
</hea'+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="stu'ents(gnup.jsp" metho'="post" +
11
www.na-yearpro|ect.com
Vrtua Cassroom
<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8"
Cgcolor="Clac@"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="%%#9"
he(ght="%99" +</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="stu'ent.jsp" t(tle="stu'ent"+Stu'ent </a+ J
<a hre=="stu'ents(gnup.jsp" t(tle="stu'ens(gnupt"+Stu'ent re) </a+ J
<a hre=="=aculty.jsp" t(tle="=aculty"+ Kaculty </a+ J
<a hre=="=acultys(gnup.jsp" t(tle="=aculty s(gnup re)uests"+Kaculty re) </a+
J
<a hre=="pptup.jsp" t(tle="=aculty"+ 00T>uploa'? </a+ J
<a hre=="ppt'el.jsp" t(tle="=aculty"+ 00T>'el? </a+ J
<a hre=="v('eoup.jsp" t(tle="=aculty"+ P('eo>up? </a+ J
<a hre=="v('eo'el.jsp" t(tle="=aculty"+ P('eo>'el? </a+ J
<a hre==")ue%.jsp" t(tle="=aculty"+ Ouest(on </a+ J
<a hre=="ans%.jsp" t(tle="=aculty"+ Lns </a+ J
<t'+ <a hre=="ma(n.jsp" t(tle="=aculty"+ 3ogout </a+

</t'+</tr+
</taCle+
<Cr+
<Cr+
<C+1ser :ame ; </C+<(nput type="text" value="" name="user"+ Remsp; Remsp;
<(nput type="suCm(t" value="-&3&T&" +
<Cr+
<Cr+
<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8" Cor'er=H
Cac@groun'="D;E.lassroom%.jpg"+
<tr+
<t'+
<%
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
Statement s= c.createStatement>?;
Str(ng s)l="select * =rom stu'ents(gnup ";
<esultSet rs= s.executeOuery>s)l?;
%+
<tr+<t'+<C+1S&<:L7&</C+<t'+<C+0LSS4<-</C+<t'+<C+:L7&</C+<t'+<C+06:&
:</C+<t'+<C+/&L<</C+<t'+<C+2<L:.6</C+
<%
while> rs.next>? ?
A
%+
<tr+<t'+
<%
out.pr(ntln>rs.getStr(ng>%??;
%+
12
www.na-yearpro|ect.com
Vrtua Cassroom
<t'+
<%
out.pr(ntln>rs.getStr(ng>H??;
%+
<t'+
<%
out.pr(ntln>rs.getStr(ng>5??;
%+
<t'+
<%
out.pr(ntln>rs.getStr(ng>8??;
%+
<t'+
<%
out.pr(ntln>rs.getStr(ng>#??;
%+
<t'+
<%
out.pr(ntln>rs.getStr(ng>F??;
B
rs.close>?;
Str(ng user=re)uest.get0arameter>"user"?;
Str(ng s)l%;
if>user,=null?
A
s)l%="select * =rom stu'ents(gnup where user=V"WuserW"V ";
<esultSet rs%= s.executeOuery>s)l%?;
rs%.next>?;
out.pr(ntln>"user ; "Wuser?;
s)l%="(nsert (nto stu'ent
values>V"Wrs%.getStr(ng>%?W"VNV"Wrs%.getStr(ng>H?W"VNV"Wrs%.getStr(ng>5?W"VNV"
Wrs%.getStr(ng>8?W"VNV"Wrs%.getStr(ng>#?W"VNV"Wrs%.getStr(ng>F?W"V ?";
s.execute>s)l%?;
s)l="'elete =rom stu'ents(gnup where user=V"WuserW"V";
s.execute>s)l?;
rs%.close>?;
B
s.close>?;
c.close>?;
Bcatch>&xcept(on e? A out.pr(ntln>e?;B
%+
</t'+
</tr+
</taCle+
</=orm+
13
www.na-yearpro|ect.com
Vrtua Cassroom
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+pro=(le</t(tle+
</hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="pro=(le.jsp" metho'="post" +
<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8" Cgcolor="grey"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="$F9"he(ght="%99"
+</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="pro=(le.jsp" t(tle="6ome"+6ome </a+ J
<a hre=="up'ate.jsp" t(tle="up'ate"+ &'(t 0ro=(le </a+ J
<a hre=="stu'y.jsp" t(tle="stu'y"+Stu'y mater(al</a+ J
<a hre=="v('eo.jsp" t(tle="v('eo"+P('eo 3ectures</a+ J
<a hre==")uest(on.jsp" t(tle="as@"+Ls@ 'ouCts</a+ J
<a hre=="ans.jsp" t(tle="tell"+Lnswers</a+
</t'+
<t' al(gn="r(ght" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;%9px;color;I"""""";wh(te!space;nowrap;"+
J<a hre=="ma(n.jsp" t(tle="tell"+3ogout</a+
</t'+
</tr+
</taCle+
<%
Str(ng user =>Str(ng?sess(on.getLttr(Cute>"user"?;
14
www.na-yearpro|ect.com
Vrtua Cassroom
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
Statement s= c.createStatement>?;
Str(ng s)l="select * =rom stu'ent where user=V"WuserW"V";
<esultSet rs= s.executeOuery>s)l?;
rs.next>?;
%+


<Cr+
<Cr+
<Cr+
<taCle Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
style="pa''(ng;H;pa''(ng!Cottom;8"+ <=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ <C+0ro=(le</C+</=ont+</tr+
<T<+
<T- w('th="#9%"+
<TL23& cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<t'+

<center+ <(mg src="D;E.lassroom%.jpg" w('th=%99 he(ght= %99
+ </center+
</t'+
</T<+
<tr+<t'+3ogge' (n as <(nput type="text" name="user" value="<
% out.pr(ntln>rs.getStr(ng>%??; %+"+</t'+</tr+

</TL23&+
</T-+
<T-+
<TL23& Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<T-+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ :ame; </=ont+</t'+ <t'+
<(nput type="text" name="name" value="<% out.pr(ntln>rs.getStr(ng>5??; %+"+
</t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 2ranch;</=ont+</t'+
<t'+ <(nput type="text" name="Cranch" value="<%
out.pr(ntln>rs.getStr(ng>F??; %+"+ </t'+ </tr+
15
www.na-yearpro|ect.com
Vrtua Cassroom
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ /ear.;</=ont+</t'+ <t'+
<(nput type="text" name="year" value="<% out.pr(ntln>rs.getStr(ng>#??; %+"+
</t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ .ontact
:o..;</=ont+</t'+ <t'+ <(nput type="text" name="phno" value="<%
out.pr(ntln>rs.getStr(ng>8??; %+"+ </t'+ </tr+

</TL23&+
</T-+
<T-+

</TL23&+
</t'+
</tr+
</taCle+
<%
Str(ng Cranch=rs.getStr(ng>F?;
Str(ng year=rs.getStr(ng>#?;
sess(on.setLttr(Cute>"Cranch"NCranch?;
sess(on.setLttr(Cute>"year"Nyear?;
out.pr(ntln>"Cranch = "WCranchW" an' year = "Wyear?;
rs.close>?;
s.close>?;
c.close>?;
B
catch>&xcept(on e? A out.pr(ntln>e?; B

%+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+up'ate</t(tle+
</hea'+
16
www.na-yearpro|ect.com
Vrtua Cassroom
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="up'ate.jsp" metho'="post" +
<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8" Cgcolor="grey"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="$F9"he(ght="%99"
+</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="pro=(le.jsp" t(tle="6ome"+6ome </a+ J
<a hre=="up'ate.jsp" t(tle="up'ate"+ &'(t 0ro=(le </a+ J
<a hre=="stu'y.jsp" t(tle="stu'y"+Stu'y mater(al</a+ J
<a hre=="v('eos.jsp" t(tle="v('eo"+P('eo 3ectures</a+ J
<a hre==")uest(on.jsp" t(tle="as@"+Ls@ 'ouCts</a+ J
<a hre=="ans.jsp" t(tle="tell"+Lnswers</a+
</t'+
<t' al(gn="r(ght" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;%9px;color;I"""""";wh(te!space;nowrap;"+
J<a hre=="ma(n.jsp" t(tle="tell"+3ogout</a+
</t'+
</tr+
</taCle+
<%
Str(ng name=re)uest.get0arameter>"name"?;
Str(ng username=re)uest.get0arameter>"username"?;
Str(ng pas=re)uest.get0arameter>"pass"?;
Str(ng Cranch=re)uest.get0arameter>"Cranch"?;
Str(ng year=re)uest.get0arameter>"year"?;
Str(ng phno=re)uest.get0arameter>"phQno"?;
out.pr(ntln>"Cranch = "WCranchW" an' year = "Wyear?;
Str(ng user =>Str(ng?sess(on.getLttr(Cute>"user"?;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
Statement s= c.createStatement>?;
Str(ng s)l="select * =rom stu'ent where user=V"WuserW"V";
<esultSet rs= s.executeOuery>s)l?;
rs.next>?;
%+
17
www.na-yearpro|ect.com
Vrtua Cassroom
<center+<taCle cellpa''(ng=H cellspac(ng=9 Cor'er=9+
<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ &'(t 0ro=(le</=ont+</C+</tr+
<tr+<t' Cgcolor="wh(te" style="pa''(ng;#"+<Cr+
<TL23& Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ 0ro=(le p(cture</=ont+</C+<t' Cgcolor="green"
al(gn=center style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!%
color="wh(te" =ace="ver'anaNar(al"+0ersonal (n=o</=ont+</C+
<T<+
<T- w('th="#9%"+
<TL23& cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<T-+
<center+<(mg src="D;E.lassroom%.jpg" w('th=%#9 he(ght=%#9 +</center+
<center+
<'(v class="myCutton"+
<a hre=="ma(n.html"+
<Cutton style="w('th;%F9;he(ght;H8; Cac@groun'!
color;I$Uc=c5"+change p(cture
</Cutton+</a+<Cr+
</'(v+
</center+
</T-+
</T<+
</TL23&+
</T-+
<T-+
<center+<taCle+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ :ame;</=ont+</t'+ <t'+
<(nput type="text" name="name" value="<% out.pr(ntln>rs.getStr(ng>5??; %+"+
</t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 1serQname;</=ont+</t'+
<t'+ <(nput type="text" name="username" value="<%
out.pr(ntln>rs.getStr(ng>%??; %+"+ </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 0asswor';</=ont+</t'+
<t'+ <(nput type="text" name="pass" value="<% out.pr(ntln>rs.getStr(ng>H??;
%+"+ </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 2ranch;</=ont+</t'+
<t'+<select name="Cranch"+
<opt(on
value="(t"+IT</opt(on+
18
www.na-yearpro|ect.com
Vrtua Cassroom
<opt(on
value="mech"+7&.6</opt(on+
<opt(on
value="comp"+.omp</opt(on+
<opt(on
value="entc"+&ntc</opt(on+
</select+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ /ear;</=ont+</t'+
<t'+<select name="year"+
<opt(on
value="=e"+K&</opt(on+
<opt(on
value="se"+S&</opt(on+
<opt(on
value="te"+T&</opt(on+
<opt(on
value="Ce"+2&</opt(on+
</select+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ .ontact
:o..;</=ont+</t'+ <t'+ <(nput type="text" name="phQno" value="<%
out.pr(ntln>rs.getStr(ng>8??; %+"+ </t'+ </tr+
<tr+<t'+<=ont =ace="ver'anaNar(al" s(Ge=!%+RnCsp;</=ont+</t'+<t'+<=ont
=ace="ver'anaNar(al" s(Ge=!%+<(nput type="suCm(t" value="1p'ate" +</=ont+
</taCle+</center+
</taCle+
</t'+
<%
Str(ng s)l%="up'ate stu'ent set
user=V"WusernameW"VNpass=V"WpasW"VNname=V"WnameW"VNphQno=V"WphnoW"VNyear=V"Wye
arW"VNCranch=V"WCranchW"V where user=V"WuserW"V";
s.execute>s)l%?;
%+
<jsp;=orwar' page="pro=(le.jsp" /+
<%

s.close>?;
c.close>?;
B
catch>&xcept(on e? A B
%+
</taCle+
</taCle+
</t'+
</tr+
</taCle+
19
www.na-yearpro|ect.com
Vrtua Cassroom
</center+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+stu'y mater(al</t(tle+
</hea'+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<=orm act(on="stu'y.jsp" metho'="post" +
<%
Str(ng Cranch =>Str(ng?sess(on.getLttr(Cute>"Cranch"?;
Str(ng year =>Str(ng?sess(on.getLttr(Cute>"year"?;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c%= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N
"root"N "root"?;
Statement s%= c%.createStatement>?;
out.pr(ntln>"Cranch= "WCranchW" an' year= "Wyear?;
Str(ng s)l="select suCject =rom suCject where Cranch=V"WCranchW"V
an' year=V"WyearW"V ";
Str(ng temp=null;
<esultSet rs= s%.executeOuery>s)l?;
rs.next>?;
temp=rs.getStr(ng>%?;
%+

<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8"
Cgcolor="Clac@"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="$F9"he(ght="%99"
+</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
20
www.na-yearpro|ect.com
Vrtua Cassroom
<a hre=="suC%.jsp" t(tle="<% out.pr(ntln>temp?; %+"+<% out.pr(ntln>temp?; %+
</a+ J
<% rs.next>?;
temp=rs.getStr(ng>%?;
%+
<a hre=="suCH.jsp" t(tle="<% out.pr(ntln>temp?; %+"+<% out.pr(ntln>temp?; %+
</a+ J
<% rs.next>?;
temp=rs.getStr(ng>%?;
%+
<a hre=="suC5.jsp" t(tle="<% out.pr(ntln>temp?; %+"+<% out.pr(ntln>temp?; %+
</a+ J
<% rs.next>?;
temp=rs.getStr(ng>%?;
%+
<a hre=="suC8.jsp" t(tle="<% out.pr(ntln>temp?; %+"+<% out.pr(ntln>temp?; %+
</a+ J
<% rs.next>?;
temp=rs.getStr(ng>%?;
%+
<a hre=="suC#.jsp" t(tle="<% out.pr(ntln>temp?; %+"+<% out.pr(ntln>temp?; %+
</a+ J
<%rs.close>?; %+
<a hre=="pro=(le.jsp" t(tle="home"+home</a+
</t'+
<t' al(gn="r(ght" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;%9px;color;I"""""";wh(te!space;nowrap;"+
J<a hre=="ma(n.jsp" t(tle="tell"+3ogout</a+
</t'+
</tr+
</taCle+
<%
s%.close>?;
c%.close>?;
B
catch>&xcept(on e? Aout.pr(ntln>e?; B

%+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
21
www.na-yearpro|ect.com
Vrtua Cassroom
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+suC%</t(tle+
</hea'+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<=orm act(on="suC%.jsp" metho'="post" +
<%
Str(ng Cranch =>Str(ng?sess(on.getLttr(Cute>"Cranch"?;
Str(ng year =>Str(ng?sess(on.getLttr(Cute>"year"?;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c%= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N
"root"N "root"?;
Statement s%= c%.createStatement>?;
out.pr(ntln>"Cranch= "WCranchW" an' year= "Wyear?;
Str(ng s)l%="select suCject =rom suCject where Cranch=V"WCranchW"V
an' year=V"WyearW"V ";
<esultSet rs= s%.executeOuery>s)l%?;
rs.next>?;
Str(ng suCject=rs.getStr(ng>%?;
rs= s%.executeOuery>s)l%?;
rs.next>?;
%+

<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8"
Cgcolor="Clac@"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="$F9"he(ght="%99"
+</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="suC%.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC% </a+ J
<% rs.next>?; %+
<a hre=="suCH.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+ suCH </a+ J
<% rs.next>?; %+
<a hre=="suC5.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC5</a+ J
<% rs.next>?; %+
<a hre=="suC8.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC8</a+ J
<% rs.next>?; %+
<a hre=="suC#.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC#</a+ J
<%rs.close>?; %+
<a hre=="pro=(le.jsp" t(tle="home"+home</a+
22
www.na-yearpro|ect.com
Vrtua Cassroom
</t'+
<t' al(gn="r(ght" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;%9px;color;I"""""";wh(te!space;nowrap;"+
J<a hre=="ma(n.jsp" t(tle="tell"+3ogout</a+
</t'+
</tr+
</taCle+
<%
Str(ng s)lH="select ppt =rom ppt where suCject=V"WsuCjectW"V";
<esultSet rs%= s%.executeOuery>s)lH?;
rs%.next>?;
Str(ng ppt=rs%.getStr(ng>%?;
%+<Cr+<Cr+
<a hre=="<% out.pr(ntln>ppt?;%+" t(tle="<% out.pr(ntln>ppt?;%+"+ppt% </a+
<Cr+<Cr+
<%
if>,rs%.next>??
A
ppt=rs%.getStr(ng>%?;
rs%.close>?;
B
ppt=rs%.getStr(ng>%?;
%+
<a hre=="<% out.pr(ntln>ppt?;%+" t(tle="<% out.pr(ntln>ppt?;%+"+ pptH </a+
<Cr+<Cr+
<%
if>,rs%.next>??
A
ppt=rs%.getStr(ng>%?;
rs%.close>?;
B
ppt=rs%.getStr(ng>%?;
%+
<a hre=="<% out.pr(ntln>ppt?;%+" t(tle="<% out.pr(ntln>ppt?;%+"+ppt5</a+
<Cr+<Cr+
<%
if>,rs%.next>??
A
ppt=rs%.getStr(ng>%?;
rs%.close>?;
B
ppt=rs%.getStr(ng>%?;
%+
<a hre=="<% out.pr(ntln>ppt?;%+" t(tle="<% out.pr(ntln>ppt?;
%+"+ppt8</a+<Cr+<Cr+
<%
if>,rs%.next>??
A
ppt=rs%.getStr(ng>%?;
rs%.close>?;
B
23
www.na-yearpro|ect.com
Vrtua Cassroom
ppt=rs%.getStr(ng>%?;
%+
<a hre=="<% out.pr(ntln>ppt?;%+" t(tle="<% out.pr(ntln>ppt?;%+"+ppt#</a+
<Cr+<Cr+
<%
rs%.close>?;
s%.close>?;
c%.close>?;
B
catch>&xcept(on e? A B

%+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+v('eo</t(tle+
</hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="v('eo.jsp" metho'="post" +
<%
Str(ng Cranch =>Str(ng?sess(on.getLttr(Cute>"Cranch"?;
Str(ng year =>Str(ng?sess(on.getLttr(Cute>"year"?;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c%= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N
"root"N "root"?;
Statement s%= c%.createStatement>?;
out.pr(ntln>"Cranch= "WCranchW" an' year= "Wyear?;
Str(ng s)l="select suCject =rom suCject where Cranch=V"WCranchW"V
an' year=V"WyearW"V ";
24
www.na-yearpro|ect.com
Vrtua Cassroom
<esultSet rs= s%.executeOuery>s)l?;
rs.next>?;
%+

<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8"
Cgcolor="Clac@"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="$F9"he(ght="%99"
+</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="suC%%.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC% </a+ J
<% rs.next>?; %+
<a hre=="suCHH.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+ suCH </a+ J
<% rs.next>?; %+
<a hre=="suCH5.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC5</a+ J
<% rs.next>?; %+
<a hre=="suC88.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC8</a+ J
<% rs.next>?; %+
<a hre=="suC##.jsp" t(tle="<% out.pr(ntln>rs.getStr(ng>%??; %+"+suC#</a+ J
<% rs.close>?; %+
<a hre=="pro=(le.jsp" t(tle="home"+home</a+
</t'+
<t' al(gn="r(ght" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;%9px;color;I"""""";wh(te!space;nowrap;"+
J<a hre=="ma(n.jsp" t(tle="tell"+3ogout</a+
</t'+
</tr+
</taCle+
<%
s%.close>?;
c%.close>?;
B
catch>&xcept(on e? Aout.pr(ntln>e?; B

%+
</=orm+
25
www.na-yearpro|ect.com
Vrtua Cassroom
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+7LI:</t(tle+
</hea'+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="=aclog(n.jsp" metho'="post" +
<mar)uee :71S&P&<="th(s.stop>?;" :71S&1T="th(s.start>?;"
scrollamount="H9" Cgcolor="wh(te" +
<65+ P(rtual .lass room </65+
</7L<O1&&+

<TL23& Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<T- w('th="58%"+
<TL23& Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<T-+
<mar)uee Cgcolor="re'" style="pos(t(on; relat(ve;" Cehav(or="scroll" "
'(rect(on="up" scrollamount=""" scroll'elay="H" onmouseover="th(s.stop>?"
onmouseout="th(s.start>?"w('th="5#9" he(ght="H99"+<Cr+
<(mg src="-;E:ew =ol'erE5'Qv(rtualQclassroom.jpg" w('th=H#9 he(ght=H#9
t(tle="a' " style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
<(mg src="-;E:ew =ol'erEe'ucat(on%.jpg" w('th=H#9 he(ght=H#9 t(tle="a'
" style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
<(mg src="-;E:ew =ol'erEv(rtual.jpg" w('th=H#9 he(ght=H#9 t(tle="a' "
style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
<(mg src="-;E:ew =ol'erEv(rtualQclassQroom.jpg" w('th=H#9 he(ght=H#9
t(tle="a' " style="pos(t(on; relat(ve;" Cor'er="9"+<Cr+
</mar)uee+
</T-+
</T<+
</TL23&+
</T-+
<T-+
<taCle cellpa''(ng=H cellspac(ng=9 Cor'er=9+

<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
26
www.na-yearpro|ect.com
Vrtua Cassroom
style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ 3D I:</=ont+</C+</tr+
<tr+<t' Cgcolor="wh(te" style="pa''(ng;#"+<Cr+
<TL23& Cor'er=9 cellspac(ng=# cellpa''(ng=H w('th="F9%"
Cgcolor="wh(te"+
<T<+
<T-+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+
3og(nQType;</=ont+</t'+ <t'+<select name="type"+<opt(on
value="Kaculty"+Kaculty</opt(on+</select+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 3og(n;</=ont+</t'+
<t'+<(nput type="text" name="log(n" value=""+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+
0asswor';</=ont+</t'+ <t'+<(nput type="passwor'" name="passwor'%"+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+RnCsp;</=ont+</t'+
<t'+<=ont =ace="ver'anaNar(al" s(Ge=!%+<(nput type="suCm(t"
value="&nter"+</=ont+</t'+</tr+
<tr+<t' colspan=H+<=ont =ace="ver'anaNar(al" s(Ge=!
%+RnCsp;</=ont+</t'+ </tr+
<tr+<t' colspan=H+<=ont =ace="ver'anaNar(al" s(Ge=!%+3ost your
username or passwor'S K(n' (t <a
hre=="D;Estu'yEsem(narEpptEpptQ=orQ9#T.ppt"+here</a+,</=ont+</t'+</tr+
<tr+<t' colspan=H+<=ont =ace="ver'anaNar(al" s(Ge=!%+:ot memCer
yetS .l(c@ <Cutton style="w('th;%F9;he(ght;H8; Cac@groun'!color;I$Uc=c5"
oncl(c@= " locat(on.hre==V=acs(gnup.jspV" +here</Cutton+ to
reg(ster.</=ont+</t'+</tr+

</TL23&+
</T-+
<T-+
</taCle+


</T-+
</T<+
</TL23&+
</T-+
</T<+
</TL23&+
<%
Str(ng str%=re)uest.get0arameter>"log(n"?;
Str(ng strH=re)uest.get0arameter>"passwor'%"?;
if>str%,=null RR strH,= null?
A
int =lag=9;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
27
www.na-yearpro|ect.com
Vrtua Cassroom
Statement s= c.createStatement>?;
out.pr(ntln>"user="Wstr%W" an' pass= "WstrH?;
Str(ng s)l="select user =rom =aculty where user=V"Wstr%W"V an'
pass=V"WstrHW"V";
<esultSet rs= s.executeOuery>s)l?;
if>rs.next>??
=lag=%;
else
=lag=9;
if>=lag==%?
A
sess(on.setLttr(Cute>"=user"Nstr%?;
%+
<jsp;=orwar' page="=acQpro=(le.jsp" /+
<%
B
else
out.pr(ntln>"1ser:ame/0asswor' :ot Pal('"?;
rs.close>?;
s.close>?;
c.close>?;
Bcatch>&xcept(on e? A out.pr(ntln>e?;B
B

%+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*" Cu==er="%99@C"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+=aculty s(gnup</t(tle+
</hea'+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<scr(pt language="javascr(pt"+
=unct(on =u>=orm?
A
alert>VL re)uest (s sent to the a'm(n to approve your s(gnup V?;
B
=unct(on =un%>=orm?
A
28
www.na-yearpro|ect.com
Vrtua Cassroom
var l==orm.pass.value.length;
=or>var (=9; ( < l ; (WW?
A
(=>=orm.pass%.value.suCstr>(N%? ,= =orm.pass.value.suCstr>(N%? ?
A
=orm.pass.value="";
=orm.pass%.value="";
alert>Vpasswor's :ot &)ualV?;
Crea@;
B
B
B
=unct(on =unH>=orm?
A
var l==orm.phno.value.length;
=or>var (=9; ( < l ; (WW?
A
(=> >=orm.phno.value.suCstr>(N%?+= VaV RR
=orm.phno.value.suCstr>(N%?+= VGV ? JJ>=orm.phno.value.suCstr>(N%?+= VLV RR
=orm.phno.value.suCstr>(N%?+= VXV ? ?
A
=orm.pass.value="";
=orm.pass%.value="";
alert>V(nval(' phone no.V?;
Crea@;
B
B
B
</scr(pt+
<=orm act(on="=acs(gnup.jsp" metho'="post" +
<mar)uee :71S&P&<="th(s.stop>?;" :71S&1T="th(s.start>?;"
Cgcolor="wh(te" scrollamount=%# +
<hH+ <=ont =ace="ver'anaNar(al" s(Ge=!% + <a hre=="ma(n.jsp"+.l(c@ here</a+
to return to home page .</=ont+
</hH+
</7L<O1&&+
<taCle cellpa''(ng=H cellspac(ng=9 Cor'er=9+
<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
style="pa''(ng;H;pa''(ng!Cottom;8"+ <=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ <C+S(gn 1p</C+</=ont+</tr+
<tr+<t' Cgcolor="wh(te" style="pa''(ng;#"+<Cr+
<center+<taCle+
29
www.na-yearpro|ect.com
Vrtua Cassroom
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ :ame;</=ont+</t'+ <t'+
<(nput type="text" name="name" value=""+ </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 1serQname;</=ont+</t'+
<t'+ <(nput type="text" name="username" value="" + </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 0asswor';</=ont+</t'+
<t'+ <(nput type="passwor'" name="pass" value=""+ </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ .on=orm
0asswor';</=ont+</t'+ <t'+ <(nput type="passwor'" name="pass%" value=""+
</t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 0hone :.;</=ont+</t'+
<t'+ <(nput type="text" name="phno" value="" onClur="=un%>th(s.=orm?"+
</t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ SuCject;</=ont+</t'+ <t'+
<(nput type="text" name="suCject" value="" onClur="=unH>th(s.=orm?"+ </t'+
</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 2ranch;</=ont+</t'+
<t'+<select name="Cranch" +
<opt(on
value="(t"+IT</opt(on+
<opt(on
value="mech"+7ech</opt(on+
<opt(on
value="entc"+&:T.</opt(on+
<opt(on
value="comp"+.omp</opt(on+
</select+</t'+</tr+

<tr+<t'+<=ont =ace="ver'anaNar(al" s(Ge=!%+RnCsp;</=ont+</t'+<t'+<=ont
=ace="ver'anaNar(al" s(Ge=!%+<(nput type="suCm(t" value="<eg(ster"
oncl(c@="=u>th(s.=orm?" +</=ont+</t'+</tr+
</taCle+</center+
</t'+</tr+</taCle+</t'+</tr+</taCle+

<%
Str(ng name=re)uest.get0arameter>"name"?;
Str(ng username=re)uest.get0arameter>"username"?;
Str(ng pas=re)uest.get0arameter>"pass"?;
Str(ng pas%=re)uest.get0arameter>"pass%"?;
Str(ng Cranch=re)uest.get0arameter>"Cranch"?;
Str(ng suCject=re)uest.get0arameter>"suCject"?;
Str(ng phno=re)uest.get0arameter>"phno"?;

30
www.na-yearpro|ect.com
Vrtua Cassroom

tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N
"root"N "root"?;
Statement s= c.createStatement>?;
Str(ng s)l="(nsert (nto =acultys(gnup
values>V"WusernameW"VNV"WpasW"VNV"WnameW"VNV"WphnoW"VNV"WsuCjectW"VNV"WCranchW
"V ?";
out.pr(ntln>"name= ; "Wname?;
if>name,=""RRname,=null?
A
s.execute>s)l?;
B
s.close>?;
c.close>?;
B
catch>&xcept(on e? AB
%+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+up'ate</t(tle+
</hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="=acup'ate.jsp" metho'="post" +
<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8" Cgcolor="grey"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="$F9"he(ght="%99"
+</center+
</t'+
</tr+
<tr+
31
www.na-yearpro|ect.com
Vrtua Cassroom
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="=acQpro=(le.jsp" t(tle="6ome"+6ome </a+ J
<a hre=="=acup'ate.jsp" t(tle="up'ate"+ &'(t 0ro=(le </a+ J
<a hre=="=stu'y.jsp" t(tle="stu'y"+Stu'y mater(al</a+ J
<a hre=="=v('eos.jsp" t(tle="v('eo"+P('eo 3ectures</a+ J
<a hre=="=)uest(on.jsp" t(tle="as@"+Ls@ 'ouCts</a+ J
</t'+
<t' al(gn="r(ght" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;%9px;color;I"""""";wh(te!space;nowrap;"+
J<a hre=="ma(n.jsp" t(tle="tell"+3ogout</a+
</t'+
</tr+
</taCle+
<%
Str(ng user =>Str(ng?sess(on.getLttr(Cute>"=user"?;
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
Statement s= c.createStatement>?;
Str(ng s)l="select * =rom =aculty where user=V"WuserW"V";
out.pr(ntln>"select * =rom =aculty where user=V"WuserW"V"?;
<esultSet rs= s.executeOuery>s)l?;
rs.next>?;
out.pr(ntln>"user= "Wuser?;
%+
<center+<taCle cellpa''(ng=H cellspac(ng=9 Cor'er=9+
<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ &'(t 0ro=(le</=ont+</C+</tr+
<tr+<t' Cgcolor="wh(te" style="pa''(ng;#"+<Cr+
<TL23& Cor'er=9 cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<tr+ <t' Cgcolor="re'"+<taCle cellpa''(ng=9 cellspac(ng=9 Cor'er=%
w('th=%99%+ <tr+ <t' Cgcolor="green" al(gn=center
style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!% color="wh(te"
=ace="ver'anaNar(al"+ 0ro=(le p(cture</=ont+</C+<t' Cgcolor="green"
al(gn=center style="pa''(ng;H;pa''(ng!Cottom;8"+ <C+<=ont s(Ge=!%
color="wh(te" =ace="ver'anaNar(al"+0ersonal (n=o</=ont+</C+
<T<+
<T- w('th="#9%"+
32
www.na-yearpro|ect.com
Vrtua Cassroom
<TL23& cellspac(ng=H cellpa''(ng=H w('th="%99%"+
<T<+
<T-+
<center+<(mg src="D;E.lassroom%.jpg" w('th=%#9 he(ght=%#9 +</center+
<center+
<'(v class="myCutton"+
<a hre=="ma(n.html"+
<Cutton style="w('th;%F9;he(ght;H8; Cac@groun'!
color;I$Uc=c5"+change p(cture
</Cutton+</a+<Cr+
</'(v+
</center+
</T-+
</T<+
</TL23&+
</T-+
<T-+
<center+<taCle+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ :ame;</=ont+</t'+ <t'+
<(nput type="text" name="name" value="<% out.pr(ntln>rs.getStr(ng>5??; %+"+
</t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 1serQname;</=ont+</t'+
<t'+ <(nput type="text" name="username" value="<%
out.pr(ntln>rs.getStr(ng>%??; %+"+ </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 0asswor';</=ont+</t'+
<t'+ <(nput type="passwor'" name="pass" value="<%
out.pr(ntln>rs.getStr(ng>H??; %+"+ </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ .on=orm
0asswor';</=ont+</t'+ <t'+ <(nput type="passwor'" name="pass%" + </t'+
</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ 2ranch;</=ont+</t'+
<t'+<select name="Cranch"+
<opt(on
value="(t"+IT</opt(on+
<opt(on
value="mech"+7&.6</opt(on+
<opt(on
value="comp"+.omp</opt(on+
<opt(on
value="entc"+&ntc</opt(on+
</select+</t'+</tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ SuCject;</=ont+</t'+
<t'+ <(nput type="text" name="suCject" value="<%
out.pr(ntln>rs.getStr(ng>#??; %+" + </t'+ </tr+
<tr+<t'+ <=ont =ace="ver'anaNar(al" s(Ge=!%+ .ontact
:o..;</=ont+</t'+ <t'+ <(nput type="text" name="phQno" value="<%
out.pr(ntln>rs.getStr(ng>8??; %+"+ </t'+ </tr+
<tr+<t'+<=ont =ace="ver'anaNar(al" s(Ge=!%+RnCsp;</=ont+</t'+<t'+<=ont
=ace="ver'anaNar(al" s(Ge=!%+<(nput type="suCm(t" value="1p'ate" +</=ont+
33
www.na-yearpro|ect.com
Vrtua Cassroom
</taCle+</center+
</taCle+
</t'+
<%
Str(ng name=re)uest.get0arameter>"name"?;
Str(ng username=re)uest.get0arameter>"username"?;
Str(ng pas=re)uest.get0arameter>"pass"?;
Str(ng pas%=re)uest.get0arameter>"pass%"?;
Str(ng Cranch=re)uest.get0arameter>"Cranch"?;
Str(ng suCject=re)uest.get0arameter>"suCject"?;
Str(ng phno=re)uest.get0arameter>"phQno"?;
if>name,=null RR username,=null?
A
Str(ng s)l%="up'ate =aculty set
user=V"WusernameW"VNpass=V"WpasW"VNname=V"WnameW"VNphQno=V"WphnoW"VNsuCject=V"
WsuCjectW"VNCranch=V"WCranchW"V where user=V"WuserW"V";
s.execute>s)l%?;
%+
<jsp;=orwar' page="=acQpro=(le.jsp" /+
<%
B
else
out.pr(ntln>"enter the =(el's"?;
s.close>?;
c.close>?;
B
catch>&xcept(on e? Aout.pr(ntln>e?; B
%+
</taCle+
</taCle+
</t'+
</tr+
</taCle+
</center+
</=orm+
</Co'y+
</html+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" %+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
34
www.na-yearpro|ect.com
Vrtua Cassroom
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+L'm(n</t(tle+
</hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
<=orm act(on="=acQpro=(le.jsp" metho'="post" +
<taCle w('th="%%#9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8"
Cgcolor="Clac@"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="%%#9"
he(ght="%99" +</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="stu'ent.jsp" t(tle="stu'ent"+Stu'ent </a+ J
<a hre=="stu'ents(gnup.jsp" t(tle="stu'ens(gnupt"+Stu'ent re) </a+ J
<a hre=="=aculty.jsp" t(tle="=aculty"+ Kaculty </a+ J
<a hre=="=acultys(gnup.jsp" t(tle="=aculty s(gnup re)uests"+Kaculty re) </a+
J
<a hre=="pptup.jsp" t(tle="=aculty"+ 00T>uploa'? </a+ J
<a hre=="ppt'el.jsp" t(tle="=aculty"+ 00T>'el? </a+ J
<a hre=="v('eoup.jsp" t(tle="=aculty"+ P('eo>up? </a+ J
<a hre=="v('eo'el.jsp" t(tle="=aculty"+ P('eo>'el? </a+ J
<a hre==")ue%.jsp" t(tle="=aculty"+ Ouest(on </a+ J
<a hre=="ans%.jsp" t(tle="=aculty"+ Lns </a+ J
<t'+ <a hre=="ma(n.jsp" t(tle="=aculty"+ 3ogout </a+

</t'+</tr+
</taCle+
</=orm+
</Co'y+
<%@ page language="java" contentType="text/html; charset=IS!""#$!%"
page&nco'(ng="IS!""#$!%" (mport="java.s)l.*"%+
<,-.T/0& html 0123I. "!//45.//-T- 6T73 8.9% Trans(t(onal//&:"
"http;//www.w5.org/T</html8/loose.'t'"+
<html+
<hea'+
<meta http!e)u(v=".ontent!Type" content="text/html; charset=IS!""#$!%"+
<t(tle+P('eo 'elete</t(tle+
</hea'+
<S.<I0T type="text/javascr(pt"+
w(n'ow.h(story.=orwar'>?;
=unct(on no2ac@>? A w(n'ow.h(story.=orwar'>?; B
</S.<I0T+
<Co'y Cac@groun'="D;E.lassroom%.jpg" Cgcolor="re'" +
35
www.na-yearpro|ect.com
Vrtua Cassroom
<=orm act(on="v('eo'el.jsp" metho'="post" +
<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8"
Cgcolor="Clac@"+
<tr+
<t'+
<center+<(mg src="-;E:ew =ol'erE4eC 0age 6ea'er.g(=" w('th="%%#9"
he(ght="%99" +</center+
</t'+
</tr+
<tr+
<t' al(gn="le=t" style="wor'!spac(ng;Fpx;=ont!s(Ge;%H9%;pa''(ng!
r(ght;59px;color;I"""""";wh(te!space;nowrap;"+
<a hre=="stu'ent.jsp" t(tle="stu'ent"+Stu'ent </a+ J
<a hre=="stu'ents(gnup.jsp" t(tle="stu'ens(gnupt"+Stu'ent re) </a+ J
<a hre=="=aculty.jsp" t(tle="=aculty"+ Kaculty </a+ J
<a hre=="=acultys(gnup.jsp" t(tle="=aculty s(gnup re)uests"+Kaculty re) </a+
J
<a hre=="pptup.jsp" t(tle="=aculty"+ 00T>uploa'? </a+ J
<a hre=="ppt'el.jsp" t(tle="=aculty"+ 00T>'el? </a+ J
<a hre=="v('eoup.jsp" t(tle="=aculty"+ P('eo>up? </a+ J
<a hre=="v('eo'el.jsp" t(tle="=aculty"+ P('eo>'el? </a+ J
<a hre==")ue%.jsp" t(tle="=aculty"+ Ouest(on </a+ J
<a hre=="ans%.jsp" t(tle="=aculty"+ Lns </a+ J
<t'+ <a hre=="ma(n.jsp" t(tle="=aculty"+ 3ogout </a+
</t'+</tr+
</taCle+
<Cr+
<Cr+
<C+P('eo :ame ; </C+<(nput type="text" value="" name="ppt"+ Remsp; Remsp;
<(nput type="suCm(t" value="-&3&T&" +
<Cr+
<Cr+
<center+<taCle w('th="$F9" Cor'er="9" cellpa''(ng="9" cellspac(ng="8"
Cor'er=H Cac@groun'="D;E.lassroom%.jpg"+
<tr+
<t'+
<%
tryA
.lass.=or:ame>"sun.j'Cc.o'Cc.M'Cc'Cc-r(ver"?;
.onnect(on c= -r(ver7anager.get.onnect(on>"j'Cc;o'Cc;a@C"N "root"N
"root"?;
Statement s= c.createStatement>?;
Str(ng s)l="select * =rom v('eo ";
<esultSet rs= s.executeOuery>s)l?;
%+
<tr+<t'+<C+S12M&.T</C+<t'+<C+P('eo</C+
<%
while> rs.next>? ?
A
%+
<tr+<t'+
<%
out.pr(ntln>rs.getStr(ng>%??;
36
www.na-yearpro|ect.com
Vrtua Cassroom
%+
<t'+
<%
out.pr(ntln>rs.getStr(ng>H??;
B
rs.close>?;
Str(ng ppt=re)uest.get0arameter>"ppt"?;
if>ppt,=null?
A s)l="'elete =rom v('eo where v('eo=V"WpptW"V";
s.execute>s)l?;
B
s.close>?;
c.close>?;
Bcatch>&xcept(on e? A out.pr(ntln>e?;B
%+
</t'+
</tr+
</taCle+ </center+
</=orm+
</Co'y+
</html+
37
www.na-yearpro|ect.com
Vrtua Cassroom
SNAPSHOTS:
38
www.na-yearpro|ect.com
Vrtua Cassroom
39
www.na-yearpro|ect.com
Vrtua Cassroom
CONCLUSION
40
www.na-yearpro|ect.com
Vrtua Cassroom
A computerzed aumn management system has been deveoped and
the system was tested wth sampe data.
The system resuts n reguar tmey preparatons of requred outputs. In
comparson wth manua system the benets under a computer system are
consderabe n the savng of man power workng hours .It aso ncreases the
feasabty
Provson for addton and deeton of student /facuty s there n the
system. It s possbe to vew nformaton of other student/facuty after successfuy
oggng n. The entre pro|ect runs on wndows envronments.
The system can be used to ncrease student facuty nteracton and aso
ncrease ther nvovement wth the coege.
SCOPE OF ENHANCEMENT
41
www.na-yearpro|ect.com
Vrtua Cassroom
The system may be further updated or modifed at will owing to its simple
structure. Facillities such as chat could also be provided.
42

You might also like