Which method would be used to call a registered servlet using the NamedDispatcher interface, given the following…

Which method would be used to call a registered servlet using the NamedDispatcher interface,
given the following:
Site = www.jcert.org
Web application name = testApp
Servlet URI = TestServlet

Which method would be used to call a registered servlet using the NamedDispatcher interface,
given the following:
Site = www.jcert.org
Web application name = testApp
Servlet URI = TestServlet

A.
getServletConfig().getServletContext().getNamedDispatcher(“TestServlet”).forward(req,res);

B.
getServletConfig().getServletContext().getNamedDispatcher(“/testApp/TestServlet”).forward(req,re
s);

C.
getServletConfig().getServletContext().getNamedDispatcher(“http://www.jcert.org/testApp/TestSer
vlet”).forward(req,res);

D.
getServletConfig().getServletContext().getNamedDispatcher(“/TestServlet”).forward(req,res);



Leave a Reply 0

Your email address will not be published. Required fields are marked *