COM
IT2353-WEB TECHNOLOGY
UNIT-I
PART A
1.DEFINE URI?
2.STATE THE USE OF WEB SERVER LOGS AND LIST THE CONTENTS OF THE
MESSAGE LOGS?
A server log is a log file (or several files) automatically created and maintained by a server of
activity performed by it.
A typical example is a web server log which maintains a history of page requests. The W3C
maintains a standard format (the Common Log Format) for web server log files, but other
proprietary formats exist. More recent entries are typically appended to the end of the file.
Information about the request, including client IP address, request date/time, page requested,
HTTP code, bytes served, user agent, and referrer are typically added. These data can be
combined into a single file, or separated into distinct logs, such as an access log, error log, or
referrer log. However, server logs typically do not collect user-specific information.
AN EXAMPLE:
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
***********
Enter Password :
1. Internet Explorer
2. Firefox
3. Safari
4. Chrome
5.Opera
IP is the core of the TCP/IP protocol suite. IP provides the fundamental mechanism using
which data is delivered between devices which may or may not be in the same network.
W X
Y Z
The code for a simple, two row, two column TABLE looks like this:
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
A DNS resolves names like www.utube.com with an ip address. the protocols that make the
internet work use numbers. A DNS has a database of numbers that match up with names so
when you type www.utube.com the closest DNS resolves that with an IP address which tcp/ip
protocols can use to view utube.com.
<!DOCTYPE html>
<html>
<body>
</body>
</html>
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
PART B
a) tcp/ip 1-16
b)http 1-30
b) state the types of lists supported by html and explain them in detail? 2-28
b) explain the purpose and way of creating lists in html documents ? 2-28
4. a) list any two differences between html and xhtml with respect to elements.
b). give the structure http request and response message? 1-30
b) explain how tables can be inserted into html document with an example? 2-34
7. create a html document for a company home page and explain
9. create a registration form for an educational website with e-learning resources. all form controls
should have appropriate name attrributes .use the get method for form submission and specify an
empty for the action attribute?
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
unit-2
PART-A
<!doctype html>
<html>
<body>
<script>
document.getelementbyid("demo").innerhtml="hello dolly";
document.getelementbyid("mydiv").innerhtml="how are you?";
</script>
</body>
</html>
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
part-b
1.a) i)list and explain in detail the various selector string 3-4
ii)explain the features of cascading style sheets 3-19
b) i)state and explain the types of statements in java script 4-50
ii)explain how functions can be written in java script with an example 4-7
2.a) i)explain any 8 css text properties 3-25
ii)discuss java script array object in detail 4-52
b)i)discuss about java script debugging 4-89
ii)explain in detail css border and css outline 3-39
3.a) i)explain the css box model in detail 3-39
ii)list and explain in detail the types of selector string 3-4
b)i)explain the way in which java script handles arrays with example
3. b) ii)explain how local and global functions can be written using java script 4-36
4.a) i)write a css which adds background images and indentation 4-47,50
ii)explain external style sheet with an example 3-71
b) i)write the java script to find some of first n even number and display the result.get the value of n
from user
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
1.EXPLAIN IN BREIF THE INTERACTION BETWEEN THE WEB SERVER AND A SERVLET
a servlet container is a web server that must be able to run java servlets.
web server, on the other hand, is a broader term including all software running and communicating
through http protocol.
under these definitions:
1. all servlet containers are web servers
2. not all web servers are servlet containers
< /body>
< /html>
initially, when the client connects to the server, it doesn't have a session id assigned to it. the server
then sends a response with a session id in the response headers. but the server doesn't know if the
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
browser supports sessions using cookies so it also uses url rewriting ( but if you use the appropriate
methods in your code ).
when the client sends the next request, the server will know whether the browser supports cookies or
not: if there is a header, the browser supports it and the server will not use the rewritten urls in it's
communication with this client, only cookies will be used so the encodeurl()/ encoderedirecturl() won't
be used; if there isn't then the server must use url rewriting otherwise the session will not be tracked, so
now the server will not send the session in the header as a cookie but will use url rewriting.
html>
<head>
<title>basic dom2 event handler and bubble test</title>
</head>
<body>
<div id="container">
<ul id="listcontainer">
<li id="item1">item1</li>
<li id="item2">item2</li>
</ul>
</div>
<script type="text/javascript" charset="utf-8">
var el = document.getelementbyid('listcontainer')
// dom 2 event. this is basic example and will have issues with ie.
el.addeventlistener('mouseover', function(){
alert('mouseover');
}, false);
el.addeventlistener('click', function(){
alert('click!');
}, false);
</script>
</body>
</html>
10.WHAT IS A COOKIE
acookie, also known as an http cookie, web cookie, or browser cookie, is a small piece of data sent
from a website and stored in a user's web browser while the user is browsing that website. every time
the user loads the website, the browser sends the cookie back to the server to notify the website of the
user's previous activity.[1]cookies were designed to be a reliable mechanism for websites to remember
stateful information (such as items in a shopping cart) or to record the user's browsing activity
part-b
1.a) i)explain about the document tree in detail 5-3
ii)explaindom event handling in detail 5-15
b)explain the servlet operation in detail with a sample servlet program 6-2
2.a)explain in detail dom event handling.also explain with an example of creating a context
menu.[note:a context menu is the one that is shown when the user right clicks anywhere in the
document] 5-15
b)what is a session?explain how client state is maintained using session and also explain about session
tracking and session management using with example 6-38
3.i)explain in detail with an example the dynamic content generation by a servlet
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
UNIT-4
PART-A
PART-B
ii) EXPLAIN ABOUT THE OBJECT THAT HEPLS AJAX RELOAD PARTS OF A WEB PAGE
WITHOUT RELOADING THE WHOLE PAGE
b ) WHAT IS A JAVA BEANS COMPONENT? HOW WILL YOU USE THE JSP LANGUAGE
ELEMENTS FOR ACCESSING BEANS IN YOUR JSP PAGES?
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
4.a) WRITE XSLT CODE TO DISPLAY EMPLOYEE DETAILS IN A TABLE FORM WHICH IS
STORED IN XML?
b) i) WRITE A CLIENT SERVER JSP PROGRAM TO FIND SIMPLE INTEREST AND DISPLAY
THE RESULT IN THE CLIENT?
5.a)GIVEN AN XSLT DOCUMENT AND A SOURCE XML DOCUMENT EXPLAIN THE XSLT
TRANSFORMATION PROCESS THAT PRODUCES A SINGLE RESULT XML DOCUMENT
b)WRITE A SERVLET PROGRAM TO DISPLAY THE WAITING LIST STATUS GIVEN THE
PNR NUMBER OF A TRAIN. CREATE A JSP TO DISPLAY THE INFORMATION AT THE
CLIENT END.
UNIT V
PART-A
2. Define serialization?
XML serialization converts (serializes) the public fields and properties of an object, or
the parameters and return values of methods, into an XML stream that conforms to a
specific XML Schema definition language (XSD) document.
XML serialization results in strongly typed classes with public properties and fields that
are converted to a serial format (in this case, XML) for storage or transport.
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
The Java API for XML-based RPC (JAX-RPC) is a Sun Microsystems specification that
defines the client API for invoking a Web service. The following table briefly describes the
co
re java.xml.rpc Interface or Description
J Class
A Service Main client interface. Used for both static and
X dynamic invocations.
- ServiceFactory Factory class for creating Service instances.
R
Stub Represents the client proxy for invoking the
P
operations of a Web service. Typically used
C
for static invocation of a Web service.
in
Call Used to dynamically invoke a Web service.
te
rf JAXRPCException Exception thrown if an error occurs while
ac invoking a Web service.
es and classes.
4. What is UDDI?
Imports System
Imports System.Web.Services
end class
The purpose of the XML schema language is to provide an inventory of XML markup
constructs with which to write schemas.
The purpose of a schema is to define and describe a class of XML documents by using these
constructs to constrain and document the meaning, usage and relationships of their constituent
parts: datatypes, elements and their content, attributes and their values, entities and their
contents and notations. Schema constructs may also provide for the specification of implicit
information such as default values. Schemas document their own meaning, usage, and function.
Thus, the XML schema language can be used to define, describe and catalogue XML
vocabularies for classes of XML documents.
WWW.VIDYARTHIPLUS.COM V+ TEAM
WWW.VIDYARTHIPLUS.COM
PART-B
1. Explain in detail the XML schema, built in and user define datatype in detail(16) 9-
22
2. Explain the JDBC database access in detail(8) 9-55
3. Describe the significance and working of WSDL with an example(16) 9-19
4. Describe the major elements of SOAP(16) 9-61
5. Explain the creation of a JAVA web service in detail with example(16) 9-8
6. Explaini the role of the XML schema in building web services in detail(16) 9-22
7. Illustrate the principles of WSDL, XML and SOAP and their interaction between
them in web service application(16) 9-22,19,61
8. Write a JAVA servlet to display net salary of employee, use JDBC connectivity to
get employee details from database(16) 6-55
9. With a simple exampleillustrate the steps to create a web service(8) 9-8
10. Explain the basic concepts of RPC(8) 9-3
11. Briefly discuss how datatypes are represented in XML schema(8) 9-22
12. Briefly discuss how SOAP encodes struct data and arrays(8) 9-51
WWW.VIDYARTHIPLUS.COM V+ TEAM