Jsp Scriplets and Templets



According to Jsp’s Specification Scrip lets can be provided as part of Jsp’s in various languages but most of the servers like tomcat weblogic etc supports java language only for the implementation of scrip lets. The Scriplet code available in the Jsp page will be executed in the Server

The Scriplets get executed in the servler

 Jsp Scriptlets and Templates

Jsp Scriptlets and Templates

Jsp templets consists of html code which as it is goes to browser where as the scrip lets consists of java code which will interpret and shows the output on the browser

When the Jsp is executed the template text provided in the Jsp will be passed as it is to the client

The Java code is not placed in the template text because it will give the same result

TheĀ  Jsp Compiler (JSPC) places the java code provided in the Scrip lets as part of _Jspservices

As part of the Tomcat the Jsp Compiler is called as the JASPER

Random Posts

  • Define Stored Procedures
  • How to get a Leap Year
  • Exception Handling and their uses
  • Advantage of Cookies over URL
  • Define Session Bean and Entity Bean

Post a Comment