What is JSP Scriptlet?

Answer: JSP Scriptlet is jsp tag which is used to enclose java code in the JSP pages. Scriptlets begins with <% tag and ends with %> tag. Java code written inside scriptlet executes every time the JSP is invoked.
  //java codes
   String userName=null;
COPYRIGHT © 2017 java-samples.com. ALL RIGHTS RESERVED.