Write a simple JSP program to display "Lalitpur, Nepal" 10 times.

 Solution

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type"

content="text/htm; charset=UTF-8">

<title> JSP program to display "Lalitpur, Nepal" 10 times</title>

</head>

<body>

<h1>Displaying "Lalitpur, Nepal" 10 times!!</h1>

<table>

<%

for(int i=1;i<=10; i++){

%>

<tr><td> Lalitpur, Nepal</td></tr>

<%} %>

</table>

</body>

</html>


Comments

Popular posts from this blog

What are different steps used in JDBC? Write down a small program showing all steps.

Discuss classification or taxonomy of virtualization at different levels.

Pure Versus Partial EC