Sie sind auf Seite 1von 10

Rajalakshmi Engineering College

Department of Information Technology


Ex No:1


Create a web page with the following using HTML

i) To embed an image map in a web page
ii) To fix the hot spots
iii) Show all the related information when the hot spots are clicked.


• To embed an image using Image Tag <Img>

<area shape=”” coords="” href="" alt="" />

• To create a map with different attributes

<map name="planetmap">

• To Fix hot spot with different styles

• Circle
<area shape="circle" coords="0,0,82,126" href="sun.htm"

• Rectangle
<area shape="rect" coords="0,0,82,126" href="sun.htm"

• Poly
<area shape="poly" coords="0,0,82,126" href="sun.htm"

• Create a web pages related to the hotspot

• Open a browser and display a web pages

Ex No:2


Write programs in Java to create applets incorporating the following features:

• Create a color palette with matrix of buttons
• Set background and foreground of the control text area by selecting a color from
color palette.
• In order to select Foreground or background use check box control as radio
• To set background images


• With the GridLayout you specify the number of rows and columns.
• Then the components are added from left to right.
• When the row becomes full, the next row is started.
• To increase and decrease the size of the window.
• In this case, you will see the sizes changing for the components instead of the
positions, as you saw with the FlowLayout.
• The format of the constructor is (last 2 parameters are optional).
• GridLayout(int rows, int cols, int horizontal_gap, int vertical_gap)
• Test modifying the parameter list from
• GridLayout nature = new GridLayout(3, 3, 10, 10);

• GridLayout nature = new GridLayout(3, 3);

• Place the TextArea and Insert image to the Applet
Ex No:3


Client Side Scripts for Validating Web Form Controls using DHTML

• The form will include one text field called "Your Name", and a submit button.
• Validation script will ensure that the user enters their name before the form is sent
to the server.
• Open this page to see it in action.
• Try pressing the Send Details button without filling anything in the "Your Name"
• You might like to open the source code for this form in a separate window
• the page consists of a JavaScript function called validate_form() that performs the
form validation, followed by the form itself.
Ex No:4

Program to invoke servlets from HTML Form


• Create a new web project.

• Create Java application logic that represents the Java servlet.
• Create the web page for the web application.
• Package the web application to a WAR file.
• Deploy the WAR file to the J2EE application server.
• Test your web application.
Ex No:5

Program to invoke servlets from Applet


• Start the Invoking Servlets from Applet

• Create the Ats.html

• Use the one input type for roll no

• When submit button is click it perform the action=


• The save as the Ats.html

• Then create java coding for

• In coding create three important objects

• Label sent and received and button click to send to servlets.

• Set the url as http://localhost:8080"+"/servlet/ServletToApple

• Then create java coding for and (see

the source code)

• Finally save and run the program

Ex No:6


Write programs in Java to create three-tier applications using JSP and Databases
for conducting on-line examination for displaying student mark list. Assume that student
information is available in a database which has been stored in a database server.


• First install the tomcat into the system.

• Then make a subdirectly(eg., tr) in the \tomcat\webapps.
• Under tr create WEB-INF directory and also place the html files in this tr directory only.
• Next under WEB-INF create two subclasses lib,classes and web.xml
• Next place all the class files under the classes and jar files(servlet-api.jar,classes12.jar
etc…) under lib subdirectories.
• After this start tomcat by giving the following command at the instll_dir>tomcat>bin
• Catalina.bat run
• At the I.E(web browser) give the url as http;//localhost:8080//tr/htmlfile or servlet url
• Portno 8080 is assigned for the tomcat.
Ex No:7


Consider a case where we have two web Services- an airline service and a travel
agent and the travel agent is searching for an airline. Implement this scenario using Web
Services and Data base.


• Define the service's interface. This is done with WSDL

• Implement the service. This is done with Java.
• Define the deployment parameters. This is done with WSDD and JNDI
• Compile everything and generate a GAR file. This is done with Ant
• Deploy service. This is also done with a GT4 tool
Ex No:8


Develop a enterprise program using AJAX


1. use Javascript to initialise the XML HTML request object

2. use HTML to create areas for user input and output
3. use Javascript to send the user inputs to a server
4. process the data on a server
5. use Javascript to process any response from the server and display the result
Ex No:9


Develop a program using XML – Schema – XSLT/XSL


• The xsl:output element specifies how to display the result tree.

• The XSL processor produces the output result tree.
• It should be specified by xsl:output element.
• The method attribute of xsl:output specifies the overall process to produce the
result tree.
• The HTML output method results the tree as HTML document.