• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Secuence of JSP

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
A correct sequence: translation, compilation, load class, create instance. Which belong to translation phase and request phase?
Thank you in advance.
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jordi,
translation phase:
JSP engine converts JSP to a servlet on first invoking. In tomcat you find this translated class in the work directory.
request phase:
Comes after create instance. After the JSP engine has created the servlet the servlet engine instantiates one* instance of a servlet. This servlet waits for requests.
*(not sure here. Aren't there servlet pools on some servers for better performance. Or if u have load balancing, failover across > 1 server there might be one servlet per server created, but these are advanced topics not covered in the exam).

Axel
----
sometimes my answers are buggy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic