Page 1 of 1

About Question enthuware.jwpv6.2.918 :

Posted: Sat Apr 05, 2014 5:50 am
by niallcol
Hi,

The explanation for this question states that:

"Parameters are always defined in web.xml or come as a part of request (there is no method like setParameter() in any interface) where as attributes can be set programmatically using setAttribute()"

Isn't there a ServletContext.setInitParameter(name, value) method though?

Kind Regards

Re: About Question enthuware.jwpv6.2.918 :

Posted: Sat Apr 05, 2014 6:10 am
by admin
You are right. This used to be true before 3.0 but now that you can define a servlet dynamically, you can set the parameters as well. The explanation has now been updated.

thank you for your feedback!
Paul.