You are on page 1of 10

Rajalakshmi Engineering College

Department of Information Technology

IT2357-WEB TECHNOLOGY LAB

Ex No:1

AIM

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.

Algorithm

• To embed an image using Image Tag <Img>


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

• To create a map with different attributes


<map name="planetmap">
</map>

• To Fix hot spot with different styles

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

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

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

• Create a web pages related to the hotspot

• Open a browser and display a web pages


Ex No:2

AIM

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
buttons
• To set background images

Algorithm

• 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);
to

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


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

AIM

Client Side Scripts for Validating Web Form Controls using DHTML
Algorithm

• 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"
field.
• 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

AIM
Program to invoke servlets from HTML Form

Algorithm

• 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

AIM
Program to invoke servlets from Applet

Algorithm

• 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=


http://localhost:8080/Student/Student

• The save as the Ats.html

• Then create java coding for AppletToServlet.java

• 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 ServletToApplet.java and Intermediate.java (see


the source code)

• Finally save and run the program


Ex No:6

AIM:

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.

PROCEDURE:

• 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
pattern
• Portno 8080 is assigned for the tomcat.
Ex No:7

AIM:

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.

PROCEDURE:

• 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

AIM:

Develop a enterprise program using AJAX

PROCEDURE:

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

AIM:

Develop a program using XML – Schema – XSLT/XSL

PROCEDURE:

• 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.

You might also like