Page 1 of 1

About Question enthuware.jwpv6.2.705 :

Posted: Sun Feb 26, 2012 12:20 pm
by ETS User
The answer and explaination to this question appears to be incorrect .

The getInitParameter method must be called on the servletconfig object NOT the servlet object.

Re: About Question enthuware.jwpv6.2.705 :

Posted: Tue Feb 28, 2012 7:55 am
by admin
HttpServlet implements ServletConfig interface and so this.getInitParameter("DBURL"); is valid in a servlet.

HTH,
Paul.

Re: About Question enthuware.jwpv6.2.705 :

Posted: Fri Jun 14, 2013 6:42 pm
by jmkenny
I would rather say GenericServlet implements ServletConfig interface and HttpServlet extends GenericServlet.

Re: About Question enthuware.jwpv6.2.705 :

Posted: Tue Aug 20, 2013 10:14 pm
by PMiglani
Do I need to assume here that servletcontext is a variable pointing to ServletContext Object. There is nothing mentioned about it in the question.

Re: About Question enthuware.jwpv6.2.705 :

Posted: Wed Aug 21, 2013 5:42 am
by admin
There is already a statement saying, "(Assume that servletcontext is a reference to ServletContext for this servlet.)" at the of the problem statement.

HTH,
Paul.