What is a Scriptlet ?
Scriptlet is code embedded in Jsp page. Default language for scriptlets is Java but it is possible to define other languages as well. An example of scriptlet-based programming, which counts to 10, is shown here: <html> <head> <title>Count to 10 in JSP scriptlet</title> </head> <body><% for(int i=1;i<=10;i++){%><%=i%><br/><%}%> </body></html> As you can see from the preceding example, using scriptlet code produces page source code that contains a mix of HTML tags and Java statements.
