CodesJava

Easy learning with example program codes

info attribute in JSP page directive

This attribute is used to provide the JSP page description.

Syntax:

<%@ page info="value"%>

Example:

welcome.jsp

<%@ page info="javawithease" %>   
 
<html>
	<head>
		<title>info page directive example</title>
	</head>
	<body>
		<h3>Hello this is an info page directive example.</h3>
	</body>
</html>

web.xml

<web-app>
 
  <welcome-file-list>
          <welcome-file>welcome.jsp</welcome-file>
  </welcome-file-list>	
 
</web-app>

Output:

jsp example 15
 
Download this example.
 
Next Topic: JSP include directive with example.
Previous Topic: language attribute in JSP page directive with example.

 

Please follow and like us:
error
Posted in JSP   








Copyright © 2019 CodesJava DMCA.com Protection Status