Jsp Scriplets and Templets
By Ramakrishna on Oct 3, 2008 in Explain 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 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

