Home QBASIC C Java HTML
  • More Courses
  • MCQs
  • Blog Download
  • Tools
  • Contact

    What do you mean by JSP? Write a program JSP to display Message "I Love Programming" 100 times.

    Posted on 2021-05-27

    JSP is a Java Server side technology that does all the processing at server. It is used for creating dynamic web application using Java as programming language. This technology is used to create web application just like Servlet technology. It can be thought of as an extension to Servlet because it provides more functionality than servlet such as expression language, JSTL, etc.

    A JSP page consists of HTML tags and JSP tags. The JSP pages are easier to maintain than Servlet because we can separate designing and development. We can use all the features of the Servlet in JSP. JSP is first converted into servlet by JSP container before processing the client’s request. and It has access to entire API of JAVA.

     

    JSP Program to print "I Love Programming" 100 times.

    <!DOCTYPE html>
    <html> 
    <head> 
     <meta http-equiv="Content-Type" content="text/html" charset=UTF-8">
     <title> A simple JSP program </title> 
    </head> 
    <body> 
     <h1> Displaying "I love Programming 100 times !!" </h1> 
     <table> 
      <% for(int i=1; i<=100; i++){ %> 
       <tr> <td> I Love Programming </td> </tr> 
      <% } %>
     </table> 
    </body> 
    </html> 
    

    193