• 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

<servlet-mapping> and the request

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Please read the foll question :-

<servlet-mapping>
<servlet-name>T1</servlet-name>
<url-pattern>/my/my/a.b</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>T2</servlet-name>
<url-pattern>/my/my/*</url-pattern>
</servlet-mapping>

Which servlet will serve the request -- /test/my/my/a.b . Choose 1 answer.

a. T1
b. T2
c. None of the above


In the question nothing is mentioned about "test" . Should we assume that "test" is the
application name and thus choose T1 or we should choose "Nono of the above"
as nothing is mentioned about "test" . Source - whizlabs
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmm, this is really an ambigious question...

In the question nothing is mentioned about "test" . Should we assume that "test" is the
application name and thus choose T1 or we should choose "Nono of the above"
as nothing is mentioned about "test" . Source - whizlabs


I would say: "none of the above" as they don't mention the name of the web-app.....

Regards,
Frits
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Remember the real exam is not ambiguous. It would be clearly mentioned in such a question that test is the context path of the application...
 
Simran Dass
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic