GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes mock exam ques Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "mock exam ques" Watch "mock exam ques" New topic
Author

mock exam ques

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
1)Which element should be used to give a canonical name to a jsp file( type the answer)?
<servlet> <servlet-name>aName</servlet-name> < ??? >jspFile.jsp</ ???>
(In case the question is not clear:what do you put instead of ??? )
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

jsp-file
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
WHAT!!!

<servlet> <servlet-name>aName</servlet-name> < ??? >jspFile.jsp</ ???>

(In case the question is not clear:what do you put instead of ??? )

- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
tony lee
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
this question is interesting. how did you get that, mark?


SCJP2, SCWCD
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

In the servlet tag you have servlet-name, then you map it to either a servlet class or to an actual jsp file.
Look at ersins deployment descriptor aid.
Under servlet you will see a box with
servlet-class/jsp-file
for servlet-class it would be the package and class name of the servlet, but if it is a jsp-file then the actual jsp filename and path.
Mark
 
GeeCON Prague 2014
 
subject: mock exam ques