GTU WTAD Practical 36 : JSP scripting Example

GTU WTAD Practical 36 : Write a JSP Page to use JSP scripting.

GTU WTAD Practical 36

Java Server Pages(JSP) is most secure language used for website related work. Mostly all baking websites are using jsp to develop their website for more security. Here is the example of jsp scripting language.

WTAD Question Bank

File Name : index.jsp

File Location : Tomcat_Apache\webapps\gtu36\

<html>
	<head>
		<title>GTU WTAD Practical 36</title>
	</head>
	<body>
	
	<h2 align="center"> GTU WTAD Practical 36 : Write a JSP Page to use JSP scripting.   </h2>
	<br><br>
	
	<%
	
		out.println("This paragraph is printed using out object and JSP Scripting");
	
	%>
	
	</body>
</html>

 

File Name : web.xml

File Location : Tomcat_Apache\webapps\gtu36\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 36  </display-name>
  <description>Write a JSP Page to use JSP scripting.</description>
  

</web-app>

 

Output

GTU WTAD Practical 36

Leave a Reply