This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JSP Translation Phase  RSS feed

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following things may happen in the translation phase of JSP page?

Select 2 correct options
a Execution of _jspService() method.
b Execution of jspInit() method.
c Creation of the servlet class corresponding to the JSP file.
d Instantiation of the servlet class.
e Loading of the servlet class.

Answer: c, e

But I wonder, does the servlet class be loaded during the 3rd phase: loading servlet class?
So, does the answer be c ONLY? Totaly confused

Please confirm what has happens in the Translation phase AND in which order.


Thanks In Advance

Thanks
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, only C is the correct answer. The servlet class is not loaded unless it's specified that the servlet/jsp be loaded on server startup. The "translation Phase" includes the following:

- The JSP page is translated into Java servlet code.
- The servlet code is compiled into a JSP pageimplementation class.
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


But I wonder, does the servlet class be loaded during the 3rd phase: loading servlet class?



Servlet class again loaded see page 283 of HFSJ
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!