Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
 
 
Search All Tutorials

 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 
JSP
  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. 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.

                         

Facing Programming Problem?
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

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

 

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.

Hot Web Programming Job

Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

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

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

Copyright © 2007. All rights reserved.