This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi All, Please help me out with this question: What happens if you set a Web application-wide parameter through ServletContext, but don't provide a value? A) This cannot happen. B) An exception will be thrown. C) Retrieving this parameter will return a string containing a servlet container version number. D) Retrieving this parameter will return a string containing a servlet container name Right answers are C & D.
I have tried this by not giving any value for <param-value> of <context-param> element. But I get blank I dont get the output that should be given as per this question. Probably I have not understood the question properly. Can anyone help me out with this?
You are correct. When there is no value set for the parameter then you will see a 'blank'. I think the question means something else and i am not sure what it is trying to ask.
I have tried this by not giving any value for <param-value> of <context-param> element. But I get blank I dont get the output that should be given as per this question.
Me too got the question in the same way as you. We get blank string. If the question is something else, I am eager to know as well.