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.

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