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
1.Page Translation -- till java class creation 2.Compilation -- java class will be compiled. 3.Loading and instantiation 4.jspInit 5._jspservice 6.destroy
JSP page implementation class is created is kind of vague I am not sure whether it means instantiated or the class file created. Class file is created when the jsp is compiled so I think is class is created means class is instantiated
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?
I believe the mock answer is 2,3,5. But i dont agree. I think 2,4,5 for the above reasons.