aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Which three occur during JSP page translationf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Which three occur during JSP page translationf" Watch "Which three occur during JSP page translationf" New topic
Author

Which three occur during JSP page translationf

Manpreet S Singh
Greenhorn

Joined: Feb 25, 2008
Posts: 11
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

Joined: Oct 21, 2007
Posts: 13
2,4,5
sudhakar karnati
Ranch Hand

Joined: May 03, 2007
Posts: 93
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

Joined: Aug 10, 2008
Posts: 26
I think its 2,3,4,5 because, You cannot create a .class file without a .java file created.
Srividhya Kiran
Ranch Hand

Joined: Feb 17, 2008
Posts: 166
I think 2,3,4 because associated tag files are validated at runtime. Correct me if I am wrong.

Srividhya
deepa raj
Ranch Hand

Joined: Jul 25, 2008
Posts: 124
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

Joined: Apr 16, 2004
Posts: 201
but you have to choose 3 options


SCJP 96% | SCWCD 90%| SCJP mock exams | My SCJP blog
Bala'J'i Rags
Greenhorn

Joined: Jul 29, 2008
Posts: 26
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..


SCJP 1.5,SCWCD 1.5
Bala'J'i
Joy Mukherjee
Ranch Hand

Joined: Aug 10, 2008
Posts: 62
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


B.Tech (E.E),IIT Kharagpur<br />SCJP 5.0<br />SCWCD 5.0<br />PMP
Jim So
Greenhorn

Joined: Mar 18, 2009
Posts: 28
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

As told in another thread,please don't wake zombies.


[My Blog]
All roads lead to JavaRanch
Jim So
Greenhorn

Joined: Mar 18, 2009
Posts: 28
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which three occur during JSP page translationf