If I modify the XML to change the value of init parameter I see the changes only when web-app is redeployed.
My question is cant I get around this by setting the values at run time.Is there any API that allow me to change the values dynamically.
It's called init-parameter
for a reason. So, you can't.
But you can change values at runtime, that's no problem.
ServletContext
(ctx.setAttribute("name", value)
)ServletContext
and gives the ability to change them.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With