Kizspy Question: 38
(Choose 1 answer)
Which of the following correct code to get information in the following <context-param> tag in the web.xml file?
<web-app>
<context-param>
<param-name>studentName</param-name>
<param-value>abcJhn</param-value>
</context-param>
</web-app>
A. request.getParameter("studentName");
B. ServletContext sc = getServletContext();
String serverName = sc.getInitParameter("studentName");
C. ServletConfig sc = getServletConfig().
String serverName = sc.getInitParameter("studentName");
D. response.getParameter("studentName");