HFSJ Pg:215, Ans for question:2
Which statements about ServletContext
initialization parameters are true?
"They Should be used for data that changes frequently"
This answer is given as incorrect with the reason
ServletContext init parameters are only read at container start-up time
For the ServletContextListener example given in chapter:5, I am able to change the param-value for breed and see it getting reflected in my webpage.(Without redeploying tomcat)
1. Are the context-init parameters NOT read only once by the container?How come the changes made by me are reflected?
2. The answer for this question should be "They should be used for data that changes frequently"