spauny
spauny

Reputation: 5096

Modify context param from servlet code

I know how to get the context params, but is there a way to change the value of the context params defined in the web.xml? I'm using JSF so in this case it will be FacesContext.

Upvotes: 0

Views: 902

Answers (1)

BalusC
BalusC

Reputation: 1108912

You can and should not change them programmatically. It would defeat their purpose. Just change them straight in the web.xml, or look for a different solution --which I can't suggest as the concrete functional requirement behind this need is unclear. I can at least hint that some specific context parameters are overrideable by JNDI, for example the javax.faces.PROJECT_STAGE.

Upvotes: 1

Related Questions