This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP page translation issue

 
BO KANG
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 12

Which three occur during JSP page translation?(Choose three)

A.The jspInit method is called
B.The JSP page implementation class is created
C.The JSP page implementation class is compiled
D.The JSP page is validated for syntatic correctness
F.The associated tag files are validated for syntatic correctness.

The answer is BCD,but i think option C is not correct,because that is after translation process ,in the compilation process.

Another thing is for option F, when does the web container check its syntax?

Thanks
 
Ravi Singh
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
B,D,F are correct
 
Jan Sterk
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by BO KANG:
Question 12

Which three occur during JSP page translation?(Choose three)

A.The jspInit method is called
B.The JSP page implementation class is created
C.The JSP page implementation class is compiled
D.The JSP page is validated for syntatic correctness
F.The associated tag files are validated for syntatic correctness.

The answer is BCD,but i think option C is not correct,because that is after translation process ,in the compilation process.
...


The question doesn't mention anything about the sequence of the occurences - which is DCB. A 'page implementation' is a translated jsp.


Another thing is for option F, when does the web container check its syntax?


A simple test shows me that the syntax is checked the moment the tag file is actually used in a jsp (not when it is declared with <%@ taglib %> ). So the word 'associated' is vague, and apparently meant as 'declared'.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!