• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<servlet-mapping> and the request

 
Simran Dass
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • 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
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2531
112
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • 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
 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator

thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic