Scriptlet Tag

A scriptlet is a block of java source code that is executed during the request processing time.
Syntax of Scriptlet tag
<% java source code % >\
index.jsp
<html> <head> <title>Welcome to scriptlet tag example </title> </head> <body> <% int marks=62; if(marks>=60) { out.println("Applicable"); } else out.print("Not Applicable"); %> </body> </html>
Output
scriptles
Download this example
 



 

Latest Tutorial


Most Visited Tutorial