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

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements