Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which three occur during JSP page translationf

 
Manpreet S Singh
Greenhorn
Posts: 11
  • 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
 
DilipKumar Bhanderi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2,4,5
 
sudhakar karnati
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this question is from Enthuware..

Answers are:
2 or 3 doubt I forgot..
but 4 and 5 are correct.

Thanks & Regards,
Sudhakar Karnati
[ August 07, 2008: Message edited by: sudhakar karnati ]
 
Baddy Davay
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think its 2,3,4,5 because, You cannot create a .class file without a .java file created.
 
Srividhya Kiran
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think 2,3,4 because associated tag files are validated at runtime. Correct me if I am wrong.

Srividhya
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think it is 2 & 4 only.

Compilation is the separate jsp lifecycle.

1.Page Translation -- till java class creation
2.Compilation -- java class will be compiled.
3.Loading and instantiation
4.jspInit
5._jspservice
6.destroy
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but you have to choose 3 options
 
Bala'J'i Rags
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it is 2,4,5

because init is never called during translation

compilation is a seperate lifecycle event where the jave file is complied to .class file

Correct me if iam wrong..
 
Joy Mukherjee
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think answer is
3,4,5

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

Joy
 
Jim So
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think the answer is 2,4,5.

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.



 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As told in another thread,please don't wake zombies.
 
Jim So
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok sure, sorry about that. Wont do it again.

So if i have a similar question raised in an old thread. But the replies didnt really confirm the correct answer. Ill can just start a new thread?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic