Advanced Java Programming - Old Questions

13. Write a simple JSP program to display “Lalitpur, Nepal” 10 times.

5 marks | Asked in 2070

<!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>