• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which three occur during JSP page translationf

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
2,4,5
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think its 2,3,4,5 because, You cannot create a .class file without a .java file created.
 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but you have to choose 3 options
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic