Question: 18
Given:
<servlet-mapping>
<servlet-name>tempServlet</servlet-name>
<url-pattern>temp.jsp</url-pattern>
</servlet-mapping>
File 'temp.jsp' is in the myApp root.
Identify true statement when the url for tempServlet is typed in the location bar of a browser e.g.:
http://127.0.0.1:8080/myApp/servlet/myPackage.tempServlet A Location bar says
http://127.0.0.1:8080/myApp/servlet/myPackage.tempServlet B Contents of temp.jsp from the myApp root is displayed on the screen
C '
servlet' should be 'Servlet' in the URL - capital 'S'
D Error is generated
correct answer is D
a & D both are correct
am I correct