Hi all.
Considering Oracle's documentation for ServletContext.setInitParameter method, there is the following assertion when describing the exceptions that could be thrown when setInitParameter is invoked:
IllegalStateException - if this ServletContext has already been initialized
To
test this, I've created a context parameter at DD (Web Deployment Descriptor - which should be initialized when the application is started) .
So I've tried to change the attribute value expecting for an exception (
IllegalStateException in such case).
I'd like to know why this exception isn't thrown?
Context parameter defined at DD:
And the
servlet's code that tries to change the context parameter through setInitParameter.
Thanks in advance.