JSP ARCHITECTURE - Whenever a request arises for .jsp file.

i) Translate .jsp file into a .java file.
ii) Compiles the file into a servlet file.

Container will:
iii) Load the servlet class.
iv) Instantiate it using default constructor.
v) Invokes jspInit()
Required that :
a) jspInit() does not throw any exception.
b) jspInit() returns in stipulated time.
vi) Put the servlet in service.
vii) Creates request & response object.
viii) Starts the thread, invoke _jspService() & passes request & response object as arguments.
ix) Retreive the request parameter, perform processing, send responses to the client using writer object.
x) Close the writer object.
xi) When Container shut downs jspDestroy() is invoked.


Post a Comment