Display "Hello JSP" using Jsp expression


 

Display "Hello JSP" using Jsp expression

In this section, We will simply output "Hello JSP" in a web browser using Jsp expression.

In this section, We will simply output "Hello JSP" in a web browser using Jsp expression.

Display "Hello JSP"  using Jsp expression

In this section, We will simply output "Hello JSP"  in a web browser using Jsp expression. JSP expressions insert values directly into the output. The syntax to include a JSP expressions in the JSP file is:  

<%=     expression      %>.

In JSP page, we can use both, static HTML with dynamically-generated HTML. In this program, we produce output "hello Jsp" using this tag :

<%= "Hello World!"  %>

 All the other content except this is simple HTML code.

Code of this program :

 
<html>
	<head><title>Hello World JSP Page.</title></head>  
	<body>
		<font size="10"><%="Hello JSP!" %></font>
	</body>
</html>
 

Output :

Ads