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

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Hello World JSP Page 
 

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.

                         

» View all related tutorials
Related Tags: c io sed page tag if for example to exam ci e use in m ad age xa xamp s

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 

Current Comments

6 comments so far (
post your own) View All Comments Latest 10 Comments:

String!
How can I retreive a String variable in javascript from a jsp variable?

var fileName = new Array();
<%
for(i=0; i<StatImgs.size(); i++){
elementAt = subCounEx.getValueAt(StatImgs,i,j);
stringAt = String.valueOf(elementAt);
trimStringAt = stringAt.trim();
%>
fileName[<%=i%>] = <%= trimStringAt %>;
<%
}
%>
This is not correct! Can you help me?

Posted by marialotta on Wednesday, 05.7.08 @ 00:53am | #58740

Please, this site is very good for any category of learner, i just want some sample code for Jsp except hello world.
please help me out.
thanks
cryptic

Posted by cryptic on Tuesday, 11.27.07 @ 09:17am | #40627

how will check valid user using jsp?

Posted by mahi on Friday, 03.9.07 @ 23:20pm | #11276

Thank You sir.Realy your materials are very useful to me and also like new Learners.And Example explaninations are very nice.

Posted by M.Raja on Tuesday, 02.27.07 @ 09:33am | #9786

Thank you sir, realy u r providing excellent material, even u r sharing ur gud knolwedge

Posted by Ratan on Saturday, 02.3.07 @ 12:30pm | #5640

extremely nice sir . keep it up and up .
i think up to my knowledge u r providing the best material for both new and advance lerners

Posted by kamal kishore sharma on Wednesday, 01.31.07 @ 12:25pm | #4866

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
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.