Forums Register Login

<servlet-mapping> and the request

+Pie Number of slices to send: Send


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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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...
+Pie Number of slices to send: Send

thanks.
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 770 times.
Similar Threads
Doubt about how configuring init parameters in JSP
another HFSJ question page 620
How to customize mapping in struts-config.xml ?
[Solved][HFSJ] Filter Preferences
url matching doubt
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:11:49.