By this example we are going to teach you that how can you write a "hello world" on your browser. Jsp can be learned very easily. This is just the beginning to learn this exciting language. This simple page contains a JSP program and it's output on browser in running state. This given program of JSP illustrates you how to print simple "Hello World!" string on the browser through the server side code (provided by JSP).
This program also contains HTML (Hypertext Markup Language) code for designing the page and the contents. Following code of the program prints the string "Hello World!" by using <%="Hello World!" %> while you can also print the string by using out.println("Hello World!") in the <% and %> JSP tags.
Here is the code of the program:
<html> <head><title>Hello World JSP Page.</title></head> <body> <font size="10"><%="Hello World!" %></font> </body> </html>
Output of the program:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial