Advanced Java Programming - Old Questions

Question Answer Details

13. Write a simple JSP program to display “Kathmandu, Nepal” 10 times. (5)

5 marks
Asked in 2069

Answer

AI Generated Answer

AI is thinking...

Official Answer

<!DOCTYPE html>

<html>

   <head>

      <meta http-equiv=“Content-Type” content=“text/htm; charset=UTF-8”>

      <title> JSP program to display “Kathmandu, Nepal” 10 times</title>

   </head>

   <body>

            <h1> Displaying “Kathmandu, Nepal” 10 times!!</h1>

            <table>

               <%

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

               %>

               <tr><td> Kathmandu, Nepal</td></tr>

               <% } %>

            </table>

   </body>

   </html>