(Choose 1 answer)
Which are the correct lines of code to get information in the following<context-param> tag in the web.xml file?
Assume that response and request refer to HttpServletResponse and HttpServletRequest respectively.
A. request.getParameter("machineName");
B. ServletConfig sc = getServletConfig():String serverName = sc.getInitParameter("machineName");
C. ServletContext sc = getServletContext();String serverName = sc.getInitParameter("machineName");
<web-app>
<context-param>
<param-name>machineName</param-name>
<param-value>cms-server</param-value>
</context-param>
</web-app>
D. response.getParameter("machineName");
Finish
Exit 27