Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Writing First Hello World application in JSP 
 

JSP simply application that work with Java inside HTML pages. Now we can take any existing HTML page and we change its extension to "hello.jsp" instead of "hello.html".

 

Create your first  hello world web page with jsp

                         

In this example we will show you how to create first web page on tomcat server. JSP simply application that work with Java inside HTML pages. Now we can take any existing HTML page and we change its extension to "hello.jsp" instead of "hello.html". This one the simply exercise for your first application JSP. Just modify file extension from ".html" to ".jsp" as you used to do in case of designing html pages. Then the application load the new file, with the "Hello.jsp" extension, in your browser. 


Following example will really help you understand a jsp page. 

In this example we are going to print the String "HELLO World" on to a web page.
Start the tomcat server, open a browser window and type the URL : Start the tomcat server, open a browser window and type the URL http://localhost:8080/hello.jsp

The code of the hello.jsp is given below:

<html>
<body bgcolor="white">
<h1>
HELLO World
</h1>
</body>
</html>

The output of the program is given below:

Download Source Code

                         

» View all related tutorials
Related Tags: c database security web com rest ant website data io connection user password word uri name using this tab check

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.