Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp translation - are my assumptions correct?

 
Jim So
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its a Mock Exam question:
Which three occur during JSP page translation ( Choose 3)

1.jspinit Method is called
2.JSP page implementation class is created
3.JSP page implementation class is compiled
4.JSP page is validated for syntactic correctness
5.The associated tag files are validated for syntactic correctness


i think the correct answer is 2,4,5.

I am not sure about #5 though. I cant find any documentation in any of the books or online about whether the tag files are validated and checked for syntatic correctness during JSP page translation. BUt i assume they are.

I think its 2,4,5 because:

Because #1 is incorrect - jsp init method is called later on (after loading the class and then instantiating the class)

Because #3 is incorrect - because class compilation occurs after page translation according to what i read about the life cycle of a jsp: Compilation is a seperate step that happens after translation.


Who agrees or disagrees with me? Im not sure if i am actually right I think the mock answer was 2,3,5.
 
Jim So
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess a key question to help me answer this question correctly is:

Are tag files are validated at runtime or translation time?

Anyone know?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic