Home Jsp JSP Hello World

Related Tutorials


 
 

Share on Google+Share on Google+

JSP Hello World

Advertisement
We are going to discus about JSP hello world. In this example we are create "HelloWold" on web browser. In this program of JSP instances. we can print simple "Hello World" String on web browser through the server side program.

JSP Hello World

We are going to discus about JSP hello world. In this example we are create "HelloWold" on web browser. In this program of JSP instances. we can print simple "Hello World" String on web browser through the server side program.

In JSP example also contents HTML code for designing the page and the contents.

Syntax:

 <%=HelloWorld%>
<% JAVA CODE %>

Example

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Hello Word</title>
</head>

<body>

<font size="20" color="red"><%="HelloWorld" %></font>

</body>
</html>

OutPut

Download Source Code

Advertisement

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: June 26, 2013

Related Tutorials

Discuss: JSP Hello World  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com