Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Servlet Mapping

 
sravanthi pulukuri
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Which of the following deployment descriptor snippets correctly associates a servlet
implemented by a class named com.abc.SalesServlet with the name
SalesServlet? (Select one)
a <servlet>
<servlet-name>com.abc.SalesServlet</servlet-name>
<servlet-class>SalesServlet</servlet-class>
</servlet>
b <servlet>
<servlet-name>SalesServlet</servlet-name>
Licensed to Tricia Fu <tricia.fu@gmail.com>
418 APPENDIX C REVIEW Q & A
<servlet-package>com.abc.SalesServlet</servlet-package>
</servlet>
c <servlet>
<servlet-name>SalesServlet</servlet-name>
<servlet-class>com.abc.SalesServlet</servlet-class>
</servlet>
d <servlet name="SalesServlet" class="com.abc.SalesServlet">
<servlet>
<servlet-class name="SalesServlet">
com.abc.SalesServlet
</servlet-class>
</servlet>
e <servlet>
<servlet-name class="com.abc.SalesServlet">
SalesServlet
</servlet-name>
</servlet>
Answer: c


Now my Doubt is Is the Order so Imporant ??


2:

Which of the following is not a requirement of a distributable web application?
(Select one)
a It cannot depend on the notification events generated due to changes in the ServletContext
attribute list.
b It cannot depend on the notification events generated due to changes in the session
attribute list.
c It cannot depend on the notification events generated when a session is activated or
passivated.
d It cannot depend on the notification events generated when ServletContext is
created or destroyed.
e It cannot depend on the notification events generated when a session is created or
destroyed.
Answer: c

Please clarify why C is correct
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sravanthi you must use code tags so that the code you post is easy to read. I'm doing this right now



Also I don't know from where did this come in the middle of the options
Licensed to Tricia Fu <tricia.fu@gmail.com>
418 APPENDIX C REVIEW Q & A


Please QuoteYourSources to acknowledge the author of the question.

Now my Doubt is Is the Order so Imporant ??


Which order are you talking about. These are supposed to be separate snippets to be used inside the web.xml file...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic