Web Technology
Web Technology
UNIT 1Introduction: Introduction and Web Development Strategies, History of Web and Internet, Protocols
governing Web, Writing Web Projects, Connecting to Internet, Introduction to Internet services and tools,
Introduction to client-server computing. Core Java: Introduction, Operator, Data type, Variable, Arrays, Methods
& Classes, Inheritance, Package and Interface, Exception Handling, Multithread programming, I/O, Java Applet,
String handling, Event handling, Introduction to AWT, AWT controls, Layout managers
Unit 2Web Page Designing: HTML: list, table, images, frames, forms, CSS, Document type definition, XML:
DTD, XML schemes, Object Models, presenting and using XML, Using XML Processors: DOM and SAX,
Dynamic HTML
Unit 3Scripting: Java script: Introduction, documents, forms, statements, functions, objects; introduction to
AJAX
Networking: Internet Addressing, Inet Address, Factory Methods, Instance Methods, TCP/IP Client Sockets,
URL, URL Connection, TCP/IP Server Sockets, Datagrams.
Unit 4 Enterprise Java Bean: Preparing a Class to be a JavaBeans, Creating a JavaBeans, JavaBeans Properties,
Types of beans, State full Session bean, Stateless Session bean, Entity bean
Java Database Connectivity (JDBC): Merging Data from Multiple Tables: Joining, Manipulating, Databases
with JDBC, Prepared Statements, Transaction Processing, Stored Procedures.
Unit 5 Servlets: Servlet Overview and Architecture, Interface Servlet and the Servlet Life Cycle, Handling HTTP
get Requests, Handling HTTP post Requests, Redirecting Requests to Other Resources, Session Tracking,
Cookies, Session Tracking with Http Session
JavaServerPages (JSP): Introduction, JavaServerPages Overview, A First JavaServerPages Example, Implicit
Objects, Scripting, Standard Actions, Directives, Custom Tag Libraries.
Relationship among the Course Outcomes (CO s), Program Outcomes (PO s) & Program
Specific Outcome (PSO s)
CO – PO -PSO Mapping
Course P PS PS PS
PO PO PO PO PO PO PO PO PO1 PO1 PO1
Outcom O O O O
2 3 4 5 6 7 8 9 0 1 2
e 1 01 02 03
CO 1 2 3 1 1 - 1 - 1 - 1 - - 1 1 2
CO 2 2 3 2 1 2 1 1 - - - 2 - 1 2 2
CO 3 2 3 3 2 2 1 1 - - - 3 - 1 2 2
CO 4 2 1 3 2 3 1 - - - - 3 - - 2 -
CO 5 2 2 3 2 3 1 - - - - 3 - 1 2 1
CO 6 1 2 2 1 3 1 - - - - 3 - 1 1 1
1. 2.3 2.3 1.5 2.1 1.0 0.3 0.1 0 0.16 2.3 0 0.8 1.6 1.3
Average 8 3 6 3 6
Relationship between the Course Outcomes (CO s) & Continuous Internal Assessment (CIA)
CO – CIA Mapping
Components of Assessment
Course Outcomes CEA CEA CEA CEA CEA
I II III IV V
CO1: Explain web development Strategies and Protocols Yes
governing Web.
CO2: Develop Java programs for window/web-based Yes
applications.
CO3: Design web pages using HTML, XML, CSS and Yes
JavaScript
CO4: Creation of client-server environment using socket Yes
programming
CO5:Building enterprise level applications and manipulate web Yes
databases using JDBC
CO6: Design interactive web applications using Servlets and Yes
JSP
AL PROGRAMME
SPECIFIC
PROGRAMME OUTCOME(PO’S)
OUTCOME(PSO’S
)
PO PO PO PO PO PO PO PO PO PO PO PO PSO PSO2 PSO3
1 2 3 4 5 6 7 8 9 10 11 12 1
AL
1 1 1 1 3 - - - - - 1 1 1 1 1
O1
AL
- - 1 - 1 - 1 - 1 - 1 - - - 1
O2
AL
1 1 1 1 1 - - - - - - - 1 2 -
O3
AL
1 - - - - - 1 - 1 - 1 - - - 2
O4
AL
1 1 1 - - - - - - 3 - - - 1 -
O5
LECTURE PLAN
WEB TECHNOLOGY
S.
UNIT CONTENT HRS Text book/ Reference book
No.
I Introduction and web 1 C-Xavier Page No:2-5
development strategies , History
of Web and Internet,
1 Introduction to Protocols that
Governing web.
Java Applet, String handling, 1 Complete Reference JAVA Page No: 255-
8 285
Event handling
HTML: List, Table, Images 1 Xavier, C Page No:27
9
Object Models, presenting and 1 Web Programming, Chris Bates Page No:
using XML 135
14
Preparing a Class to be a 1
JavaBeans, Creating a JavaBeans Herbert Schieldt, “The Complete
25
Reference:Java”, TMH Page No: 847
JavaBeans Properties,Types of 1
beans Herbert Schieldt, “The Complete
26
Reference:Java”, TMH Page No: 848
Stateful Session bean, Stateless 1
Session bean Herbert Schieldt, “The Complete
27
Reference:Java”, TMH Page No: 850-855
Cookies, Session Tracking with 1 Hans Bergsten, “Java Server Pages”, SPD
Http Session O’Reilly Page No: 3-4
37
Pages Overview
Introduction, Java Server Pages 1 Hans Bergsten, “Java Server Pages”, SPD
Overview, A First Java Server O’Reilly Page No: 51
38 Page Example
Directives, Custom Tag Libraries 1 Hans Bergsten, “Java Server Pages”, SPD
40 O’Reilly Page No: 391-401
TOTAL HOURS 40
RESOURCES
Text books:
Reference Books:
1. Margaret Levine Young, “The Complete Reference Internet”, McGraw Hill.
2. Naughton, Schildt, “The Complete Reference JAVA2”, McGraw Hill.
3. Bhave, “Programming with Java”, Pearson Education
Tutorial #01 [UNIT 1]
Topic: Web Development
ROLL NO. ; All Students
Q. No. QUESTION Marks CO PI BL
1 What do you mean by a protocol? Name three protocols that
govern the web and Explain about them. 10 03 6.2.1 K2
2
Explain the architecture of servlet. 10 05 2.1.3 K2
3
What is the difference between Notify URL and Return URL? 10 05 2.1.3 K4
4
Explain the difference between $message and $$message? 10 05 2.1.3 K2
5 What are the various methods to pass data from one web page to
another web page? 10 05 2.2.2 K2
2
How we change the default port number of Tomcat Container? 10 06 3.4.1 K2
3
Explain JSP is an extension of Servlet.
10 06 2.1.3 K2
4
What problems of Servlet technology can JSP is supposed to
10 06 2.1.3 K2
solve?
5 How Servlet lifecycle is different from JSP lifecycle? 10 06 3.4.1 K2
Assignment No. # 01
ROLL NO. ; All Students
Q. No. QUESTION Marks CO PI BL
1 Explain the strategies for the development of website. 10 1 3.4.2 K2
2 What are the different types of CSS? Explain with suitable 10 1 3.2.1 K3
examples.
3 Explain about static and dynamic HTML. Differentiate 10 2 3.1.6 K3
between SAX and DOM Model.
4 What do you mean by SQL Schema? Discuss about frames .10 2 3.4.1 K3
in HTML.
Assignment No. # 02
ROLL NO. ; All Students
Q. No. QUESTION Marks CO PI BL
1 Explain about the history of web and internet. 10 1 3.4.2 K3
2 What are the different steps of connecting to the internet? 10 1 3.4.2 K3
3 Explain about AWT and AWT Layout. 10 2 3.2.1 K3
4 Discuss about string handling in Applet. 10 2 3.2.1 K3
5 Write a program using final and Super keywords in java. 10 3 3.4.1 K3
6 Write a program for exception handling in java. 10 3 3.4.1 K3
7 Explain about transaction processing in JDBC. 10 4 3.2.1 K3
8 What do you mean by JDBC? Discuss about prepared 10 4 3.2.1 K3
statement in JDBC.
9 Explain about request dispatcher and custom tag libraries. 10 5 2.1.3 K2
10 Discuss about session tracking with Http session. 10 5 2.1.3 K3
Q. No. QUESTION BL CO
1 Discuss about various protocol governing web. K2 4
2 What do you mean by client server computing? K2 4
3 Discuss about package in java. K2 3
4 Explain about AWT and AWT Layout. K2 2
5 Explain event handling in java. K2 3
6 Discuss the uses of Super keyword in java. K2 3
7 Write a program of multiple inheritance in java. K2 3
10 Write a program in JavaScript to find the maximum number among five numbers. K3 3
[Section B]
Q.2 Attempt any three from following.
Q.No. Questions MARKS CO BL
A How Exception handled in java? Differentiate between throw and K3
throws. 10 03
B Explain the HTML tags for Tables, Frames, and Forms with the help 01,0 K2
of Suitable example. 10
2
C What is the need for dynamic webpage? What are the advantages K2
and issue involved in dynamic web page? 10 03
[Section C]
Q.3 Attempt any one from each question.
Q.No. Questions MAR C BL
KS O
A What do you understand by web technology? Prove the name of K3
10 04
protocols which help in web and explain working of that protocol.
B What is Inheritance? List out various type Inheritance with example 10 03 K1
[Section B]
Q.2 Attempt any three from following.
Q.No. Questions MARKS CO BL
A What is Exception Java? Explain try and catch, throw and finally K2
keywords in Java. 10 03
B Write down the HTML tags for Tables, Frames, and Forms with the 01,0 K3
help of Suitable example. 10
2
C Discuss is the need for dynamic webpage? What are the advantages K2
and issue involved in dynamic web page? 10 03
[Section C]
Q.3 Attempt any one from each question.
Q.No. Questions MAR C BL
KS O
A Explain the term web technology? Prove the name of protocols K2
10 04
which help in web and explain working of that protocol.
B Define Inheritance. List out various type Inheritance with example 10 03 K1
SECTION A
SECTION B
SECTION C
3. Attempt any one part of the following: 10 x 1 = 10
(a) Create an HTML page named as “table.html” to display your class time table.
(b) Explain Enterprise Java Bean in detail and explain its types. Create a
message driven java bean.
4. Attempt any one part of the following: 10 x 1 = 10
(a) What is JDBC? Explain the driver used in JDBC. Write JDBC
program to insert and display the record of employees using prepared
statement.
(b) Explain string handling and event handling in java.
5. Attempt any one part of the following: 10 x 1 = 10
(a) What is the difference between Session and Cookies? Write a servlet
program for servlet login and logout using cookies.
(b) What is XML? Create a XML document of 10 students of third year
CSE. Add their roll number, marks obtained in 5 subjects, total marks
and percentage.
6. Attempt any one part of the following: 10 x 1 = 10
(a) Discuss Servlet and its life cycle in detail. How do you create a servlet?
(b) Explain JSP Architecture and explain the JSP Processing in detail.
7. Attempt any one part of the following: 10 x 1 = 10
(a) Explain Internet Addressing. How will you identify IP Class?
(b) How exceptions are handled in java? Explain in detail with examples.
ONLINE QUIZ -1
UNIT-1
S.NO QUESTIONS MARK CO PI B
. S COD L
E
1 Which one of 1 CO K
the following is 1
not a Java
feature?
a) Object-
oriented
b) Use of
pointers
c) Portable
d) Dynamic and
Extensible
Answer: b
2 Which of these 1 CO K
cannot be used for 1 1
a variable name in
Java?
a) identifier &
keyword
b) identifier
c) keyword
d) none of the
mentioned
Answer: c
3 What is the 1 CO K
extension of java 1 2
code files?
a) .js
b) .txt
c) .class
d) .java
Answer: d
4 What will be the output 1 CO K
of the following Java 1 2
code?
1. class
increment {
2. public
static void
main(String
args[])
3. {
4. int
g = 3;
5.
System.out.print
(++g * 8);
6. }
7. }
a) 32
b) 33
c) 24
d) 25
Answer: a
5 Which environment 1 CO K
variable is used to 1 1
set the java path?
a) MAVEN_Path
b) JavaPATH
c) JAVA
d) JAVA_HOME
Answer: d
6. Which of the 1 CO K
following is not an 1 1
OOPS concept in
Java?
a) Polymorphism
b) Inheritance
c) Compilation
d) Encapsulation
Answer: c
7 What is not the 1 CO K
use of “this” 1 2
keyword in Java?
a) Referring to the
instance variable
when a local
variable has the
same name
b) Passing itself to
the method of the
same class
c) Passing itself to
another method
d) Calling another
constructor in
constructor
chaining
Answer: b
8 What will be the error in 1 CO K
the following Java code? 1 2
byte b = 50;
b = b * 50;
a) b cannot contain value
50
b) b cannot contain value
100, limited by its range
c) No error in this code
d) * operator has
converted b * 50 into int,
which can not be
converted to byte
without casting
Answer : d
9 Which of the 1 CO K
following is a type 1 1
of polymorphism in
Java Programming?
a) Multiple
polymorphism
b) Compile time
polymorphism
c) Multilevel
polymorphism
d) Execution time
polymorphism
Answer : b
10 What is Truncation 10 CO K
in Java? 1 2
a) Floating-point
value assigned to a
Floating type
b) Floating-point
value assigned to
an integer type
c) Integer value
assigned to
floating type
d) Integer value
assigned to
floating type
Answer : b
ONLINE QUIZ -2
UNIT-1
S.N QUESTIONS MAR C PI B
O. KS O CO L
DE
ONLINE QUIZ -3
UNIT-2
S.NO QUESTIONS MARK CO PI BL
. S COD
E
1 What is the 1 CO K2
correct syntax of 2
doctype in HTML5?
a) </doctype
html>
b) <doctype html>
c) <doctype html!
>
d) <!doctype
html>
Answer :d
2 Which of the 1 CO K1
following is used to 2
read an HTML
page and render
it?
a) Web server
b) Web network
c) Web browser
d) Web matrix
Answer: c
3 Which of the 1 CO K1
following is not a 2
difference between
HTML and XHTML?
a) Charset in both
html and xhtml is
“text/html”
b) Tags and
attributes are
case-insensitive in
HTML but not in
XHTML
c) Special
characters must
be escaped using
character entities
in XHTML unlike
HTML
d) Charset in html
is “text/html”
where as in xhtml
it is
“application/xml+x
html”
Answer: a
4 Which of the 1 CO K1
following tag is 2
used for inserting
the largest
heading in HTML?
a) head
b) <h1>
c) <h6>
d) heading
Answer: b
5 What is DOM in 1 CO K2
HTML? 2
a) Language
dependent
application
programming
b) Hierarchy of
objects in ASP.NET
c) Application
programming
interface
d) Convention for
representing and
interacting with
objects in html
documents
Answer: d
6. In which part of 1 CO K1
the HTML 2
metadata is
contained?
a) head tag
b) title tag
c) html tag
d) body tag
Answer: a
7 Which element is 1 CO 2 K2
used to get 1 1
highlighted text in
HTML5?
a) <u>
b) <mark>
c) <highlight>
d) <b>
Answer: b
8 Which of the 1 CO K1
following is not a 2
HTML5 tag?
a) <track>
b) <video>
c) <slider>
d) <source>
Answer: c
9 How do we write 1 CO K2
comments in 2
HTML?
a) </…….>
b) <!……>
c) </……/>
d) <…….!>
Answer : b
10 Which of the 10 CO K1
following elements 2
in HTML5 defines
video or movie
content?
a) <video>
b) <movie>
c) <audio>
d) <media>
Answer: a
ONLINE QUIZ -4
UNIT-2
S.NO QUESTIONS MARK CO PI BL
. S COD
E
ONLINE QUIZ -5
UNIT-3
S.NO QUESTIONS MARK CO PI BL
. S COD
E
10 A device 10 CO3 K2
operating at
network layer is
called __________
a) Router
b) Equalizer
c) Bridge
d) Repeater
Answer: a
ONLINE QUIZ -6
UNIT-3
1 A device 1 CO3 K1
operating at
physical layer is
called __________
a) Router
b) Equalizer
c) Bridge
d) Repeater
Answer: c
var js = (function(x)
{return x*x;}(10));
a) Exception will be
thrown
b) Memory leak
c) Error
d) Yes, perfectly
Answer: d
// Javascript code
snippet to compare the
height
function height()
{
var height =
123.56;
var type =
(height>=190) ? "tall"
: "short";
return type;
}
a) short
b) 123.56
c) tall
d) 190
Answer : a
ONLINE QUIZ -7
UNIT-4
S. QUESTIONS MA C PI B
N RKS O C L
O. O
D
E
ONLINE QUIZ -8
UNIT-4
2 1 C K
Which of the following O4 1
is not true about Java
beans?
a) Implements
java.io.Serializable
interface
b) Extends
java.io.Serializable
class
c) Provides no
argument constructor
d) Provides setter and
getter methods for its
properties
Answer: b
3 1 C K
Which file separator O4 1
should be used by
MANIFEST file?
a) /
b) \
c) –
d) //
Answer: a
9 How to specify 1 C K
autowiring by name? O4 2
a) @Qualifier
b) @Type
c) @Constructor
d) @Name
Answer: a
ONLINE QUIZ -9
UNIT-5
S.N QUESTIONS MAR CO PI BL
O. KS COD
E
3 1 CO K2
Application is 5
instance of which
class?
a)
javax.servlet.Applicat
ion
b)
javax.servlet.HttpCon
text
c)
javax.servlet.Context
d)
javax.servlet.ServletC
ontext
Answer: d
6. “request” is instance 1 CO K2
of which one of the 5
following classes?
a) Request
b) HttpRequest
c)
HttpServletRequest
d) ServletRequest
Answer: c
7 Which is not a 1 CO K1
directive? 5
a) include
b) page
c) export
d) useBean
Answer: c
8 Which is mandatory 1 CO K1
in <jsp:useBean /> 5
tag?
a) id, class
b) id, type
c) type, property
d) type,id
Answer: a
a. session identifier
b. creation time
c. last accessed time
d. All mentioned above
Answer: d
a. ServltInputStream
b. ServletOutputStream
c. Both A & B
d. None of the above
Answer: a
a. RMI Communication
b. HTTP Communication
c. Socket
Communication
d. All mentioned above
Answer: d
a. setAttribute
b. getAttribute
c. Both A & B
d. None of the above
Answer: c
a. Add-on ServletEngine
b. Embedded
ServletEngine
c. Standalone
ServletEngine
d. None of the above
Answer: c
- Published on 21 Jul 15
a. Genereic Servlets
b. HttpServlets
c. All of the above
d. None of the above
Answer: b
a. Persistent cookie
b. Non-persistent cookie
c. All the above
d. None of the above
Answer: b
a. forward()
b. sendRedirect()
c. Both A & B
d. None of the above
Answer: a
a. javax.servlet
b. javax.servlet.http
c. Both A & B
d. None of the above
Answer: c