JSP Scriptlet Tag

Prev Tutorial Next Tutorial

JSP Scriptlet Tag

It use to define or insert java code in a jsp. Every java statement should followed by semicolon (;). It will be place into jspService() method.

The scriptlet tags goes to _jspService(-,-), during translation. It means scriptlet tags are executed for each request. Because _jspService(-,-) is called for each request.

We can use implicit object of jsp in a scriptlet tag also because scriptlet tag goes to _jspService(-,-) only.

In a jsp implicit object are allowed in expression tags and scriptlet tags but not in the declaration tags.


<% java code %>

Prev Tutorial Next Tutorial

Download Projects


FREE Online Google Play APK Downloader

Buy APP Installs, Buy 100% Genuine Installs