JSP Life Cycle
In Jsp life cycle index.jsp file is given to translator and it gives .java file. the translated file is given to compilor, then compilor generates .class. This class is loaded and object is created. And on this object jspInit() method is called.
When jsp translates the .jsp file into .java file?
if the source code of the jsp got modified when compared with earlier request.For this jsp engine uses to perform timestamp comparison of .class and .jsp file.
While performing translation and compilation phases,any problem occurs in these phases,we will get HttpStatus code 500
Every JSP page Contains the Following:1) Template Text
2) JSP Elements(Jsp Tags)
a. Scripting Elements:● Scriptlet
● Declaration
● Expression
● Expression Language
b. Directives● Pages
● Include
● taglib
b. Actions● Standard Actions
● Custom Tags
1. Template Text/data
Template data is everything else; that is,anything that the JSP translator does not know about it.
JSP Elements(JSP Tags)
An element is an instance of element type know to the JSP container/Jsp Translator.
JSP element describes its syntax and semantics.
if the element has attributes,the type describes the attribute names,their valid types,and interpretation.
There are three types of elements:
● Scripting Elements
● Directives Elements
● Action Elements
« Privious Post »
« Next Post »
share on : : Love to hear your Views / Guidance / Recommendations on this Post…