GTU WTAD Practical 31 : jsp c:out tag example

GTU WTAD Practical 31 : Write a JSP page which uses tags availabe from the standard tag

GTU WTAD Practical 36

Jump to GTU WTAD Practical 32

File Name : index.jsp
File Location : Tomcat_Apache\webapps\gtu31\

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
	<head>
		<title>GTU WTAD Practical 31</title>
	</head>
	<body>
	
	<h2 align="center"> GTU WTAD Practical 31 : Write a JSP page which uses tags availabe from the standard tag 
library JSTL.    </h2>
	<br><br>
	
	<c:out value="This text is displayed using c:out"/>
	
	
	</body>
</html>

 

File Name : web.xml

File Location : Tomcat_Apache\webapps\gtu31\WEB-INF

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  version="3.0"
  metadata-complete="true">  
  
  <display-name>GTU WTAD Practical 31  </display-name>
  <description>Write a JSP Page to use JSP scripting.</description>
  

</web-app>

 

Output

 

GTU WTAD Practical 31

Leave a Reply