Home Jsp Hello World JSP Page

Related Tutorials


 
 

Share on Google+Share on Google+

Hello World JSP Page

Advertisement
By this example we are going to teach you that how can you write a "hello world" on your browser.

Hello World JSP Page

     

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:

Download this example.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 6, 2008

Related Tutorials

Discuss: Hello World JSP Page   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:5
Radhika
February 25, 2013
jsp

tel me how to write jsp page for simple login step wise
sss
July 25, 2012
no qns

nothing
Anshul Katta
September 4, 2012
HI

NOT WOKRING"><input type=text>
Christy
November 1, 2012
Request

send me some simple jsp projects
sumit
June 25, 2013
how linking html page to the jsp page

i wnt to knw that how can i pass the value of html page to jsp page..
DMCA.com