File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes url-pattern example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "url-pattern example" Watch "url-pattern example" New topic

url-pattern example

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Source of question is mock

Given that a servlet is correctly declared with the tag

Which of the following represent the correct syntax for mapping a servlet url to a servlet name





which are correct.

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Which do you think is correct and why?
Bala'J'i Rags

Joined: Jul 29, 2008
Posts: 26
Hi chintu ,

My options are b,c,d

b- extension match

d- is an examples for exact match

c-is similar to default macth when we say /*

Please correct me if iam worng
[ August 19, 2008: Message edited by: Bala'J'i Rags ]

SCJP 1.5,SCWCD 1.5
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: url-pattern example
It's not a secret anymore!