aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes i have a question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "i have a question" Watch "i have a question" New topic
Author

i have a question

Niki Sharma
Greenhorn

Joined: Apr 16, 2003
Posts: 18
was looking through some jwcd questionaire's and found a very weird question.. which i am unable to fathom..
Which of the following staments are correct about the following jsp lines:
Given the following jsp line select the correct statements:
<% public void jspInit() { ...java code...} %>
the answer says
1) It is a valid line that can be used to initialize the servlet that implements the jsp file.
Now I am curious.. I assume since it is a scriptlet it goes into the service method right.. and how can jspInit show up inside a service method..
could someone clarify how this function.... could be right
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
I think this is just a typo.
Instead of

It should be:

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Niki Sharma
Greenhorn

Joined: Apr 16, 2003
Posts: 18
Hi Nic
thanks for the response

>>2.
<taglib>
<taglib-uri>/binomial</taglib-uri>
<taglib-location>/WEB-INF/MathLib.jar</taglib-location>
</taglib>
there was another questionairre i was going through that said this was invalid.. I presume is it correct
I was of the assumption that one could reference a jar file as you tag-lib location.. and it would be valid.. Do you have any inputs on this..
thanks ..
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
I think it is a valid taglib definition, if and only if, the xxx.tld is located at the /META-INF inside the JAR file.
If the .tld file does not locate in that directory, the taglib cannot be found.
Nick
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: i have a question