Define servlet. Differentiate servlet with JSP. Write a simple JSP file to display 'IOST' 20 times.

A servlet is a small java program that executes on the server-side of web connection and dynamically extends the functionality of a web server.Servlet technology is used to create Dynamic web application.


Program
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/htm; charset=UTF-8">
<title> JSP program to display "IOST" 20 times</title>
</head>
<body>
<h1> Displaying "IOST" 20 times!!</h1>
<table>
<%
for(int i=1; i<=20; i++){
%>
<tr><td>IOST </td></tr>
<%} %>
</table>
</body>
</html>




Comments

Popular posts from this blog

Discuss classification or taxonomy of virtualization at different levels.

Explain cloud computing reference model .

Suppose that a data warehouse consists of the three dimensions time, doctor, and patient, and the two measures count and charge, where a charge is the fee that a doctor charges a patient for a visit. a) Draw a schema diagram for the above data warehouse using one of the schemas. [star, snowflake, fact constellation] b) Starting with the base cuboid [day, doctor, patient], what specific OLAP operations should be performed in order to list the total fee collected by each doctor in 2004? c) To obtain the same list, write an SQL query assuming the data are stored in a relational database with the schema fee (day, month, year, doctor, hospital, patient, count, charge)