I was studying from javabeat mock exam and got confused by a question.
17) Assuming the following content within the definition of web.xml,
<init-param>
<param-name>MovieName</param-name>
<param-value>Lord of the Rings</param-value>
</init-param>
which of the following can be used to retrive the value of the parameter
'MovieName'?
a. ServletContext.getParameter(�)
b. GenericServlet.getInitParameter(�)
c. Servlet.getInitParameter(�)
d. ServletConfig.getInitParameter()
The answer given is b but i think the answer should be d.
can anyone tell me whether i am right or wrong??
17) Assuming the following content within the definition of web.xml,
<init-param>
<param-name>MovieName</param-name>
<param-value>Lord of the Rings</param-value>
</init-param>
which of the following can be used to retrive the value of the parameter
'MovieName'?
a. ServletContext.getParameter(�)
b. GenericServlet.getInitParameter(�)
c. Servlet.getInitParameter(�)
d. ServletConfig.getInitParameter()
The answer given is b but i think the answer should be d.
can anyone tell me whether i am right or wrong??